DragonFly BSD
DragonFly commits List (threaded) for 2013-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - fix statistics counters for if_bridge.


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Jun 2013 12:26:00 -0700 (PDT)

commit 7b9441903b35a1139f96bf49f65be192345f49e3
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Wed Jun 12 12:10:41 2013 -0700

    kernel - fix statistics counters for if_bridge.
    
    * Count input statistics in bridge_input() instead of bridge_forward()
    
    * Add output statistics in bridge_forward().  That is, the bridge should
      in abstract look like a piece of hardware from a statistics standpoint,
      so when a packet is forwarded through a bridge interface it needs to
      show up as both an input packet and an output packet.
    
    * Fixes statistics reporting for e.g. 'netstat -in 1'.

Summary of changes:
 sys/net/bridge/if_bridge.c | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7b9441903b35a1139f96bf49f65be192345f49e3


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]