Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147960367
D54573.1784930761.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
554 B
Referenced Files
None
Subscribers
None
D54573.1784930761.diff
View Options
Index: sys/dev/bnxt/bnxt_en/if_bnxt.c
===================================================================
--- sys/dev/bnxt/bnxt_en/if_bnxt.c
+++ sys/dev/bnxt/bnxt_en/if_bnxt.c
@@ -3280,11 +3280,10 @@
ifmr->ifm_status = IFM_AVALID;
ifmr->ifm_active = IFM_ETHER;
- if (link_info->link_up)
- ifmr->ifm_status |= IFM_ACTIVE;
- else
- ifmr->ifm_status &= ~IFM_ACTIVE;
+ if (!link_info->link_up)
+ return;
+ ifmr->ifm_status |= IFM_ACTIVE;
if (link_info->duplex == HWRM_PORT_PHY_QCFG_OUTPUT_DUPLEX_CFG_FULL)
ifmr->ifm_active |= IFM_FDX;
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 10:06 PM (1 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29250200
Default Alt Text
D54573.1784930761.diff (554 B)
Attached To
Mode
D54573: bnxt: don't set media status if link is down
Attached
Detach File
Event Timeline
Log In to Comment