net: mana: Add RX fencing
Dexuan Cui
maintainerPATCH 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
@@ -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
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 fencingRX 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_RQrequest now (any old PF driver not supporting the request won't be used in production).
Quoted 6 lines
Signed-off-by Dexuan Cui <[email protected]>--- 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!
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_RQrequest 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