diff options
author | Florian Fainelli | 2017-08-04 06:33:27 +0200 |
---|---|---|
committer | David S. Miller | 2017-08-07 06:26:47 +0200 |
commit | 5f6b4e14cada6ddc662b80cbd670d9cd2922aea1 (patch) | |
tree | 8694ce445c626e020d81a460916a71169f383c6f /net/dsa/dsa_priv.h | |
parent | Merge branch 'tcp-cwnd-undo-refactor' (diff) | |
download | kernel-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.h | 2 |
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; |