diff options
author | brooks <brooks@FreeBSD.org> | 2011-11-11 22:57:52 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2011-11-11 22:57:52 +0000 |
commit | e4a4d6436f0f0ff5634e11e201ea62c8556c6be0 (patch) | |
tree | 9c3d4771af4bc09f8669c0cc5c55575e14b30711 /sys/net/if_lagg.c | |
parent | 8710aaed7e5126453e85553f99198552d4e65810 (diff) | |
download | FreeBSD-src-e4a4d6436f0f0ff5634e11e201ea62c8556c6be0.zip FreeBSD-src-e4a4d6436f0f0ff5634e11e201ea62c8556c6be0.tar.gz |
In r191367 the need for if_free_type() was removed and a new member
if_alloctype was used to store the origional interface type. Take
advantage of this change by removing all existing uses of if_free_type()
in favor of if_free().
MFC after: 1 Month
Diffstat (limited to 'sys/net/if_lagg.c')
-rw-r--r-- | sys/net/if_lagg.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index a7022d4..730047f 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -275,7 +275,7 @@ lagg_clone_create(struct if_clone *ifc, int unit, caddr_t params) if (lagg_protos[i].ti_proto == LAGG_PROTO_DEFAULT) { sc->sc_proto = lagg_protos[i].ti_proto; if ((error = lagg_protos[i].ti_attach(sc)) != 0) { - if_free_type(ifp, IFT_ETHER); + if_free(ifp); free(sc, M_DEVBUF); return (error); } @@ -293,7 +293,6 @@ lagg_clone_create(struct if_clone *ifc, int unit, caddr_t params) ifmedia_set(&sc->sc_media, IFM_ETHER | IFM_AUTO); if_initname(ifp, ifc->ifc_name, unit); - ifp->if_type = IFT_ETHER; ifp->if_softc = sc; ifp->if_start = lagg_start; ifp->if_init = lagg_init; @@ -305,7 +304,7 @@ lagg_clone_create(struct if_clone *ifc, int unit, caddr_t params) IFQ_SET_READY(&ifp->if_snd); /* - * Attach as an ordinary ethernet device, childs will be attached + * Attach as an ordinary ethernet device, children will be attached * as special device IFT_IEEE8023ADLAG. */ ether_ifattach(ifp, eaddr); @@ -352,7 +351,7 @@ lagg_clone_destroy(struct ifnet *ifp) ifmedia_removeall(&sc->sc_media); ether_ifdetach(ifp); - if_free_type(ifp, IFT_ETHER); + if_free(ifp); mtx_lock(&lagg_list_mtx); SLIST_REMOVE(&lagg_list, sc, lagg_softc, sc_entries); |