diff options
author | Sameeh Jubran <sameehj@amazon.com> | 2019-06-03 17:43:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-03 13:30:38 -0700 |
commit | d2eecc6ee8c92053797513e34931334dd0e85e18 (patch) | |
tree | 70e9b4936d858a30f96d8bb8e9d9ff7869e479af /drivers/net/ethernet/amazon/ena/ena_ethtool.c | |
parent | d91860989dd4bce582ed6c3647a0d41d6fd895b3 (diff) | |
download | linux-d2eecc6ee8c92053797513e34931334dd0e85e18.tar.gz linux-d2eecc6ee8c92053797513e34931334dd0e85e18.tar.bz2 linux-d2eecc6ee8c92053797513e34931334dd0e85e18.zip |
net: ena: add good checksum counter
Add a new statistics to ETHTOOL to specify if the device calculated
and validated the Rx csum.
Signed-off-by: Evgeny Shmeilin <evgeny@annapurnaLabs.com>
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amazon/ena/ena_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_ethtool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_ethtool.c b/drivers/net/ethernet/amazon/ena/ena_ethtool.c index 28fe4c6ef420..5687a2860f01 100644 --- a/drivers/net/ethernet/amazon/ena/ena_ethtool.c +++ b/drivers/net/ethernet/amazon/ena/ena_ethtool.c @@ -88,13 +88,14 @@ static const struct ena_stats ena_stats_tx_strings[] = { static const struct ena_stats ena_stats_rx_strings[] = { ENA_STAT_RX_ENTRY(cnt), ENA_STAT_RX_ENTRY(bytes), + ENA_STAT_RX_ENTRY(rx_copybreak_pkt), + ENA_STAT_RX_ENTRY(csum_good), ENA_STAT_RX_ENTRY(refil_partial), ENA_STAT_RX_ENTRY(bad_csum), ENA_STAT_RX_ENTRY(page_alloc_fail), ENA_STAT_RX_ENTRY(skb_alloc_fail), ENA_STAT_RX_ENTRY(dma_mapping_err), ENA_STAT_RX_ENTRY(bad_desc_num), - ENA_STAT_RX_ENTRY(rx_copybreak_pkt), ENA_STAT_RX_ENTRY(bad_req_id), ENA_STAT_RX_ENTRY(empty_rx_ring), ENA_STAT_RX_ENTRY(csum_unchecked), |