Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149895189
D12897.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
735 B
Referenced Files
None
Subscribers
None
D12897.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12897: bnxt: Workaround for ifconfig showing media as 'Other'
Attached
Detach File
Event Timeline
Log In to Comment