Embed the netmsg in the mbuf itself rather than allocating one for
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 20 May 2006 06:32:41 +0000 (06:32 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 20 May 2006 06:32:41 +0000 (06:32 +0000)
commit6aad077d69b6a2d39405e25c987bb090ff78a724
tree3f561d919c6fefe00c12bbe422e73a1914702fd4
parentfda59c4c212445552a59c813cbeea4e08159cffb
Embed the netmsg in the mbuf itself rather than allocating one for
each received packet.  This greatly reduces the overhead in the
network receive path (removing a malloc() and free()).
15 files changed:
sys/bus/usb/usb_ethersubr.c
sys/net/netisr.c
sys/net/ppp/if_ppp.c
sys/netgraph/netgraph/ng_base.c
sys/netinet/if_ether.c
sys/netinet/ip_input.c
sys/netinet6/ip6_input.c
sys/netproto/atalk/aarp.c
sys/netproto/atalk/ddp_input.c
sys/netproto/atm/atm_subr.c
sys/netproto/ipx/ipx_input.c
sys/netproto/natm/natm.c
sys/netproto/ns/ns_input.c
sys/sys/mbuf.h
sys/sys/msgport.h