diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-05-02 07:52:55 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-05-02 07:52:55 +0000 |
commit | e6a03215f51e308e5de20331848204a2b1062bb5 (patch) | |
tree | 1ee1b29b89546d949943f6b8fca1eef336e14f63 /sys/net/ieee8023ad_lacp.c | |
parent | c5376d48acafbcba5ebbfb7d0f1cc34a0541e216 (diff) | |
download | FreeBSD-src-e6a03215f51e308e5de20331848204a2b1062bb5.zip FreeBSD-src-e6a03215f51e308e5de20331848204a2b1062bb5.tar.gz |
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.
Diffstat (limited to 'sys/net/ieee8023ad_lacp.c')
-rw-r--r-- | sys/net/ieee8023ad_lacp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/ieee8023ad_lacp.c b/sys/net/ieee8023ad_lacp.c index d84a0c8..83b071b 100644 --- a/sys/net/ieee8023ad_lacp.c +++ b/sys/net/ieee8023ad_lacp.c @@ -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); |