Remove the check for IFF_DRV_OACTIVE right before adding a port into lagg
interface. The check itself seems to be coming from OpenBSD but does not seem to be useful for our code. Discussed with: thomasa MFC after: 1 month
This commit is contained in:
parent
45c6af8938
commit
13d85d4382
@ -484,10 +484,6 @@ lagg_port_create(struct lagg_softc *sc, struct ifnet *ifp)
|
|||||||
if (sc->sc_count >= LAGG_MAX_PORTS)
|
if (sc->sc_count >= LAGG_MAX_PORTS)
|
||||||
return (ENOSPC);
|
return (ENOSPC);
|
||||||
|
|
||||||
/* New lagg port has to be in an idle state */
|
|
||||||
if (ifp->if_drv_flags & IFF_DRV_OACTIVE)
|
|
||||||
return (EBUSY);
|
|
||||||
|
|
||||||
/* Check if port has already been associated to a lagg */
|
/* Check if port has already been associated to a lagg */
|
||||||
if (ifp->if_lagg != NULL)
|
if (ifp->if_lagg != NULL)
|
||||||
return (EBUSY);
|
return (EBUSY);
|
||||||
|
Loading…
Reference in New Issue
Block a user