Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160197886
D54573.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
530 B
Referenced Files
None
Subscribers
None
D54573.diff
View Options
diff --git a/sys/dev/bnxt/bnxt_en/if_bnxt.c b/sys/dev/bnxt/bnxt_en/if_bnxt.c
--- a/sys/dev/bnxt/bnxt_en/if_bnxt.c
+++ b/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
Tue, Jun 23, 2:36 AM (6 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34226195
Default Alt Text
D54573.diff (530 B)
Attached To
Mode
D54573: bnxt: don't set media status if link is down
Attached
Detach File
Event Timeline
Log In to Comment