1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microsoft/mana
Souradeep Chakrabarti a7dfeda6fd net: mana: Fix MANA VF unload when hardware is unresponsive
When unloading the MANA driver, mana_dealloc_queues() waits for the MANA
hardware to complete any inflight packets and set the pending send count
to zero. But if the hardware has failed, mana_dealloc_queues()
could wait forever.

Fix this by adding a timeout to the wait. Set the timeout to 120 seconds,
which is a somewhat arbitrary value that is more than long enough for
functional hardware to complete any sends.

Cc: stable@vger.kernel.org
Fixes: ca9c54d2d6 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Signed-off-by: Souradeep Chakrabarti <schakrabarti@linux.microsoft.com>
Link: https://lore.kernel.org/r/1691576525-24271-1-git-send-email-schakrabarti@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-10 10:27:58 -07:00
..
gdma_main.c net: mana: Remove redundant pci_clear_master 2023-03-24 09:09:27 +00:00
hw_channel.c net: mana: use vmalloc_array and vcalloc 2023-06-27 09:30:23 -07:00
Makefile net: mana: Add XDP support 2021-11-22 13:20:19 +00:00
mana_bpf.c net: mana: Add support for jumbo frame 2023-04-14 08:56:19 +01:00
mana_en.c net: mana: Fix MANA VF unload when hardware is unresponsive 2023-08-10 10:27:58 -07:00
mana_ethtool.c net: mana: Fix perf regression: remove rx_cqes, tx_cqes counters 2023-05-30 12:05:22 +02:00
shm_channel.c net: mana: Move header files to a common location 2022-11-10 07:57:26 +02:00