]> git.droids-corp.org - dpdk.git/commit
net/mlx5: add external Rx queue mapping API
authorMichael Baum <michaelba@nvidia.com>
Thu, 24 Feb 2022 23:25:10 +0000 (01:25 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 25 Feb 2022 16:33:31 +0000 (17:33 +0100)
commit80f872ee0222e3936856e43a693168425b1c78ae
tree054be6467c8306735ae607e7937c2761270274b0
parentc06f77aecee404c4bfb43a6e6c5f1f4949ca4264
net/mlx5: add external Rx queue mapping API

External queue is a queue that has been created and managed outside the
PMD. The queues owner might use PMD to generate flow rules using these
external queues.

When the queue is created in hardware it is given an ID represented by
32 bits. In contrast, the index of the queues in PMD is represented by
16 bits. To enable the use of PMD to generate flow rules, the queue
owner must provide a mapping between the HW index and a 16-bit index
corresponding to the ethdev API.

This patch adds an API enabling to insert/cancel a mapping between HW
queue id and ethdev queue id.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_defs.h
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_rx.h
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/rte_pmd_mlx5.h
drivers/net/mlx5/version.map