numam-dpdk/drivers/net/mlx5/linux
Michael Baum 34776af600 net/mlx5: fix MPRQ stride devargs adjustment
In Multi-Packet RQ creation, the user can choose the number of strides
and their size in bytes. The user updates it using specific devargs for
both of these parameters.
The above two parameters determine the size of the WQE which is actually
their product of multiplication.

If the user selects values that are not in the supported range, the PMD
changes them to default values. However, apart from the range
limitations for each parameter individually there is also a minimum
value on their multiplication. When the user selects values that their
multiplication are lower than minimum value, no adjustment is made and
the creation of the WQE fails.

This patch adds an adjustment in these cases as well. When the user
selects values whose multiplication is lower than the minimum, they are
replaced with the default values.

Fixes: ecb160456a ("net/mlx5: add device parameter for MPRQ stride size")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-12-05 12:22:09 +01:00
..
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
mlx5_ethdev_os.c net/mlx5: check delay drop settings in kernel driver 2021-11-05 17:04:53 +01:00
mlx5_flow_os.c eal: rename thread TLS API 2021-03-26 09:22:39 +01:00
mlx5_flow_os.h net/mlx5: optimize header modify action memory 2021-07-15 15:19:09 +02:00
mlx5_mp_os.c common/mlx5: fix mempool registration 2021-11-21 15:38:07 +01:00
mlx5_os.c net/mlx5: fix MPRQ stride devargs adjustment 2021-12-05 12:22:09 +01:00
mlx5_os.h net/mlx5: fix tunneling support query 2021-10-12 15:29:34 +02:00
mlx5_socket.c net/mlx5: do not close stdin on error 2021-11-01 08:51:48 +01:00
mlx5_verbs.c net/mlx5: improve stride parameter names 2021-12-05 12:22:09 +01:00
mlx5_verbs.h common/mlx5: add global MR cache create function 2021-10-21 15:57:24 +02:00
mlx5_vlan_os.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00