aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga
diff options
context:
space:
mode:
authorSouradeep Chakrabarti2023-08-09 03:22:05 -0700
committerJakub Kicinski2023-08-10 10:27:58 -0700
commita7dfeda6fdeccab4c7c3dce9a72c4262b9530c80 (patch)
treef693e94900a31d638a191fe4e2955cb0da240d53 /drivers/fpga
parent048c796beb6eb4fa3a5a647ee1c81f5c6f0f6a2a (diff)
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: ca9c54d2d6a5 ("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>
Diffstat (limited to 'drivers/fpga')
0 files changed, 0 insertions, 0 deletions