crypto/mlx5: fix maximum number of queue pairs
authorRaja Zidane <rzidane@nvidia.com>
Sun, 21 Nov 2021 12:59:43 +0000 (12:59 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 23 Nov 2021 18:41:24 +0000 (19:41 +0100)
commit150837248fc557895b53f0f44c7281a555bc6045
tree91fdff6ab68c354d87976659edd0a95e47c7ccc2
parentb0a37e8cd2ac559202086d88c1761e0b6406b445
crypto/mlx5: fix maximum number of queue pairs

An indirect mkey is created for each descriptor in a QP, number of
descriptors per QP is configured by the user on QP setup callback.
In mlx cryptodev autotest, the max number of QPs (provided by the driver)
is created, and due to mkey resource limits, QPs creation fail which leads
to the test failing.
Since there is no capability of max number of descriptors provided to
the user, we can't give an exact number of max QPs available.
Reduce the max number of QPs to 128, which supports standard descriptors
numbers, including the 4K number provided in the test.

Fixes: 6152534e211e ("crypto/mlx5: support queue pairs operations")
Cc: stable@dpdk.org
Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/crypto/mlx5/mlx5_crypto.c