diff options
author | Edward Cree <ecree@solarflare.com> | 2017-12-21 12:00:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-21 23:14:26 +0300 |
commit | f411b54d6b60f7db97190fa378de4c147fa055c5 (patch) | |
tree | a74cc70344d03fd30f04147293365f867ec2f874 /drivers/net/ethernet/sfc/nic.h | |
parent | c1be48214543c4e5267c43d2c00ac2d9bb671381 (diff) | |
download | linux-f411b54d6b60f7db97190fa378de4c147fa055c5.tar.xz |
sfc: expose FEC stats on Medford2
There's no explicit capability bit, so we just condition them on having
efx->num_mac_stats >= MC_CMD_MAC_NSTATS_V2.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/nic.h')
-rw-r--r-- | drivers/net/ethernet/sfc/nic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/nic.h b/drivers/net/ethernet/sfc/nic.h index 7b51b6371724..e39e7b399252 100644 --- a/drivers/net/ethernet/sfc/nic.h +++ b/drivers/net/ethernet/sfc/nic.h @@ -325,6 +325,13 @@ enum { EF10_STAT_tx_bad, EF10_STAT_tx_bad_bytes, EF10_STAT_tx_overflow, + EF10_STAT_V1_COUNT, + EF10_STAT_fec_uncorrected_errors = EF10_STAT_V1_COUNT, + EF10_STAT_fec_corrected_errors, + EF10_STAT_fec_corrected_symbols_lane0, + EF10_STAT_fec_corrected_symbols_lane1, + EF10_STAT_fec_corrected_symbols_lane2, + EF10_STAT_fec_corrected_symbols_lane3, EF10_STAT_COUNT }; |