diff options
author | Sameeh Jubran <sameehj@amazon.com> | 2020-05-03 09:52:17 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-03 15:59:30 -0700 |
commit | 5c665f8c596ded2d8b876bac024409856117f40e (patch) | |
tree | 5de52ac0f77611af854b0df3ace322de619259d1 /drivers/net/ethernet/amazon/ena/ena_netdev.h | |
parent | d4a8b3bb0bb7e63d391b8e442681b72ab1429471 (diff) | |
download | linux-5c665f8c596ded2d8b876bac024409856117f40e.tar.bz2 |
net: ena: add support for reporting of packet drops
1. Add support for getting tx drops from the device and saving them
in the driver.
2. Report tx via netdev stats.
Signed-off-by: Igor Chauskin <igorch@amazon.com>
Signed-off-by: Guy Tzalik <gtzalik@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.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_netdev.h')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_netdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.h b/drivers/net/ethernet/amazon/ena/ena_netdev.h index ebeb911c0efb..bd278c4721c6 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.h +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.h @@ -334,6 +334,7 @@ struct ena_stats_dev { u64 interface_down; u64 admin_q_pause; u64 rx_drops; + u64 tx_drops; }; enum ena_flags_t { |