]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8343603466b7c1a349225f4fde7fc0edf8bf2a18
treec779ca4ce0daff518722ee0b0d96210d6c54855c
parentdac01f7ddcdd67fd97c196720a679e1339567aec
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