drivers: net: xgene: Workaround for HW errata 10GE_10/ENET_15
authorQuan Nguyen <qnguyen@apm.com>
Wed, 10 May 2017 20:45:09 +0000 (13:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 May 2017 15:41:10 +0000 (11:41 -0400)
commit61c759cdf48a21e0a0794d30c509c49cbdbac752
tree732cec0f0ab5f5fae2b9ce4db3f43ea3b5d0b559
parenteaef62a42db15f2833c9e6af18067b02b6089336
drivers: net: xgene: Workaround for HW errata 10GE_10/ENET_15

This patch adds workaround for HW errata 10GE_10 and ENET_15:
"HW statistic counters value are duplicated".

- RFCS duplicates RALN counter
- RFLR duplicates RUND counter
- TFCS duplicates TFRG counter
- RALN should be intepreted as 0 in 10G mode

Signed-off-by: Quan Nguyen <qnguyen@apm.com>
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.h