cvs commit: src/sys/dev/netif/bce if_bce.c src/sys/dev/netif/bge if_bge.c src/sys/dev/netif/em if_em.c src/sys/dev/netif/nge if_nge.c src/sys/dev/netif/re if_re.c src/sys/dev/netif/stge if_stge.c src/sys/dev/netif/ti if_ti.c src/sys/dev/netif/txp ...

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri May 16 06:21:35 PDT 2008


sephe       2008/05/16 06:19:12 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/bce    if_bce.c 
    sys/dev/netif/bge    if_bge.c 
    sys/dev/netif/em     if_em.c 
    sys/dev/netif/nge    if_nge.c 
    sys/dev/netif/re     if_re.c 
    sys/dev/netif/stge   if_stge.c 
    sys/dev/netif/ti     if_ti.c 
    sys/dev/netif/txp    if_txp.c 
    sys/dev/netif/vge    if_vge.c 
    sys/net              ethernet.h if_ethersubr.c 
    sys/net/vlan         if_vlan.c if_vlan_ether.c if_vlan_ether.h 
  Log:
  Unify vlan_input() and vlan_input_tag():
  - For device drivers that support hardware vlan tag extraction, mbuf's
    M_VLANTAG is turned on and vlan tag is saved in mbuf.m_pkthdr.ether_vlantag
  - At the very beginning of ether_input_chain(), if the packet's ether type is
    vlan and hardware does not extract vlan tag, vlan_ether_decap() is called to
    do software vlan tag extraction.
  - Instead of BPF_MTAP(), ETHER_BPF_MTAP() is used in ether_input_chain() to
    deliver possible vlan tagging information to the bpf listeners.
  - Ether header is restored before calling vlan_input(), so under most cases,
    extra ether header copy is avoided.  vlan_input() does nothing more than
    finding vlan interface and looping back the packet to ether_input_chain()
    with vlan interface as input interface.
  
  Ideas-from: FreeBSD
  
  Revision  Changes    Path
  1.5       +6 -4      src/sys/dev/netif/bce/if_bce.c
  1.92      +3 -3      src/sys/dev/netif/bge/if_bge.c
  1.72      +7 -8      src/sys/dev/netif/em/if_em.c
  1.48      +6 -4      src/sys/dev/netif/nge/if_nge.c
  1.43      +4 -4      src/sys/dev/netif/re/if_re.c
  1.6       +4 -4      src/sys/dev/netif/stge/if_stge.c
  1.52      +5 -8      src/sys/dev/netif/ti/if_ti.c
  1.49      +5 -4      src/sys/dev/netif/txp/if_txp.c
  1.9       +6 -4      src/sys/dev/netif/vge/if_vge.c
  1.18      +2 -13     src/sys/net/ethernet.h
  1.60      +36 -13    src/sys/net/if_ethersubr.c
  1.32      +31 -82    src/sys/net/vlan/if_vlan.c
  1.3       +25 -0     src/sys/net/vlan/if_vlan_ether.c
  1.2       +1 -0      src/sys/net/vlan/if_vlan_ether.h


http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/bce/if_bce.c.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/bge/if_bge.c.diff?r1=1.91&r2=1.92&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/em/if_em.c.diff?r1=1.71&r2=1.72&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/nge/if_nge.c.diff?r1=1.47&r2=1.48&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/re/if_re.c.diff?r1=1.42&r2=1.43&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/stge/if_stge.c.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ti/if_ti.c.diff?r1=1.51&r2=1.52&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/txp/if_txp.c.diff?r1=1.48&r2=1.49&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/vge/if_vge.c.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/ethernet.h.diff?r1=1.17&r2=1.18&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_ethersubr.c.diff?r1=1.59&r2=1.60&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/vlan/if_vlan.c.diff?r1=1.31&r2=1.32&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/vlan/if_vlan_ether.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/vlan/if_vlan_ether.h.diff?r1=1.1&r2=1.2&f=u





More information about the Commits mailing list