diff options
author | 2018-09-10 04:52:23 +0000 | |
---|---|---|
committer | 2018-09-10 04:52:23 +0000 | |
commit | 0f734ffc7b0aadd3d0f790fc45f6695e7f947dad (patch) | |
tree | b4f420d1802dbeff5a92d69e14b1d16f20be2d1c | |
parent | pmap_activate() should match cpu_switchto, so set up ci_{kern,user}_cr3 (diff) | |
download | wireguard-openbsd-0f734ffc7b0aadd3d0f790fc45f6695e7f947dad.tar.xz wireguard-openbsd-0f734ffc7b0aadd3d0f790fc45f6695e7f947dad.zip |
bit rates over 2G won't fit in an int, so use uint64_ts instead
-rw-r--r-- | sys/dev/pci/if_bnxt.c | 4 |
1 files 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) }; |