]> www.infradead.org Git - users/willy/linux.git/commit
net/mlx5: HWS, do not initialize native API queues
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Thu, 19 Dec 2024 17:58:37 +0000 (19:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:34:45 +0000 (10:34 -0800)
commit429776b6019bbdcf04dcd49706fe7de6a280078b
tree8ae27e59c63e8ef279cfa791a0f5145b0a6bb622
parent9a0155a709fadaab468a24abca7996c5fdf0507b
net/mlx5: HWS, do not initialize native API queues

HWS has two types of APIs:
 - Native: fastest and slimmest, async API.
   The user of this API is required to manage rule handles memory,
   and to poll for completion for each rule.
 - BWC: backward compatible API, similar semantics to SWS API.
   This layer is implemented above native API and it does all
   the work for the user, so that it is easy to switch between
   SWS and HWS.

Right now the existing users of HWS require only BWC API.
Therefore, in order to not waste resources, this patch disables
send queues allocation for native API.

If in the future support for faster HWS rule insertion will be required
(such as for Connection Tracking), native queues can be enabled.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Itamar Gozlan <igozlan@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241219175841.1094544-8-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/context.c
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/context.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.c