if: Add compat mode for ifnet stats so that 3rd party apps can work
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 17 Feb 2013 08:00:36 +0000 (16:00 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 17 Feb 2013 08:00:36 +0000 (16:00 +0800)
commit6517ec3f8546893c4d6fa188ff97f436b081d0f9
tree35a888707c97525eb925475604d2c06528778e4b
parent29bcf169867490fa3ac4acdc793902e29325ec7e
if: Add compat mode for ifnet stats so that 3rd party apps can work

If ifnet stats compat mode is enabled, the per-CPU ifnet stats will
be collected into ifnet old stats location in the if slow timer.

Sysctl node net.link.stats_compat is used to control whether the
ifnet stats compat mode should be enabled or not; it is _not_ enabled
by default.
sys/net/if.c