mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Test for IFM_FDX rather than IFM_HDX as the half-duplex bit may not be set even
if the link is not full-duplex.
This commit is contained in:
parent
9fbf190fc5
commit
c0194db365
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169203
@ -373,7 +373,7 @@ lacp_linkstate(struct lagg_port *lgp)
|
||||
old_key = lp->lp_key;
|
||||
|
||||
lp->lp_media = media;
|
||||
if ((media & IFM_HDX) != 0 || ifp->if_link_state == LINK_STATE_DOWN) {
|
||||
if ((media & IFM_FDX) == 0 || ifp->if_link_state == LINK_STATE_DOWN) {
|
||||
lacp_port_disable(lp);
|
||||
} else {
|
||||
lacp_port_enable(lp);
|
||||
|
Loading…
Reference in New Issue
Block a user