summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2008-11-24 13:10:16 +0000
committerdlg <dlg@openbsd.org>2008-11-24 13:10:16 +0000
commitd69c8917775d39aa7d38096148aa622c58f277df (patch)
treefe395e268b47ccc7fdf8c164e9f4c16171cb18bc /sys/net/pf_ioctl.c
parentadd several backend pools to allocate mbufs clusters of various sizes out (diff)
downloadwireguard-openbsd-d69c8917775d39aa7d38096148aa622c58f277df.tar.xz
wireguard-openbsd-d69c8917775d39aa7d38096148aa622c58f277df.zip
switch from using MCLGET to MCLGETI for clusters going onto the rx ring.
this causes vic to start up with 4 mbufs on the ring, and the allocator will let it increase the number of rx mbufs as usage demands. testing shows that i need only 20 to 30 mbufs on the rx ring to cope with full speed io. we used to always put 100 on the ring, so we're now saving 140k of kernerl virtual address space (70 * MCLBYTES). this relies on the previous commit that copes with failures of mbuf allocation in the rx path. similar changes must be made to all the other drivers. i'll happily review diffs people send in. SUBTLE HINTS ARE COMING YOUR WAY.
Diffstat (limited to 'sys/net/pf_ioctl.c')
0 files changed, 0 insertions, 0 deletions