]> git.baikalelectronics.ru Git - 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)
commit15a367567ce382769f68f8ff6b0866377bc48ffc
tree8694ce445c626e020d81a460916a71169f383c6f
parent11ea362f548c7c419116ff89e18b7d4d433510f1
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: a15c49f84e65 ("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