Skip to contentSkip to conversation

net: mana: Add RX fencing

PATCH Applied Dexuan Cui 3 participants 3 messages Dec 16, 2021 – Dec 17, 2021

Subsystems (4)
lore
Share & tools
lore

Dexuan Cui

author maintainer
#0 lore raw

PATCH 1/1 net: mana: Add RX fencing

RX fencing allows the driver to know that any prior change to the RQs has finished, e.g. when the RQs are disabled/enabled or the hashkey/indirection table are changed, RX fencing is required.

Remove the previous workaround "ssleep(1)" and add the real support for RX fencing as the PF driver supports the MANA_FENCE_RQ request now (any old PF driver not supporting the request won't be used in production).

---
 drivers/net/ethernet/microsoft/mana/mana.h    |  2 +
 drivers/net/ethernet/microsoft/mana/mana_en.c | 69 +++++++++++++++++--
 2 files changed, 66 insertions(+), 5 deletions(-)
drivers/net/ethernet/microsoft/mana/mana.h +2 -0
index 0c5553887b75..9a12607fb511 100644
@@ -289,6 +289,8 @@ struct mana_rxq {
 
 	struct mana_cq rx_cq;
 
+	struct completion fence_event;
+
 	struct net_device *ndev;
 
 	/* Total number of receive buffers to be allocated */
drivers/net/ethernet/microsoft/mana/mana_en.c +64 -5

99 lines not on this page · raw message

Signature · 1 line
2.20.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines

-----Original Message-----
From: Dexuan Cui <[email protected]>
Sent: Wednesday, December 15, 2021 7:18 PM
To: [email protected]; [email protected]; [email protected]; Haiyang Zhang <[email protected]>; [email protected]
Cc: KY Srinivasan <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Shachar Raindel <[email protected]>; Paul Rosswurm <[email protected]>; [email protected]; vkuznets <[email protected]>; Dexuan Cui <[email protected]>
Subject: [PATCH net-next] net: mana: Add RX fencing

RX fencing allows the driver to know that any prior change to the RQs has finished, e.g. when the RQs are disabled/enabled or the hashkey/indirection table are changed, RX fencing is required.

Remove the previous workaround "ssleep(1)" and add the real support for RX fencing as the PF driver supports the MANA_FENCE_RQ request now (any old PF driver not supporting the request won't be used in production).

Quoted 6 lines
---
 drivers/net/ethernet/microsoft/mana/mana.h    |  2 +
 drivers/net/ethernet/microsoft/mana/mana_en.c | 69 +++++++++++++++++--
 2 files changed, 66 insertions(+), 5 deletions(-)

Thanks!

#2 lore raw
In reply to Dexuan Cui
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Wed, 15 Dec 2021 16:17:48 -0800 you wrote:

RX fencing allows the driver to know that any prior change to the RQs has finished, e.g. when the RQs are disabled/enabled or the hashkey/indirection table are changed, RX fencing is required.

Remove the previous workaround "ssleep(1)" and add the real support for RX fencing as the PF driver supports the MANA_FENCE_RQ request now (any old PF driver not supporting the request won't be used in production).

[...]

Here is the summary with links:
- [net-next] net: mana: Add RX fencing

    https://git.kernel.org/netdev/net-next/c/6cc74443a773

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html