summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa_priv.h
diff options
context:
space:
mode:
authorFlorian Fainelli2017-08-04 06:33:27 +0200
committerDavid S. Miller2017-08-07 06:26:47 +0200
commit5f6b4e14cada6ddc662b80cbd670d9cd2922aea1 (patch)
tree8694ce445c626e020d81a460916a71169f383c6f /net/dsa/dsa_priv.h
parentMerge branch 'tcp-cwnd-undo-refactor' (diff)
downloadkernel-qcow2-linux-5f6b4e14cada6ddc662b80cbd670d9cd2922aea1.tar.gz
kernel-qcow2-linux-5f6b4e14cada6ddc662b80cbd670d9cd2922aea1.tar.xz
kernel-qcow2-linux-5f6b4e14cada6ddc662b80cbd670d9cd2922aea1.zip
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>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r--net/dsa/dsa_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index 7aa0656296c2..306cff229def 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -77,7 +77,7 @@ struct dsa_slave_priv {
struct sk_buff * (*xmit)(struct sk_buff *skb,
struct net_device *dev);
- struct pcpu_sw_netstats stats64;
+ struct pcpu_sw_netstats *stats64;
/* DSA port data, such as switch, port index, etc. */
struct dsa_port *dp;