RE: [PATCH net-next,1/1] hv_netvsc: use per_cpu stats to calculate TX/RX data

2015-05-13 Thread Simon Xiao
: [PATCH net-next,1/1] hv_netvsc: use per_cpu stats to calculate > TX/RX data > > From: six...@microsoft.com > Date: Tue, 12 May 2015 15:50:02 -0700 > > > From: Simon Xiao > > > > Current code does not lock anything when calculating the TX and RX stats. > >

Re: [PATCH net-next,1/1] hv_netvsc: use per_cpu stats to calculate TX/RX data

2015-05-13 Thread David Miller
From: six...@microsoft.com Date: Tue, 12 May 2015 15:50:02 -0700 > From: Simon Xiao > > 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 (

[PATCH net-next, 1/1] hv_netvsc: use per_cpu stats to calculate TX/RX data

2015-05-12 Thread sixiao
From: Simon Xiao 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