summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/Makefile
diff options
context:
space:
mode:
authorsixiao@microsoft.com2015-05-14 10:00:25 +0200
committerDavid S. Miller2015-05-15 04:49:30 +0200
commit7eafd9b4005643cfc24f1daf78f4dd56ff71f559 (patch)
treee6ce83d089c50b5e388652bc07f42f0ff8793fa9 /drivers/net/ethernet/stmicro/stmmac/Makefile
parenttest_bpf: fix sparse warnings (diff)
downloadkernel-qcow2-linux-7eafd9b4005643cfc24f1daf78f4dd56ff71f559.tar.gz
kernel-qcow2-linux-7eafd9b4005643cfc24f1daf78f4dd56ff71f559.tar.xz
kernel-qcow2-linux-7eafd9b4005643cfc24f1daf78f4dd56ff71f559.zip
hv_netvsc: use per_cpu stats to calculate TX/RX data
Current code does not lock anything when calculating the TX and RX stats. As a result, the RX and TX data reported by ifconfig are not accuracy in a system with high network throughput and multiple CPUs (in my test, RX/TX = 83% between 2 HyperV VM nodes which have 8 vCPUs and 40G Ethernet). This patch fixed the above issue by using per_cpu stats. netvsc_get_stats64() summarizes TX and RX data by iterating over all CPUs to get their respective stats. This v2 patch addressed David's comments on the cleanup path when netdev_alloc_pcpu_stats() failed. Signed-off-by: Simon Xiao <sixiao@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/Makefile')
0 files changed, 0 insertions, 0 deletions