ipv6: fix the use of pcpu_tstats in ip6_vti.c
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 2 Jan 2014 06:24:36 +0000 (14:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2014 00:37:21 +0000 (19:37 -0500)
commit469bdcefdc47a69028029e792ff1e80680c867b9
treeb04442e9883838102cb2d72249c08857d095ff2a
parentabb6013cca147ad940b0e9fee260d2d9e93b7018
ipv6: fix the use of pcpu_tstats in ip6_vti.c

when read/write the 64bit data, the correct lock should be hold.
and we can use the generic vti6_get_stats to return stats, and
not define a new one in ip6_vti.c

Fixes: 87b6d218f3adb ("tunnel: implement 64 bits statistics")
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_vti.c