mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue