OSDN Git Service

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)
commitcdd04f4d4d71cbf93d0d9abe63bc838f47c467fa
tree9ab82f1d27e317f8c04be8c3f93059edcbb13f63
parentb6f2846afc0c3dafd58452a74a51499734d9f451
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]