kernel - Replace zalloc zones with kmalloc for PCBs
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Jan 2010 19:09:19 +0000 (11:09 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Jan 2010 19:09:19 +0000 (11:09 -0800)
commit9f42c1299494d8e31a01d9dec457c1560d32f8a1
tree6a95dd3dba5e61519cd85334e9dfc8ef912b52c0
parent933b2263d04d630b44cc3d8af3a0a4b8300b55ac
kernel - Replace zalloc zones with kmalloc for PCBs

* Use kmalloc to allocate PCBs instead of zalloc.  This removes over
  100MB of KVA reservation, particularly from inp_tcp.

* Solves an issue with maxfiles where too much KVA was being reserved
  by the network for PCBs.

* Replace all SCTP zalloc zones with kmalloc.

Reported-bu: Rumko, Peter Avalos <pavalos@theshell.com>
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/ip_divert.c
sys/netinet/raw_ip.c
sys/netinet/sctp_pcb.h
sys/netinet/sctputil.h
sys/netinet/tcp_subr.c
sys/netinet/tcp_syncache.c
sys/netinet/udp_usrreq.c
sys/netinet6/in6_pcb.c