diff options
author | Bert Kenward <bkenward@solarflare.com> | 2018-04-04 11:40:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-04 12:07:22 -0400 |
commit | 458bd99e49742c225f75501591573959c7ef50a2 (patch) | |
tree | cc288750f5c4f1a66b889ab8369b39567f375f48 | |
parent | 3d23401283e80ceb03f765842787e0e79ff598b7 (diff) |
sfc: remove ctpio_dmabuf_start from stats
The ctpio_dmabuf_start entry is not actually a stat and shouldn't
be exposed to ethtool.
Fixes: 2c0b6ee837db ("sfc: expose CTPIO stats on NICs that support them")
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/sfc/ef10.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/sfc/nic.h | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c index c4c45c94da77..50daad0a1482 100644 --- a/drivers/net/ethernet/sfc/ef10.c +++ b/drivers/net/ethernet/sfc/ef10.c | |||
@@ -1666,7 +1666,6 @@ static const struct efx_hw_stat_desc efx_ef10_stat_desc[EF10_STAT_COUNT] = { | |||
1666 | EF10_DMA_STAT(fec_corrected_symbols_lane1, FEC_CORRECTED_SYMBOLS_LANE1), | 1666 | EF10_DMA_STAT(fec_corrected_symbols_lane1, FEC_CORRECTED_SYMBOLS_LANE1), |
1667 | EF10_DMA_STAT(fec_corrected_symbols_lane2, FEC_CORRECTED_SYMBOLS_LANE2), | 1667 | EF10_DMA_STAT(fec_corrected_symbols_lane2, FEC_CORRECTED_SYMBOLS_LANE2), |
1668 | EF10_DMA_STAT(fec_corrected_symbols_lane3, FEC_CORRECTED_SYMBOLS_LANE3), | 1668 | EF10_DMA_STAT(fec_corrected_symbols_lane3, FEC_CORRECTED_SYMBOLS_LANE3), |
1669 | EF10_DMA_STAT(ctpio_dmabuf_start, CTPIO_DMABUF_START), | ||
1670 | EF10_DMA_STAT(ctpio_vi_busy_fallback, CTPIO_VI_BUSY_FALLBACK), | 1669 | EF10_DMA_STAT(ctpio_vi_busy_fallback, CTPIO_VI_BUSY_FALLBACK), |
1671 | EF10_DMA_STAT(ctpio_long_write_success, CTPIO_LONG_WRITE_SUCCESS), | 1670 | EF10_DMA_STAT(ctpio_long_write_success, CTPIO_LONG_WRITE_SUCCESS), |
1672 | EF10_DMA_STAT(ctpio_missing_dbell_fail, CTPIO_MISSING_DBELL_FAIL), | 1671 | EF10_DMA_STAT(ctpio_missing_dbell_fail, CTPIO_MISSING_DBELL_FAIL), |
@@ -1777,7 +1776,6 @@ static const struct efx_hw_stat_desc efx_ef10_stat_desc[EF10_STAT_COUNT] = { | |||
1777 | * These bits are in the second u64 of the raw mask. | 1776 | * These bits are in the second u64 of the raw mask. |
1778 | */ | 1777 | */ |
1779 | #define EF10_CTPIO_STAT_MASK ( \ | 1778 | #define EF10_CTPIO_STAT_MASK ( \ |
1780 | (1ULL << (EF10_STAT_ctpio_dmabuf_start - 64)) | \ | ||
1781 | (1ULL << (EF10_STAT_ctpio_vi_busy_fallback - 64)) | \ | 1779 | (1ULL << (EF10_STAT_ctpio_vi_busy_fallback - 64)) | \ |
1782 | (1ULL << (EF10_STAT_ctpio_long_write_success - 64)) | \ | 1780 | (1ULL << (EF10_STAT_ctpio_long_write_success - 64)) | \ |
1783 | (1ULL << (EF10_STAT_ctpio_missing_dbell_fail - 64)) | \ | 1781 | (1ULL << (EF10_STAT_ctpio_missing_dbell_fail - 64)) | \ |
diff --git a/drivers/net/ethernet/sfc/nic.h b/drivers/net/ethernet/sfc/nic.h index 5640034bda10..5cca0556b47f 100644 --- a/drivers/net/ethernet/sfc/nic.h +++ b/drivers/net/ethernet/sfc/nic.h | |||
@@ -332,7 +332,6 @@ enum { | |||
332 | EF10_STAT_fec_corrected_symbols_lane1, | 332 | EF10_STAT_fec_corrected_symbols_lane1, |
333 | EF10_STAT_fec_corrected_symbols_lane2, | 333 | EF10_STAT_fec_corrected_symbols_lane2, |
334 | EF10_STAT_fec_corrected_symbols_lane3, | 334 | EF10_STAT_fec_corrected_symbols_lane3, |
335 | EF10_STAT_ctpio_dmabuf_start, | ||
336 | EF10_STAT_ctpio_vi_busy_fallback, | 335 | EF10_STAT_ctpio_vi_busy_fallback, |
337 | EF10_STAT_ctpio_long_write_success, | 336 | EF10_STAT_ctpio_long_write_success, |
338 | EF10_STAT_ctpio_missing_dbell_fail, | 337 | EF10_STAT_ctpio_missing_dbell_fail, |