ether_input/rss: Pass packet info to ether_input_chain.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 21 Mar 2009 02:46:12 +0000 (10:46 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 21 Mar 2009 02:46:12 +0000 (10:46 +0800)
commit2eb0d0694bd74032ad456be1c83b669b6b692b18
treebb201c22171eed5c34da720e2fede01e769a6c1a
parent6afb09f87cb7fc02d9c0e20c492dbc2caac51bc6
ether_input/rss: Pass packet info to ether_input_chain.

- Pass packet info to ether_input_chain(), if netisr_find_pktinfo_port()
  could locate the msgport, then short circuit the rest of the ether_input
  code and dispatch the ethernet packet directly.
- Revoke the pi_hash field in pktinfo and extend the pktinfo_portfn_t to
  accpet an mbuf parameter, so that pktinfo_portfn_t could change the mbuf
  hash value.  e.g. pktinfo_portfn_cpu0() will always set m_pkthdr.hash
  to 0.
- Adjust ether_input_chain() callers accordingly.
16 files changed:
sys/dev/netif/bce/if_bce.c
sys/dev/netif/bfe/if_bfe.c
sys/dev/netif/bge/if_bge.c
sys/dev/netif/em/if_em.c
sys/dev/netif/emx/if_emx.c
sys/dev/netif/et/if_et.c
sys/dev/netif/fxp/if_fxp.c
sys/dev/netif/jme/if_jme.c
sys/dev/netif/msk/if_msk.c
sys/dev/netif/nfe/if_nfe.c
sys/dev/netif/re/if_re.c
sys/dev/netif/xl/if_xl.c
sys/net/if_ethersubr.c
sys/net/if_var.h
sys/net/netisr.c
sys/net/netisr.h