]> git.ipfire.org Git - people/arne_f/kernel.git/commit
net: dsa: User per-cpu 64-bit statistics
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 4 Aug 2017 04:33:27 +0000 (21:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 04:26:47 +0000 (21:26 -0700)
commit5f6b4e14cada6ddc662b80cbd670d9cd2922aea1
tree8694ce445c626e020d81a460916a71169f383c6f
parenteaf6dc03388d5ea7b4151cf55cfc3370c2f9884c
net: dsa: User per-cpu 64-bit statistics

During testing with a background iperf pushing 1Gbit/sec worth of
traffic and having both ifconfig and ethtool collect statistics, we
could see quite frequent deadlocks. Convert the often accessed DSA slave
network devices statistics to per-cpu 64-bit statistics to remove these
deadlocks and provide fast efficient statistics updates.

Fixes: f613ed665bb3 ("net: dsa: Add support for 64-bit 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