pf - Improve SMP counter performance, static array MAXCPU -> kmalloc
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 29 Apr 2019 19:48:58 +0000 (12:48 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 29 Apr 2019 20:21:49 +0000 (13:21 -0700)
commitf7c73ea6a668231111e93e60976f7d29f0163bf3
treeeff001290dde1026cab7e8d7a9f1406f6629c679
parenta343faf113a60c5d1a62f29a3c20961d96da3cc7
pf - Improve SMP counter performance, static array MAXCPU -> kmalloc

* Change the global counters to pcpu counters.  Counters are now
  incremented in a cache-friendly state and will be aggregated
  in the status ioctl.

* Change all static declarations of MAXCPU arrays into kmalloc()d
  arrays to reduce kernel bss size.
sys/net/pf/pf.c
sys/net/pf/pf_ioctl.c
sys/net/pf/pf_norm.c
sys/net/pf/pfvar.h