]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite34df467144ec4e576cd4bdaa74fdc1b8f07fb5a
tree3b75c067303f6052576100afa02e4d8ad953172f
parentcec79f6e6080ec6aebcf0762bb3a105f0b3b32f6
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