]> git.droids-corp.org - dpdk.git/commit
net/mlx5: handle MPRQ incompatibility with external buffers
authorAlexander Kozyrev <akozyrev@nvidia.com>
Fri, 11 Mar 2022 23:08:25 +0000 (01:08 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 21 Apr 2022 10:47:18 +0000 (12:47 +0200)
commit3a29cb3a730ba0def6b088c969da379a9ffea988
tree80f19119e7c433e0c29705ed0e2d3bf2bc879d8e
parent559a1f2eeaaddccc83e1668a8ee375c34699e48b
net/mlx5: handle MPRQ incompatibility with external buffers

Multi-Packet Rx queue uses PMD-managed buffers to store packets.
These buffers are externally attached to user mbufs.
This conflicts with the feature that allows using user-managed
externally attached buffers in an application.
Fall back to SPRQ in case external buffers mempool is configured.
The limitation is already documented in mlx5 guide.

Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_rx.h
drivers/net/mlx5/mlx5_rxq.c