summaryrefslogtreecommitdiffstats
path: root/sys/net/if_lagg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_lagg.c')
-rw-r--r--sys/net/if_lagg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index c863387..5e5a115 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -746,8 +746,12 @@ lagg_port2req(struct lagg_port *lp, struct lagg_reqport *rp)
case LAGG_PROTO_LACP:
/* LACP has a different definition of active */
- if (lacp_port_isactive(lp))
+ if (lacp_isactive(lp))
rp->rp_flags |= LAGG_PORT_ACTIVE;
+ if (lacp_iscollecting(lp))
+ rp->rp_flags |= LAGG_PORT_COLLECTING;
+ if (lacp_isdistributing(lp))
+ rp->rp_flags |= LAGG_PORT_DISTRIBUTING;
break;
}
@@ -1709,8 +1713,7 @@ lagg_lacp_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m)
* If the port is not collecting or not in the active aggregator then
* free and return.
*/
- if ((lp->lp_flags & LAGG_PORT_COLLECTING) == 0 ||
- lacp_port_isactive(lp) == 0) {
+ if (lacp_iscollecting(lp) == 0 || lacp_isactive(lp) == 0) {
m_freem(m);
return (NULL);
}
OpenPOWER on IntegriCloud