gtp: Initialize 64-bit per-cpu stats correctly
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 1 Aug 2017 19:11:10 +0000 (12:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2017 03:06:07 +0000 (20:06 -0700)
commit790cb2ebb3f9c5d26a320117d5d13cafe479484d
tree2c07e8e38929e137f0c732a0342f4905285ec3db
parent7ceb781a1aa0356086e2bdc76bcd953fcb7ac377
gtp: Initialize 64-bit per-cpu stats correctly

On 32-bit hosts and with CONFIG_DEBUG_LOCK_ALLOC we should be seeing a
lockdep splat indicating this seqcount is not correctly initialized, fix
that by using netdev_alloc_pcpu_stats() instead of an open coded
allocation.

Fixes: 459aa660eb1d ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gtp.c