cvs commit: src/sys/bus/usb usb_ethersubr.c usb_port.h src/sys/contrib/dev/oltr if_oltr.c src/sys/dev/atm/en midway.c src/sys/dev/netif/an if_an.c src/sys/dev/netif/aue if_aue.c src/sys/dev/netif/awi awi.c src/sys/dev/netif/axe if_axe.c ...
Joerg Sonnenberger
joerg at crater.dragonflybsd.org
Fri Jul 23 00:17:44 PDT 2004
joerg 2004/07/23 00:16:31 PDT
DragonFly src repository
Modified files:
sys/bus/usb usb_ethersubr.c usb_port.h
sys/contrib/dev/oltr if_oltr.c
sys/dev/atm/en midway.c
sys/dev/netif/an if_an.c
sys/dev/netif/aue if_aue.c
sys/dev/netif/awi awi.c
sys/dev/netif/axe if_axe.c
sys/dev/netif/bfe if_bfe.c
sys/dev/netif/bge if_bge.c
sys/dev/netif/cm smc90cx6.c
sys/dev/netif/cs if_cs.c
sys/dev/netif/cue if_cue.c
sys/dev/netif/dc if_dc.c
sys/dev/netif/de if_de.c
sys/dev/netif/ed if_ed.c
sys/dev/netif/el if_el.c
sys/dev/netif/em if_em.c
sys/dev/netif/ep if_ep.c
sys/dev/netif/ex if_ex.c
sys/dev/netif/fe if_fe.c
sys/dev/netif/fwe if_fwe.c
sys/dev/netif/fxp if_fxp.c
sys/dev/netif/gx if_gx.c
sys/dev/netif/ie if_ie.c
sys/dev/netif/kue if_kue.c
sys/dev/netif/le if_le.c
sys/dev/netif/lge if_lge.c
sys/dev/netif/lnc if_lnc.c
sys/dev/netif/my if_my.c
sys/dev/netif/nge if_nge.c
sys/dev/netif/pcn if_pcn.c
sys/dev/netif/pdq_layer pdq_ifsubr.c
sys/dev/netif/ray if_ray.c
sys/dev/netif/rdp if_rdp.c
sys/dev/netif/re if_re.c
sys/dev/netif/rl if_rl.c
sys/dev/netif/sbni if_sbni.c
sys/dev/netif/sbsh if_sbsh.c
sys/dev/netif/sf if_sf.c
sys/dev/netif/sis if_sis.c
sys/dev/netif/sk if_sk.c
sys/dev/netif/sn if_sn.c
sys/dev/netif/snc dp83932.c
sys/dev/netif/ste if_ste.c
sys/dev/netif/ti if_ti.c
sys/dev/netif/tl if_tl.c
sys/dev/netif/tx if_tx.c
sys/dev/netif/txp if_txp.c
sys/dev/netif/vr if_vr.c
sys/dev/netif/vx if_vx.c
sys/dev/netif/wb if_wb.c
sys/dev/netif/wi if_wi.c
sys/dev/netif/wl if_wl.c
sys/dev/netif/wx if_wx.c
sys/dev/netif/xe if_xe.c
sys/dev/netif/xl if_xl.c
sys/net ethernet.h if_arc.h if_arcsubr.c
if_atmsubr.c if_ethersubr.c if_fddisubr.c
if_iso88025subr.c if_var.h iso88025.h
sys/net/ef if_ef.c
sys/net/tap if_tap.c
sys/net/vlan if_vlan.c
sys/netgraph/eiface ng_eiface.c
sys/netgraph/fec ng_fec.c
sys/netinet if_fddi.h
Log:
Unify the input handling of the low-level network stack by introducing
a new field if_input in struct ifnet.
Initialize if_input and if_output in the low-level _ifattach routines.
Make the _output and _input routines static, they are now called via
(*ifp->if_input) and (*ifp->if_output) accordingly. The exception is
ether_input which is still used with the second argument, the pointer
to the Ethernet header instead of always taking it from the mbuf.
Move the if_attach and bpfattach from the devices into fddi_ifattach,
atm_ifattach.
Remove the first argument to VLAN_INPUT_TAG, the pointer to the
Ethernet header. Expect it at the beginning of the mbuf.
Adjust the network for the changed API. Exceptions are wl(4), le(4),
ie(4), el(4), ed(4) and de(4), because they use a on-stack Ethernet
header. Another exception is the ATM stack, which uses a fourth argument
to atm_input.
Inspired-by: NetBSd net/if.h, rev 1.36
Revision Changes Path
1.10 +1 -5 src/sys/bus/usb/usb_ethersubr.c
1.9 +1 -7 src/sys/bus/usb/usb_port.h
1.14 +3 -22 src/sys/contrib/dev/oltr/if_oltr.c
1.11 +0 -6 src/sys/dev/atm/en/midway.c
1.13 +13 -31 src/sys/dev/netif/an/if_an.c
1.13 +0 -1 src/sys/dev/netif/aue/if_aue.c
1.16 +0 -10 src/sys/dev/netif/awi/awi.c
1.5 +0 -1 src/sys/dev/netif/axe/if_axe.c
1.7 +5 -6 src/sys/dev/netif/bfe/if_bfe.c
1.22 +2 -8 src/sys/dev/netif/bge/if_bge.c
1.10 +1 -2 src/sys/dev/netif/cm/smc90cx6.c
1.11 +1 -10 src/sys/dev/netif/cs/if_cs.c
1.13 +0 -1 src/sys/dev/netif/cue/if_cue.c
1.16 +1 -7 src/sys/dev/netif/dc/if_dc.c
1.15 +0 -1 src/sys/dev/netif/de/if_de.c
1.15 +2 -7 src/sys/dev/netif/ed/if_ed.c
1.11 +0 -1 src/sys/dev/netif/el/if_el.c
1.19 +2 -9 src/sys/dev/netif/em/if_em.c
1.12 +1 -5 src/sys/dev/netif/ep/if_ep.c
1.12 +1 -13 src/sys/dev/netif/ex/if_ex.c
1.11 +1 -7 src/sys/dev/netif/fe/if_fe.c
1.12 +0 -12 src/sys/dev/netif/fwe/if_fwe.c
1.14 +1 -2 src/sys/dev/netif/fxp/if_fxp.c
1.10 +4 -11 src/sys/dev/netif/gx/if_gx.c
1.14 +0 -1 src/sys/dev/netif/ie/if_ie.c
1.12 +0 -1 src/sys/dev/netif/kue/if_kue.c
1.15 +0 -1 src/sys/dev/netif/le/if_le.c
1.13 +1 -7 src/sys/dev/netif/lge/if_lge.c
1.12 +13 -18 src/sys/dev/netif/lnc/if_lnc.c
1.12 +1 -4 src/sys/dev/netif/my/if_my.c
1.13 +4 -12 src/sys/dev/netif/nge/if_nge.c
1.12 +1 -6 src/sys/dev/netif/pcn/if_pcn.c
1.7 +2 -10 src/sys/dev/netif/pdq_layer/pdq_ifsubr.c
1.14 +1 -4 src/sys/dev/netif/ray/if_ray.c
1.12 +4 -12 src/sys/dev/netif/rdp/if_rdp.c
1.3 +3 -7 src/sys/dev/netif/re/if_re.c
1.14 +1 -6 src/sys/dev/netif/rl/if_rl.c
1.15 +3 -7 src/sys/dev/netif/sbni/if_sbni.c
1.12 +4 -7 src/sys/dev/netif/sbsh/if_sbsh.c
1.11 +1 -6 src/sys/dev/netif/sf/if_sf.c
1.18 +1 -2 src/sys/dev/netif/sis/if_sis.c
1.17 +1 -7 src/sys/dev/netif/sk/if_sk.c
1.11 +7 -14 src/sys/dev/netif/sn/if_sn.c
1.11 +1 -18 src/sys/dev/netif/snc/dp83932.c
1.12 +1 -6 src/sys/dev/netif/ste/if_ste.c
1.13 +3 -9 src/sys/dev/netif/ti/if_ti.c
1.12 +1 -6 src/sys/dev/netif/tl/if_tl.c
1.13 +5 -11 src/sys/dev/netif/tx/if_tx.c
1.13 +4 -12 src/sys/dev/netif/txp/if_txp.c
1.14 +1 -7 src/sys/dev/netif/vr/if_vr.c
1.13 +1 -3 src/sys/dev/netif/vx/if_vx.c
1.12 +1 -7 src/sys/dev/netif/wb/if_wb.c
1.14 +10 -26 src/sys/dev/netif/wi/if_wi.c
1.13 +0 -1 src/sys/dev/netif/wl/if_wl.c
1.11 +1 -6 src/sys/dev/netif/wx/if_wx.c
1.13 +2 -4 src/sys/dev/netif/xe/if_xe.c
1.14 +1 -7 src/sys/dev/netif/xl/if_xl.c
1.8 +3 -4 src/sys/net/ethernet.h
1.4 +0 -3 src/sys/net/if_arc.h
1.10 +10 -10 src/sys/net/if_arcsubr.c
1.10 +8 -6 src/sys/net/if_atmsubr.c
1.18 +21 -11 src/sys/net/if_ethersubr.c
1.11 +22 -11 src/sys/net/if_fddisubr.c
1.9 +37 -14 src/sys/net/if_iso88025subr.c
1.15 +6 -4 src/sys/net/if_var.h
1.4 +0 -2 src/sys/net/iso88025.h
1.11 +0 -1 src/sys/net/ef/if_ef.c
1.15 +1 -5 src/sys/net/tap/if_tap.c
1.10 +5 -4 src/sys/net/vlan/if_vlan.c
1.6 +1 -22 src/sys/netgraph/eiface/ng_eiface.c
1.8 +5 -2 src/sys/netgraph/fec/ng_fec.c
1.4 +0 -3 src/sys/netinet/if_fddi.h
http://www.dragonflybsd.org/cvsweb/src/sys/bus/usb/usb_ethersubr.c.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/bus/usb/usb_port.h.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/contrib/dev/oltr/if_oltr.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/atm/en/midway.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/an/if_an.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/aue/if_aue.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/awi/awi.c.diff?r1=1.15&r2=1.16&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/axe/if_axe.c.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/bfe/if_bfe.c.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/bge/if_bge.c.diff?r1=1.21&r2=1.22&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/cm/smc90cx6.c.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/cs/if_cs.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/cue/if_cue.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/dc/if_dc.c.diff?r1=1.15&r2=1.16&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/de/if_de.c.diff?r1=1.14&r2=1.15&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ed/if_ed.c.diff?r1=1.14&r2=1.15&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/el/if_el.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/em/if_em.c.diff?r1=1.18&r2=1.19&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ep/if_ep.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ex/if_ex.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/fe/if_fe.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/fwe/if_fwe.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/fxp/if_fxp.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/gx/if_gx.c.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ie/if_ie.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/kue/if_kue.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/le/if_le.c.diff?r1=1.14&r2=1.15&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/lge/if_lge.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/lnc/if_lnc.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/my/if_my.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/nge/if_nge.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/pcn/if_pcn.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/pdq_layer/pdq_ifsubr.c.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ray/if_ray.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/rdp/if_rdp.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/re/if_re.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/rl/if_rl.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sbni/if_sbni.c.diff?r1=1.14&r2=1.15&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sbsh/if_sbsh.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sf/if_sf.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sis/if_sis.c.diff?r1=1.17&r2=1.18&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sk/if_sk.c.diff?r1=1.16&r2=1.17&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sn/if_sn.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/snc/dp83932.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ste/if_ste.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ti/if_ti.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/tl/if_tl.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/tx/if_tx.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/txp/if_txp.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/vr/if_vr.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/vx/if_vx.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/wb/if_wb.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/wi/if_wi.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/wl/if_wl.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/wx/if_wx.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/xe/if_xe.c.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/xl/if_xl.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/ethernet.h.diff?r1=1.7&r2=1.8&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_arc.h.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_arcsubr.c.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_atmsubr.c.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_ethersubr.c.diff?r1=1.17&r2=1.18&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_fddisubr.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_iso88025subr.c.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_var.h.diff?r1=1.14&r2=1.15&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/iso88025.h.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/ef/if_ef.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/tap/if_tap.c.diff?r1=1.14&r2=1.15&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/vlan/if_vlan.c.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/netgraph/eiface/ng_eiface.c.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/netgraph/fec/ng_fec.c.diff?r1=1.7&r2=1.8&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/netinet/if_fddi.h.diff?r1=1.3&r2=1.4&f=u
More information about the Commits
mailing list