Re: [PATCH v2 4/5] drivers: net: xgene: fix statistics counters race condition

2016-05-13 Thread Eric Dumazet
On Fri, 2016-05-13 at 16:53 -0700, Iyappan Subramanian wrote: > This patch fixes the race condition on updating the statistics > counters by moving the counters to the ring structure. > ... > @@ -1127,12 +1127,31 @@ static struct rtnl_link_stats64 > *xgene_enet_get_stats64( > { > struct

[PATCH v2 4/5] drivers: net: xgene: fix statistics counters race condition

2016-05-13 Thread Iyappan Subramanian
This patch fixes the race condition on updating the statistics counters by moving the counters to the ring structure. Signed-off-by: Iyappan Subramanian Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 19 ++- drivers/net/ethernet/apm/xgene/xgene_enet_hw.h |