netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 V3 net] net: mana: Fix MANA VF unload when host is unresponsive
@ 2023-06-26  9:17 souradeep chakrabarti
  2023-06-26  9:18 ` [PATCH 1/2 " souradeep chakrabarti
  0 siblings, 1 reply; 17+ messages in thread
From: souradeep chakrabarti @ 2023-06-26  9:17 UTC (permalink / raw)
  To: kys, haiyangz, wei.liu, decui, davem, edumazet, kuba, pabeni,
	longli, sharmaajay, leon, cai.huoqing, ssengar, vkuznets, tglx,
	linux-hyperv, netdev, linux-kernel, linux-rdma
  Cc: stable, schakrabarti, Souradeep Chakrabarti

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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-06-27  8:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-26  9:17 [PATCH 0/2 V3 net] net: mana: Fix MANA VF unload when host is unresponsive souradeep chakrabarti
2023-06-26  9:18 ` [PATCH 1/2 " souradeep chakrabarti
2023-06-26  9:18   ` souradeep chakrabarti
2023-06-26 14:20     ` Praveen Kumar
2023-06-27  8:44       ` Souradeep Chakrabarti
2023-06-26 15:35     ` Michael Kelley (LINUX)
2023-06-26  9:20   ` [PATCH 2/2 " souradeep chakrabarti
2023-06-26 14:13     ` Praveen Kumar
2023-06-26 20:32       ` Haiyang Zhang
2023-06-27  8:42       ` Souradeep Chakrabarti
2023-06-26 15:53     ` Haiyang Zhang
2023-06-26 16:02       ` Haiyang Zhang
2023-06-27  8:45       ` Souradeep Chakrabarti
2023-06-26 13:05   ` [PATCH 1/2 " Simon Horman
2023-06-26 20:06     ` Dexuan Cui
2023-06-26 20:47       ` Stephen Hemminger
2023-06-27  8:35         ` Souradeep Chakrabarti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).