mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
We don't need to initialize if_output, ether_ifattach() does it
for us.
This commit is contained in:
parent
c94dd84382
commit
866a788cc2
37 changed files with 0 additions and 37 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue