aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amazon/ena/ena_ethtool.c
diff options
context:
space:
mode:
authorNetanel Belgazal <netanel@amazon.com>2017-06-11 15:42:50 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-11 16:36:47 -0400
commit800c55cb76be6617232ef50a2be29830f3aa8e5c (patch)
treef2a28423c46dd35b18beef1aa5feacd88c00a854 /drivers/net/ethernet/amazon/ena/ena_ethtool.c
parentnet: ena: disable admin msix while working in polling mode (diff)
downloadlinux-dev-800c55cb76be6617232ef50a2be29830f3aa8e5c.tar.xz
linux-dev-800c55cb76be6617232ef50a2be29830f3aa8e5c.zip
net: ena: bug fix in lost tx packets detection mechanism
check_for_missing_tx_completions() is called from a timer task and looking for lost tx packets. The old implementation accumulate all the lost tx packets and did not check if those packets were retrieved on a later stage. This cause to a situation where the driver reset the device for no reason. Fixes: 1738cd3ed342 ("Add a driver for Amazon Elastic Network Adapters (ENA)") Signed-off-by: Netanel Belgazal <netanel@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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_ethtool.c b/drivers/net/ethernet/amazon/ena/ena_ethtool.c
index 533b2fbdeef1..3ee55e2fd694 100644
--- a/drivers/net/ethernet/amazon/ena/ena_ethtool.c
+++ b/drivers/net/ethernet/amazon/ena/ena_ethtool.c
@@ -80,7 +80,6 @@ static const struct ena_stats ena_stats_tx_strings[] = {
ENA_STAT_TX_ENTRY(tx_poll),
ENA_STAT_TX_ENTRY(doorbells),
ENA_STAT_TX_ENTRY(prepare_ctx_err),
- ENA_STAT_TX_ENTRY(missing_tx_comp),
ENA_STAT_TX_ENTRY(bad_req_id),
};