net: mana: Add RX fencing
authorDexuan Cui <decui@microsoft.com>
Thu, 16 Dec 2021 00:17:48 +0000 (16:17 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Dec 2021 04:27:32 +0000 (20:27 -0800)
commit6cc74443a7732d7e93bee3d0c3704a22cc7274d9
tree3b75c067303f6052576100afa02e4d8ad953172f
parent431b9b4d9789df5486be6d8c4d14d50c27033a97
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).

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://lore.kernel.org/r/20211216001748.8751-1-decui@microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microsoft/mana/mana.h
drivers/net/ethernet/microsoft/mana/mana_en.c