diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-03-05 08:50:09 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-06 00:38:32 +0400 |
commit | 77a1abf54f4b003ad6e59c535045b2ad89fedfeb (patch) | |
tree | a76af8ea1df05266c70202e204dd639c38586334 /include/linux/netdevice.h | |
parent | ffcb97388b1d41b1db063eb041cb9af408662127 (diff) | |
download | linux-77a1abf54f4b003ad6e59c535045b2ad89fedfeb.tar.xz |
net: export netdev_stats_to_stats64
Some drivers use internal netdev stats member to store part of their
stats, yet advertize ndo_get_stats64() to implement some 64bit fields.
Allow them to use netdev_stats_to_stats64() helper to make the copy of
netdev stats before they compute their 64bit counters.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index f1b7d037c2c5..4d279c5287f8 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2557,6 +2557,8 @@ extern void dev_load(struct net *net, const char *name); extern void dev_mcast_init(void); extern struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev, struct rtnl_link_stats64 *storage); +extern void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64, + const struct net_device_stats *netdev_stats); extern int netdev_max_backlog; extern int netdev_tstamp_prequeue; |