git: if: Add compat mode for ifnet stats so that 3rd party apps can work

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Feb 17 00:01:28 PST 2013


commit 6517ec3f8546893c4d6fa188ff97f436b081d0f9
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sun Feb 17 16:00:36 2013 +0800

    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.

Summary of changes:
 sys/net/if.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6517ec3f8546893c4d6fa188ff97f436b081d0f9


-- 
DragonFly BSD source repository



More information about the Commits mailing list