drivers: net: xgene: fix statistics counters race condition
authorIyappan Subramanian <isubramanian@apm.com>
Fri, 13 May 2016 23:53:00 +0000 (16:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 May 2016 01:12:06 +0000 (21:12 -0400)
commit3bb502f83080ad28abdd7404f29aa2fc743b28b5
treec779ca4ce0daff518722ee0b0d96210d6c54855c
parent1b090a4839f6c74af2dc42872c9e9dc9d7c60a99
drivers: net: xgene: fix statistics counters race condition

This patch fixes the race condition on updating the statistics
counters by moving the counters to the ring structure.

Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Tested-by: Toan Le <toanle@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
drivers/net/ethernet/apm/xgene/xgene_enet_hw.h
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.h