net: dsa: Add support for 64-bit statistics
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 1 Aug 2017 22:00:36 +0000 (15:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2017 23:49:09 +0000 (16:49 -0700)
commitf613ed665bb3ec49edc4907bd8799e3a2de47df5
treee73ee81053bc0ffcb2880ff901d1bf38febca9e1
parentb2f9d432deebab5096aad5942c2f2b1ec2865f5a
net: dsa: Add support for 64-bit statistics

DSA slave network devices maintain a pair of bytes and packets counters
for each directions, but these are not 64-bit capable. Re-use
pcpu_sw_netstats which contains exactly what we need for that purpose
and update the code path to report 64-bit capable statistics.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c
net/dsa/dsa_priv.h
net/dsa/slave.c