summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorSouradeep Chakrabarti <schakrabarti@linux.microsoft.com>2023-08-09 13:22:05 +0300
committerJakub Kicinski <kuba@kernel.org>2023-08-10 20:27:58 +0300
commita7dfeda6fdeccab4c7c3dce9a72c4262b9530c80 (patch)
treef693e94900a31d638a191fe4e2955cb0da240d53 /Kconfig
parent048c796beb6eb4fa3a5a647ee1c81f5c6f0f6a2a (diff)
downloadlinux-a7dfeda6fdeccab4c7c3dce9a72c4262b9530c80.tar.xz
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 'Kconfig')
0 files changed, 0 insertions, 0 deletions