Page MenuHomeFreeBSD

D12897.diff
No OneTemporary

D12897.diff

Index: sys/dev/bnxt/if_bnxt.c
===================================================================
--- sys/dev/bnxt/if_bnxt.c
+++ sys/dev/bnxt/if_bnxt.c
@@ -1381,6 +1381,18 @@
return;
}
+ /*
+ * Workaround for ifconfig showing media as 'Other':
+ * Ifconfig uses ifmr->ifm_current to display 'media type'.
+ *
+ * Ifconfig output without this workaround:
+ * media: Ethernet Other (100GBase-CR4 <full-duplex>)
+ * Ifconfig output with this workaround:
+ * media: Ethernet 100GBase-CR4 (100GBase-CR4 <full-duplex>)
+ */
+
+ ifmr->ifm_current = (ifmr->ifm_active & ~IFM_GMASK);
+
if (link_info->flow_ctrl.rx)
ifmr->ifm_active |= IFM_ETH_RXPAUSE;
if (link_info->flow_ctrl.tx)

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 28, 11:12 PM (14 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30460859
Default Alt Text
D12897.diff (735 B)

Event Timeline