diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-11-15 22:36:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-18 02:51:52 -0500 |
commit | d83345adf96bc13a5e360f4649a2e68ef968dec0 (patch) | |
tree | 015fe31fde6b5ea6abc6ebb75aa446fa63fcbb79 /include | |
parent | b038b0401f9697ee1d7df40021b96e7de0564938 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 7043f85e643d..c8fa4627de00 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1941,6 +1941,7 @@ extern void netdev_features_change(struct net_device *dev); | |||
1941 | extern void dev_load(struct net *net, const char *name); | 1941 | extern void dev_load(struct net *net, const char *name); |
1942 | extern void dev_mcast_init(void); | 1942 | extern void dev_mcast_init(void); |
1943 | extern const struct net_device_stats *dev_get_stats(struct net_device *dev); | 1943 | extern const struct net_device_stats *dev_get_stats(struct net_device *dev); |
1944 | extern void dev_txq_stats_fold(const struct net_device *dev, struct net_device_stats *stats); | ||
1944 | 1945 | ||
1945 | extern int netdev_max_backlog; | 1946 | extern int netdev_max_backlog; |
1946 | extern int weight_p; | 1947 | extern int weight_p; |