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:
Andrew Thompson 2007-05-02 07:52:55 +00:00
parent 9fbf190fc5
commit c0194db365
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169203

View File

@ -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);