CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2017/01/22 18:26:09
Modified files:
sys/net : if.c if.h rtsock.c
Log message:
merge the ifnet and ifqueue stats together when userland wants them.
a new if_data() function takes a pointer to ifnet and merges its
if_data and ifq statistics. it takes the ifq mutex around the reads
of the ifq stats so they get a consistent copy.
the ifnet and ifq stats are merged because some parts of the stack
still update the ifnet counters.
ok visa@ (on an earlier diff) mpi@ claudio@