aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGravatar Souradeep Chakrabarti <schakrabarti@linux.microsoft.com> 2023-08-09 03:22:05 -0700
committerGravatar Jakub Kicinski <kuba@kernel.org> 2023-08-10 10:27:58 -0700
commita7dfeda6fdeccab4c7c3dce9a72c4262b9530c80 (patch)
treef693e94900a31d638a191fe4e2955cb0da240d53 /net
parentipv6: adjust ndisc_is_useropt() to also return true for PIO (diff)
downloadlinux-a7dfeda6fdec.tar.gz
linux-a7dfeda6fdec.tar.bz2
linux-a7dfeda6fdec.zip
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 'net')
0 files changed, 0 insertions, 0 deletions