]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add support to create SQ and CQ for ASO
authorJianbo Liu <jianbol@nvidia.com>
Sat, 30 Apr 2022 14:31:28 +0000 (14:31 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 2 Jul 2022 18:58:26 +0000 (11:58 -0700)
commiteb9a32ca0befe77305a72708ca6bad01fbd319b6
tree9ab82f1d27e317f8c04be8c3f93059edcbb13f63
parentaec159b2dc3468bbc516b338a291c8c8c4cf064e
net/mlx5: Add support to create SQ and CQ for ASO

Add a separate API to create SQ and CQ for advanced steering
operations (ASO).

Since the mlx5_en API to create these resources is strongly coupled
with netdev channels and datapath elements, this API provides an
alternative for creating send queues that are used for ASO.

Currently the API allows creating channels with 2 wqbbs only - meaning
the support will be for a single ACCESS_ASO wqe with data at a time.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Ariel Levkovich <lariel@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/lib/aso.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/lib/aso.h [new file with mode: 0644]