]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: export netdev_stats_to_stats64
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 5 Mar 2012 04:50:09 +0000 (04:50 +0000)
committerJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 03:41:00 +0000 (11:41 +0800)
commit44d48ce5e7309e75fb07ba340819d0a5e51dc02f
treee87fe81125b457dfd6fd79667cf4e21611558a62
parentd5074dfb45ff5188aafaf48d09fa4487d3e642a7
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>
(cherry picked from commit 77a1abf54f4b003ad6e59c535045b2ad89fedfeb)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
include/linux/netdevice.h
net/core/dev.c