From c0194db36564e67eaeca70df7b7fc16569aa5899 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Wed, 2 May 2007 07:52:55 +0000 Subject: [PATCH] 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. --- sys/net/ieee8023ad_lacp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/ieee8023ad_lacp.c b/sys/net/ieee8023ad_lacp.c index d84a0c86628..83b071b4a3d 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);