net/mlx5: fix MPRQ WQE size assertion
authorAlexander Kozyrev <akozyrev@nvidia.com>
Thu, 13 Jan 2022 14:36:09 +0000 (16:36 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 18 Jan 2022 08:30:25 +0000 (09:30 +0100)
commit728b6447e766fc0aaf59e888635d62d54e77a528
tree103bd27bd628eb52c7f18e7793ec5e49ad6fc362
parent9701034faab0f84ba42e1f5343afda5464b11ca3
net/mlx5: fix MPRQ WQE size assertion

Preparation of the stride size and the number of strides for
Multi-Packet RQ was updated recently to accommodate the hardware
limitation about minimum WQE size. The wrong assertion was
introduced to ensure this limitation is met. Assert that the
configured WQE size is not less than the minimum supported size.

Fixes: 34776af600df ("net/mlx5: fix MPRQ stride devargs adjustment")
Cc: stable@dpdk.org
Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c