[PATCH 0/2 V3 net] net: mana: Fix MANA VF unload when host is unresponsive

souradeep chakrabarti posted 2 patches 2 years, 7 months ago
Only 1 patches received!
There is a newer version of this series
.../net/ethernet/microsoft/mana/gdma_main.c   |  4 +++-
.../net/ethernet/microsoft/mana/hw_channel.c  | 12 +++++++++++-
drivers/net/ethernet/microsoft/mana/mana_en.c | 19 +++++++++++++++++--
include/net/mana/mana.h                       |  2 ++
4 files changed, 33 insertions(+), 4 deletions(-)
[PATCH 0/2 V3 net] net: mana: Fix MANA VF unload when host is unresponsive
Posted by souradeep chakrabarti 2 years, 7 months ago
From: Souradeep Chakrabarti <schakrabarti@linux.microsoft.com>

VF unload gets stuck in MANA driver, when the host is not responding.
The function mana_dealloc_queues() tries to clear the inflight packets,
and gets stuck in while loop. Another problem in this scenario is the
timeout from hwc send request.
These patch add fix for the same.
In mana driver we are adding a timeout in the while loop, to fix it.
Also we are adding a new attribute in mana_context, which gets set when
mana_hwc_send_request() hits a timeout because of host unresponsiveness.

Souradeep Chakrabarti (2):
  net: mana: Fix MANA VF unload when host is unresponsive
  net: mana: Fix MANA VF unload when host is unresponsive

 .../net/ethernet/microsoft/mana/gdma_main.c   |  4 +++-
 .../net/ethernet/microsoft/mana/hw_channel.c  | 12 +++++++++++-
 drivers/net/ethernet/microsoft/mana/mana_en.c | 19 +++++++++++++++++--
 include/net/mana/mana.h                       |  2 ++
 4 files changed, 33 insertions(+), 4 deletions(-)

-- 
2.34.1