]> git.droids-corp.org - dpdk.git/commit
common/mlx5: support receive memory pool
authorXueming Li <xuemingl@nvidia.com>
Thu, 4 Nov 2021 12:33:10 +0000 (20:33 +0800)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 4 Nov 2021 21:55:43 +0000 (22:55 +0100)
commit056c87d07d07a748c569a27371c0c28ab827d9c3
tree5517340367c52b4cfbe0d1ba1d521145c3e9d999
parentee1607116470b8d4d91301af1623a5717ad0df53
common/mlx5: support receive memory pool

The hardware Receive Memory Pool (RMP) object holds the destination for
incoming packets/messages that are routed to the RMP through RQs. RMP
enables sharing of memory across multiple Receive Queues. Multiple
Receive Queues can be attached to the same RMP and consume memory
from that shared poll. When using RMPs, completions are reported to the
CQ pointed to by the RQ, user index that set in RQ creation time is
carried to completion entry.

This patch enables RMP based RQ, RMP is created when mlx5_devx_rq.rmp is
set.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/mlx5_common_devx.c
drivers/common/mlx5/mlx5_common_devx.h
drivers/net/mlx5/mlx5_devx.c