]> 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)
commitdd00f68a16766354340e25d7cf2e1ef8a82f79ef
tree8694ce445c626e020d81a460916a71169f383c6f
parent85b2caa555c7670d344a4c340f9d03fd9d945d46
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: a25d0cd04d3a ("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