]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ena: Add a counter for driver's reset failures
authorDavid Arinzon <darinzon@amazon.com>
Sun, 12 May 2024 13:46:33 +0000 (13:46 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 13 May 2024 21:42:04 +0000 (14:42 -0700)
commit62a261f6c1dda0d0b26918cf31da8053c846a0a5
tree9e368be1fb82fcc2c121e423b4b65c75c5ca58ed
parent5fcc17dfe05e127a38d24b0e5bf93aaba01fdddc
net: ena: Add a counter for driver's reset failures

This patch adds a counter to the ena_adapter struct in
order to keep track of reset failures.
The counter is incremented every time either ena_restore_device()
or ena_destroy_device() fail.

Signed-off-by: Osama Abboud <osamaabb@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240512134637.25299-2-darinzon@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amazon/ena/ena_ethtool.c
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h