if: Per-cpu ifnet/ifaddr statistics, step 3/3
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 15 Feb 2013 08:15:47 +0000 (16:15 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 15 Feb 2013 08:24:40 +0000 (16:24 +0800)
commite1fcdad72cfb9eab8f4873e5b9330f2a753dfefa
tree03d0da8d2293f6fe7b0fde4f6cdf3e8776dd9fd6
parent572fa6a2e65a8ad46b9e88c87f26bda3b587ba7f
if: Per-cpu ifnet/ifaddr statistics, step 3/3

Make ifnet stats per-cpu.  The per-cpu stats are stored in cache aligned
ifdata_pcpu struct.

- if_mib code is adjusted, so callers of the IFMIB_IFDATA sysctl will not
  aware of the ifnet per-cpu stats, e.g. systat -if
- User space programs that directly access ifnet.if_data are modified to
  aware of the new location of the ifnet stats, e.g. netstat -in
sys/net/if.c
sys/net/if_mib.c
sys/net/if_var.h
usr.bin/netstat/if.c