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: 1738cd3e ("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>
Showing
- drivers/net/ethernet/amazon/ena/ena_ethtool.c 0 additions, 1 deletiondrivers/net/ethernet/amazon/ena/ena_ethtool.c
- drivers/net/ethernet/amazon/ena/ena_netdev.c 38 additions, 28 deletionsdrivers/net/ethernet/amazon/ena/ena_netdev.c
- drivers/net/ethernet/amazon/ena/ena_netdev.h 12 additions, 2 deletionsdrivers/net/ethernet/amazon/ena/ena_netdev.h
Loading
Please register or sign in to comment