ieee8023ad_lacp.c (272386) | ieee8023ad_lacp.c (272547) |
---|---|
1/* $NetBSD: ieee8023ad_lacp.c,v 1.3 2005/12/11 12:24:54 christos Exp $ */ 2 3/*- 4 * Copyright (c)2005 YAMAMOTO Takashi, 5 * Copyright (c)2008 Andrew Thompson <thompsa@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/* $NetBSD: ieee8023ad_lacp.c,v 1.3 2005/12/11 12:24:54 christos Exp $ */ 2 3/*- 4 * Copyright (c)2005 YAMAMOTO Takashi, 5 * Copyright (c)2008 Andrew Thompson <thompsa@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/net/ieee8023ad_lacp.c 272386 2014-10-01 21:37:32Z hrs $"); | 31__FBSDID("$FreeBSD: head/sys/net/ieee8023ad_lacp.c 272547 2014-10-05 02:34:21Z hrs $"); |
32 33#include <sys/param.h> 34#include <sys/callout.h> 35#include <sys/eventhandler.h> 36#include <sys/mbuf.h> 37#include <sys/systm.h> 38#include <sys/malloc.h> 39#include <sys/kernel.h> /* hz */ --- 534 unchanged lines hidden (view full) --- 574 for (i = 0; i < LACP_NTIMER; i++) { 575 LACP_TIMER_DISARM(lp, i); 576 } 577 578 lacp_disable_collecting(lp); 579 lacp_disable_distributing(lp); 580 lacp_unselect(lp); 581 | 32 33#include <sys/param.h> 34#include <sys/callout.h> 35#include <sys/eventhandler.h> 36#include <sys/mbuf.h> 37#include <sys/systm.h> 38#include <sys/malloc.h> 39#include <sys/kernel.h> /* hz */ --- 534 unchanged lines hidden (view full) --- 574 for (i = 0; i < LACP_NTIMER; i++) { 575 LACP_TIMER_DISARM(lp, i); 576 } 577 578 lacp_disable_collecting(lp); 579 lacp_disable_distributing(lp); 580 lacp_unselect(lp); 581 |
582 LIST_REMOVE(lp, lp_next); 583 LACP_UNLOCK(lsc); 584 |
|
582 /* The address may have already been removed by if_purgemaddrs() */ 583 if (!lgp->lp_detaching) 584 if_delmulti_ifma(lp->lp_ifma); 585 | 585 /* The address may have already been removed by if_purgemaddrs() */ 586 if (!lgp->lp_detaching) 587 if_delmulti_ifma(lp->lp_ifma); 588 |
586 LIST_REMOVE(lp, lp_next); 587 LACP_UNLOCK(lsc); | |
588 free(lp, M_DEVBUF); 589} 590 591void 592lacp_req(struct lagg_softc *sc, void *data) 593{ 594 struct lacp_opreq *req = (struct lacp_opreq *)data; 595 struct lacp_softc *lsc = LACP_SOFTC(sc); --- 144 unchanged lines hidden (view full) --- 740 741static void 742lacp_transit_expire(void *vp) 743{ 744 struct lacp_softc *lsc = vp; 745 746 LACP_LOCK_ASSERT(lsc); 747 | 589 free(lp, M_DEVBUF); 590} 591 592void 593lacp_req(struct lagg_softc *sc, void *data) 594{ 595 struct lacp_opreq *req = (struct lacp_opreq *)data; 596 struct lacp_softc *lsc = LACP_SOFTC(sc); --- 144 unchanged lines hidden (view full) --- 741 742static void 743lacp_transit_expire(void *vp) 744{ 745 struct lacp_softc *lsc = vp; 746 747 LACP_LOCK_ASSERT(lsc); 748 |
749 CURVNET_SET(lsc->lsc_softc->sc_ifp->if_vnet); |
|
748 LACP_TRACE(NULL); | 750 LACP_TRACE(NULL); |
751 CURVNET_RESTORE(); |
|
749 750 lsc->lsc_suppress_distributing = FALSE; 751} 752 753void 754lacp_attach(struct lagg_softc *sc) 755{ 756 struct lacp_softc *lsc; --- 1262 unchanged lines hidden --- | 752 753 lsc->lsc_suppress_distributing = FALSE; 754} 755 756void 757lacp_attach(struct lagg_softc *sc) 758{ 759 struct lacp_softc *lsc; --- 1262 unchanged lines hidden --- |