aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amazon/ena/ena_netdev.h
diff options
context:
space:
mode:
authorSameeh Jubran <sameehj@amazon.com>2020-05-03 09:52:17 +0000
committerDavid S. Miller <davem@davemloft.net>2020-05-03 15:59:30 -0700
commit5c665f8c596ded2d8b876bac024409856117f40e (patch)
tree5de52ac0f77611af854b0df3ace322de619259d1 /drivers/net/ethernet/amazon/ena/ena_netdev.h
parentnet: ena: add unmask interrupts statistics to ethtool (diff)
downloadlinux-dev-5c665f8c596ded2d8b876bac024409856117f40e.tar.xz
linux-dev-5c665f8c596ded2d8b876bac024409856117f40e.zip
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.h1
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 {