diff options
| author | Andrew Gallatin <gallatin@FreeBSD.org> | 2026-06-23 16:13:40 +0000 |
|---|---|---|
| committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2026-06-23 17:01:26 +0000 |
| commit | fdca6b70aa7ebbc95b544cec6e155ea5b1041899 (patch) | |
| tree | f2dfc2aaab2c69f739e981aa28c3edd1a8158fa1 | |
| parent | 074ff8746388b3ed8581a84a7eea7b4b3e1bfe23 (diff) | |
bnxt: Report actual link speed, rather than hard-coded 100Gbs
We need to report the actual link speed, rather than a hard-coded
100Gbs for a variety of reasons, but most importantly, as reporting
100Gbs on a 10g link breaks lacp when this NIC is in an LACP bundle
with other vendors' NICs after e98ed8d99fd4 (lacp:
Simplify lacp_compose_key()), as the fake 100g puts this nic
into a different aggregation group.
Sponsored by: Netflix
Reviewed by: glebius
Tested by: glebius
| -rw-r--r-- | sys/dev/bnxt/bnxt_en/if_bnxt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bnxt/bnxt_en/if_bnxt.c b/sys/dev/bnxt/bnxt_en/if_bnxt.c index c10a66156563..abe06f6df1b5 100644 --- a/sys/dev/bnxt/bnxt_en/if_bnxt.c +++ b/sys/dev/bnxt/bnxt_en/if_bnxt.c @@ -5130,7 +5130,7 @@ bnxt_report_link(struct bnxt_softc *softc) } iflib_link_state_change(softc->ctx, LINK_STATE_UP, - IF_Gbps(100)); + bnxt_get_baudrate(&softc->link_info)); device_printf(softc->dev, "Link is UP %s %s, %s - %d Mbps \n", duplex, signal_mode, flow_ctrl, (link_info->link_speed * 100)); } else { |
