From 0f734ffc7b0aadd3d0f790fc45f6695e7f947dad Mon Sep 17 00:00:00 2001 From: jmatthew Date: Mon, 10 Sep 2018 04:52:23 +0000 Subject: [PATCH] bit rates over 2G won't fit in an int, so use uint64_ts instead --- sys/dev/pci/if_bnxt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_bnxt.c b/sys/dev/pci/if_bnxt.c index e9d50e83789..416d66df847 100644 --- a/sys/dev/pci/if_bnxt.c +++ b/sys/dev/pci/if_bnxt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bnxt.c,v 1.12 2018/09/07 13:18:06 jmatthew Exp $ */ +/* $OpenBSD: if_bnxt.c,v 1.13 2018/09/10 04:52:23 jmatthew Exp $ */ /*- * Broadcom NetXtreme-C/E network driver. * @@ -1508,7 +1508,7 @@ bnxt_hwrm_port_phy_qcfg(struct bnxt_softc *softc, struct ifmediareq *ifmr) struct hwrm_port_phy_qcfg_output *resp = BNXT_DMA_KVA(softc->sc_cmd_resp); int link_state = LINK_STATE_DOWN; - int speeds[] = { + uint64_t speeds[] = { IF_Gbps(1), IF_Gbps(2), IF_Mbps(2500), IF_Gbps(10), IF_Gbps(20), IF_Gbps(25), IF_Gbps(40), IF_Gbps(50), IF_Gbps(100) }; -- 2.20.1