net: add dev_txq_stats_fold() helper
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 16 Nov 2009 03:36:51 +0000 (03:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Nov 2009 07:51:52 +0000 (23:51 -0800)
commitd83345adf96bc13a5e360f4649a2e68ef968dec0
tree015fe31fde6b5ea6abc6ebb75aa446fa63fcbb79
parentb038b0401f9697ee1d7df40021b96e7de0564938
net: add dev_txq_stats_fold() helper

Some drivers ndo_get_stats() method need to perform txqueue stats folding.

Move folding from dev_get_stats() to a new dev_txq_stats_fold() function

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c