View | Details | Raw Unified | Return to bug 234846 | Differences between
and this patch

Collapse All | Expand All

(-)sys/net/if_lagg.c (+3 lines)
Lines 669-674 lagg_port_create(struct lagg_softc *sc, Link Here
669
	}
669
	}
670
670
671
	lp = malloc(sizeof(struct lagg_port), M_DEVBUF, M_WAITOK|M_ZERO);
671
	lp = malloc(sizeof(struct lagg_port), M_DEVBUF, M_WAITOK|M_ZERO);
672
	lp->lp_flags = LAGG_PORT_DISABLED;
672
	lp->lp_softc = sc;
673
	lp->lp_softc = sc;
673
674
674
	/* Check if port is a stacked lagg */
675
	/* Check if port is a stacked lagg */
Lines 762-767 lagg_port_create(struct lagg_softc *sc, Link Here
762
		return (error);
763
		return (error);
763
	}
764
	}
764
765
766
	lp->lp_flags &= ~LAGG_PORT_DISABLED;
765
	LAGG_WUNLOCK(sc);
767
	LAGG_WUNLOCK(sc);
766
768
767
	/* Update lagg capabilities */
769
	/* Update lagg capabilities */
Lines 801-806 lagg_port_destroy(struct lagg_port *lp, Link Here
801
	int i;
803
	int i;
802
804
803
	LAGG_XLOCK_ASSERT(sc);
805
	LAGG_XLOCK_ASSERT(sc);
806
	lp->lp_flags |= LAGG_PORT_DISABLED;
804
807
805
	if (rundelport) {
808
	if (rundelport) {
806
		LAGG_WLOCK(sc);
809
		LAGG_WLOCK(sc);

Return to bug 234846