net: export netdev_stats_to_stats64
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 5 Mar 2012 04:50:09 +0000 (04:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2012 20:38:32 +0000 (15:38 -0500)
commit77a1abf54f4b003ad6e59c535045b2ad89fedfeb
treea76af8ea1df05266c70202e204dd639c38586334
parentffcb97388b1d41b1db063eb041cb9af408662127
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>
include/linux/netdevice.h
net/core/dev.c