diff options
author | Maxime Henrion <mux@FreeBSD.org> | 2004-05-23 16:11:53 +0000 |
---|---|---|
committer | Maxime Henrion <mux@FreeBSD.org> | 2004-05-23 16:11:53 +0000 |
commit | 866a788cc2d433216235cd8ab56b2c052b0b2aa6 (patch) | |
tree | 00728f0e85a4f341e4ca55d0b8472e3ecbfc89ea /sys | |
parent | c94dd84382c404921b50d6235c0f7758991c5cad (diff) | |
download | src-866a788cc2d433216235cd8ab56b2c052b0b2aa6.tar.gz src-866a788cc2d433216235cd8ab56b2c052b0b2aa6.zip |
We don't need to initialize if_output, ether_ifattach() does it
for us.
Notes
Notes:
svn path=/head/; revision=129616
Diffstat (limited to 'sys')
37 files changed, 0 insertions, 37 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c index 87a6d612dca2..e1623ec40863 100644 --- a/sys/dev/an/if_an.c +++ b/sys/dev/an/if_an.c @@ -756,7 +756,6 @@ an_attach(sc, unit, flags) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = an_ioctl; - ifp->if_output = ether_output; ifp->if_start = an_start; ifp->if_watchdog = an_watchdog; ifp->if_init = an_init; diff --git a/sys/dev/arl/if_arl.c b/sys/dev/arl/if_arl.c index 0be53eb636f4..9225e6f4b84c 100644 --- a/sys/dev/arl/if_arl.c +++ b/sys/dev/arl/if_arl.c @@ -192,7 +192,6 @@ arl_attach(dev) #endif ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - ifp->if_output = ether_output; ifp->if_start = arl_start; ifp->if_ioctl = arl_ioctl; ifp->if_watchdog = arl_watchdog; diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index 764480cd08b1..8661843d3531 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -396,7 +396,6 @@ bfe_attach(device_t dev) if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = bfe_ioctl; - ifp->if_output = ether_output; ifp->if_start = bfe_start; ifp->if_watchdog = bfe_watchdog; ifp->if_init = bfe_init; diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index d4ab27c91081..b12f82bdb6fd 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -2358,7 +2358,6 @@ bge_attach(dev) if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = bge_ioctl; - ifp->if_output = ether_output; ifp->if_start = bge_start; ifp->if_watchdog = bge_watchdog; ifp->if_init = bge_init; diff --git a/sys/dev/cnw/if_cnw.c b/sys/dev/cnw/if_cnw.c index b60cb747f7d2..9e2fdd4bea0d 100644 --- a/sys/dev/cnw/if_cnw.c +++ b/sys/dev/cnw/if_cnw.c @@ -1635,7 +1635,6 @@ static int cnw_pccard_attach(device_t dev) ifp->if_mtu = ETHERMTU; ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST); ifp->if_ioctl = cnw_ioctl; - ifp->if_output = ether_output; ifp->if_start = cnw_start; /* ifp->if_watchdog = 0; */ ifp->if_watchdog = cnw_watchdog; diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c index a10d25d7a0ec..352a8de825bb 100644 --- a/sys/dev/cs/if_cs.c +++ b/sys/dev/cs/if_cs.c @@ -600,7 +600,6 @@ cs_attach(device_t dev) ifp->if_softc=sc; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); - ifp->if_output=ether_output; ifp->if_start=cs_start; ifp->if_ioctl=cs_ioctl; ifp->if_watchdog=cs_watchdog; diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index a968f32cb757..c3eb45f5ee36 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -1719,7 +1719,6 @@ ed_attach(dev) */ ifp->if_softc = sc; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); - ifp->if_output = ether_output; ifp->if_start = ed_start; ifp->if_ioctl = ed_ioctl; ifp->if_watchdog = ed_watchdog; diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 5e508e109736..4cd76861f287 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -1839,7 +1839,6 @@ em_setup_interface(device_t dev, struct adapter * adapter) ifp = &adapter->interface_data.ac_if; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_mtu = ETHERMTU; - ifp->if_output = ether_output; ifp->if_baudrate = 1000000000; ifp->if_init = em_init; ifp->if_softc = adapter; diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 93bf5d51c311..60197577cafe 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -290,7 +290,6 @@ ep_attach(struct ep_softc *sc) if_initname(ifp, device_get_name(sc->dev), device_get_unit(sc->dev)); ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - ifp->if_output = ether_output; ifp->if_start = epstart; ifp->if_ioctl = epioctl; ifp->if_watchdog = epwatchdog; diff --git a/sys/dev/ex/if_ex.c b/sys/dev/ex/if_ex.c index c0a64e0b76cb..ba65a849104a 100644 --- a/sys/dev/ex/if_ex.c +++ b/sys/dev/ex/if_ex.c @@ -241,7 +241,6 @@ ex_attach(device_t dev) if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; - ifp->if_output = ether_output; ifp->if_start = ex_start; ifp->if_ioctl = ex_ioctl; ifp->if_watchdog = ex_watchdog; diff --git a/sys/dev/fe/if_fe.c b/sys/dev/fe/if_fe.c index ed89b5218f15..75b224654956 100644 --- a/sys/dev/fe/if_fe.c +++ b/sys/dev/fe/if_fe.c @@ -740,7 +740,6 @@ fe_attach (device_t dev) */ sc->sc_if.if_softc = sc; if_initname(&sc->sc_if, device_get_name(dev), device_get_unit(dev)); - sc->sc_if.if_output = ether_output; sc->sc_if.if_start = fe_start; sc->sc_if.if_ioctl = fe_ioctl; sc->sc_if.if_watchdog = fe_watchdog; diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c index a0fb83c342d4..a0acec3c9400 100644 --- a/sys/dev/firewire/if_fwe.c +++ b/sys/dev/firewire/if_fwe.c @@ -209,7 +209,6 @@ fwe_attach(device_t dev) ifp->if_name = "fwe"; #endif ifp->if_init = fwe_init; - ifp->if_output = ether_output; ifp->if_start = fwe_start; ifp->if_ioctl = fwe_ioctl; ifp->if_mtu = ETHERMTU; diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index b5c772521578..8a493291e2eb 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -788,7 +788,6 @@ fxp_attach(device_t dev) ifp = &sc->arpcom.ac_if; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); - ifp->if_output = ether_output; ifp->if_baudrate = 100000000; ifp->if_init = fxp_init; ifp->if_softc = sc; diff --git a/sys/dev/gem/if_gem.c b/sys/dev/gem/if_gem.c index bf1372f30fe8..bee345313f89 100644 --- a/sys/dev/gem/if_gem.c +++ b/sys/dev/gem/if_gem.c @@ -253,7 +253,6 @@ gem_attach(sc) ifp->if_ioctl = gem_ioctl; ifp->if_watchdog = gem_watchdog; ifp->if_init = gem_init; - ifp->if_output = ether_output; ifp->if_snd.ifq_maxlen = GEM_TXQUEUELEN; /* * Walk along the list of attached MII devices and diff --git a/sys/dev/gx/if_gx.c b/sys/dev/gx/if_gx.c index 9def700a794c..bd7088c123ae 100644 --- a/sys/dev/gx/if_gx.c +++ b/sys/dev/gx/if_gx.c @@ -342,7 +342,6 @@ gx_attach(device_t dev) if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = gx_ioctl; - ifp->if_output = ether_output; ifp->if_start = gx_start; ifp->if_watchdog = gx_watchdog; ifp->if_init = gx_init; diff --git a/sys/dev/hme/if_hme.c b/sys/dev/hme/if_hme.c index 196ad1480182..46cc6d6ba964 100644 --- a/sys/dev/hme/if_hme.c +++ b/sys/dev/hme/if_hme.c @@ -274,7 +274,6 @@ hme_config(struct hme_softc *sc) ifp->if_start = hme_start; ifp->if_ioctl = hme_ioctl; ifp->if_init = hme_init; - ifp->if_output = ether_output; ifp->if_watchdog = hme_watchdog; ifp->if_snd.ifq_maxlen = HME_NTXQ; diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c index f801d8df8f4e..7bd7192c1baf 100644 --- a/sys/dev/lge/if_lge.c +++ b/sys/dev/lge/if_lge.c @@ -607,7 +607,6 @@ lge_attach(dev) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = lge_ioctl; - ifp->if_output = ether_output; ifp->if_start = lge_start; ifp->if_watchdog = lge_watchdog; ifp->if_init = lge_init; diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index d3aabba17057..b977ef59cd87 100644 --- a/sys/dev/lnc/if_lnc.c +++ b/sys/dev/lnc/if_lnc.c @@ -877,7 +877,6 @@ lnc_attach_common(device_t dev) device_get_unit(dev)); sc->arpcom.ac_if.if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; sc->arpcom.ac_if.if_timer = 0; - sc->arpcom.ac_if.if_output = ether_output; sc->arpcom.ac_if.if_start = lnc_start; sc->arpcom.ac_if.if_ioctl = lnc_ioctl; sc->arpcom.ac_if.if_watchdog = lnc_watchdog; diff --git a/sys/dev/my/if_my.c b/sys/dev/my/if_my.c index 6f42a5954a14..d18c1370be23 100644 --- a/sys/dev/my/if_my.c +++ b/sys/dev/my/if_my.c @@ -990,7 +990,6 @@ my_attach(device_t dev) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = my_ioctl; - ifp->if_output = ether_output; ifp->if_start = my_start; ifp->if_watchdog = my_watchdog; ifp->if_init = my_init; diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c index 01511ce0e844..e8453b37a284 100644 --- a/sys/dev/nge/if_nge.c +++ b/sys/dev/nge/if_nge.c @@ -940,7 +940,6 @@ nge_attach(dev) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = nge_ioctl; - ifp->if_output = ether_output; ifp->if_start = nge_start; ifp->if_watchdog = nge_watchdog; ifp->if_init = nge_init; diff --git a/sys/dev/owi/if_owi.c b/sys/dev/owi/if_owi.c index 6b26cd0dd9d8..c8a1aa8693dd 100644 --- a/sys/dev/owi/if_owi.c +++ b/sys/dev/owi/if_owi.c @@ -233,7 +233,6 @@ owi_generic_attach(device_t dev) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = wi_ioctl; - ifp->if_output = ether_output; ifp->if_start = wi_start; ifp->if_watchdog = wi_watchdog; ifp->if_init = wi_init; diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c index c7dd67a17c35..7376f4468318 100644 --- a/sys/dev/ray/if_ray.c +++ b/sys/dev/ray/if_ray.c @@ -509,7 +509,6 @@ ray_attach(device_t dev) ifp->if_hdrlen = sizeof(struct ieee80211_frame) + sizeof(struct ether_header); ifp->if_baudrate = 1000000; /* Is this baud or bps ;-) */ - ifp->if_output = ether_output; ifp->if_start = ray_tx; ifp->if_ioctl = ray_ioctl; ifp->if_watchdog = ray_watchdog; diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 19f4004e1fca..440a5bed38ac 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -1251,7 +1251,6 @@ re_attach(dev) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = re_ioctl; - ifp->if_output = ether_output; ifp->if_capabilities = IFCAP_VLAN_MTU; ifp->if_start = re_start; ifp->if_hwassist = RE_CSUM_FEATURES; diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c index 42c6573194bd..dc4275bcbbcf 100644 --- a/sys/dev/sbni/if_sbni.c +++ b/sys/dev/sbni/if_sbni.c @@ -231,7 +231,6 @@ sbni_attach(struct sbni_softc *sc, int unit, struct sbni_flags flags) if_initname(ifp, "sbni", unit); ifp->if_init = sbni_init; ifp->if_start = sbni_start; - ifp->if_output = ether_output; ifp->if_ioctl = sbni_ioctl; ifp->if_watchdog = sbni_watchdog; ifp->if_snd.ifq_maxlen = IFQ_MAXLEN; diff --git a/sys/dev/sbsh/if_sbsh.c b/sys/dev/sbsh/if_sbsh.c index 7e7221261fe2..e225ec9922c0 100644 --- a/sys/dev/sbsh/if_sbsh.c +++ b/sys/dev/sbsh/if_sbsh.c @@ -272,7 +272,6 @@ sbsh_attach(device_t dev) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = sbsh_ioctl; - ifp->if_output = ether_output; ifp->if_start = sbsh_start; ifp->if_watchdog = sbsh_watchdog; ifp->if_init = sbsh_init; diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c index 21a894890c93..ba2e413c3505 100644 --- a/sys/dev/sn/if_sn.c +++ b/sys/dev/sn/if_sn.c @@ -203,7 +203,6 @@ sn_attach(device_t dev) if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - ifp->if_output = ether_output; ifp->if_start = snstart; ifp->if_ioctl = snioctl; ifp->if_watchdog = snwatchdog; diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c index 544557614d6b..22789cda152b 100644 --- a/sys/dev/snc/dp83932.c +++ b/sys/dev/snc/dp83932.c @@ -174,7 +174,6 @@ sncconfig(sc, media, nmedia, defmedia, myea) if_initname(ifp, device_get_name(sc->sc_dev), device_get_unit(sc->sc_dev)); ifp->if_ioctl = sncioctl; - ifp->if_output = ether_output; ifp->if_start = sncstart; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c index 90939a83057a..4e5b85d996d1 100644 --- a/sys/dev/txp/if_txp.c +++ b/sys/dev/txp/if_txp.c @@ -356,7 +356,6 @@ txp_attach(dev) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = txp_ioctl; - ifp->if_output = ether_output; ifp->if_start = txp_start; ifp->if_watchdog = txp_watchdog; ifp->if_init = txp_init; diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index 15acc14b4c5c..17191e233b68 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -737,7 +737,6 @@ USB_ATTACH(aue) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = aue_ioctl; - ifp->if_output = ether_output; ifp->if_start = aue_start; ifp->if_watchdog = aue_watchdog; ifp->if_init = aue_init; diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index d80cb6aa4613..ebd3d2ad4272 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -499,7 +499,6 @@ USB_ATTACH(axe) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = axe_ioctl; - ifp->if_output = ether_output; ifp->if_start = axe_start; ifp->if_watchdog = axe_watchdog; ifp->if_init = axe_init; diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index 86bef5dc11ad..1996802194e4 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -516,7 +516,6 @@ USB_ATTACH(cue) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = cue_ioctl; - ifp->if_output = ether_output; ifp->if_start = cue_start; ifp->if_watchdog = cue_watchdog; ifp->if_init = cue_init; diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index cf864c30d272..484cc4117d30 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -482,7 +482,6 @@ USB_ATTACH(kue) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = kue_ioctl; - ifp->if_output = ether_output; ifp->if_start = kue_start; ifp->if_watchdog = kue_watchdog; ifp->if_init = kue_init; diff --git a/sys/dev/usb/if_rue.c b/sys/dev/usb/if_rue.c index 775dab7be218..5d70e8a53479 100644 --- a/sys/dev/usb/if_rue.c +++ b/sys/dev/usb/if_rue.c @@ -688,7 +688,6 @@ USB_ATTACH(rue) ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = rue_ioctl; - ifp->if_output = ether_output; ifp->if_start = rue_start; ifp->if_watchdog = rue_watchdog; ifp->if_init = rue_init; diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c index cf8f4753989f..fa33bcabeb4e 100644 --- a/sys/dev/usb/if_udav.c +++ b/sys/dev/usb/if_udav.c @@ -408,7 +408,6 @@ USB_ATTACH(udav) ifp->if_stop = udav_stop; #endif #if defined(__FreeBSD__) - ifp->if_output = ether_output; ifp->if_baudrate = 10000000; ifp->if_snd.ifq_maxlen = IFQ_MAXLEN; #endif diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c index c36d3bf3ef0d..143534378591 100644 --- a/sys/dev/vx/if_vx.c +++ b/sys/dev/vx/if_vx.c @@ -159,7 +159,6 @@ vxattach(dev) ifp->if_mtu = ETHERMTU; ifp->if_snd.ifq_maxlen = IFQ_MAXLEN; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - ifp->if_output = ether_output; ifp->if_start = vxstart; ifp->if_ioctl = vxioctl; ifp->if_init = vxinit; diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index e954b535328f..977c8a667f63 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -554,7 +554,6 @@ wlattach(device_t device) #endif /* MULTICAST */ if_initname(ifp, device_get_name(device), device_get_unit(device)); ifp->if_init = wlinit; - ifp->if_output = ether_output; ifp->if_start = wlstart; ifp->if_ioctl = wlioctl; ifp->if_timer = 0; /* paranoia */ diff --git a/sys/dev/xe/if_xe.c b/sys/dev/xe/if_xe.c index 0d9eb921c52f..ea8fb76ec49e 100644 --- a/sys/dev/xe/if_xe.c +++ b/sys/dev/xe/if_xe.c @@ -241,7 +241,6 @@ xe_attach (device_t dev) scp->ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST); scp->ifp->if_linkmib = &scp->mibdata; scp->ifp->if_linkmiblen = sizeof scp->mibdata; - scp->ifp->if_output = ether_output; scp->ifp->if_start = xe_start; scp->ifp->if_ioctl = xe_ioctl; scp->ifp->if_watchdog = xe_watchdog; |