]> 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)
commit8a033da206b2497924002611a8d531ec9f6f6aa1
tree9ab82f1d27e317f8c04be8c3f93059edcbb13f63
parent7bc4eabf079cfdccc4a618e2395794c80e67111b
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]