Skip to contentSkip to conversation

crypto/mlx5: fix max number of QPs capability

PATCH Applied Raja Zidane 2 participants 2 messages Nov 21, 2021 – Nov 23, 2021 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/mlx5: fix max number of QPs capability

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")

---

 drivers/crypto/mlx5/mlx5_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/mlx5/mlx5_crypto.c +1 -1
index 90e0df7fb2..421c23748a 100644
@@ -20,7 +20,7 @@
 
 #define MLX5_CRYPTO_DRIVER_NAME crypto_mlx5
 #define MLX5_CRYPTO_LOG_NAME pmd.crypto.mlx5
-#define MLX5_CRYPTO_MAX_QPS 1024
+#define MLX5_CRYPTO_MAX_QPS 128
 #define MLX5_CRYPTO_MAX_SEGS 56
 
 #define MLX5_CRYPTO_FEATURE_FLAGS \
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 10 lines

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.

Quoted 6 lines
Fixes 6152534e211e ("crypto/mlx5: support queue pairs operations")

---

Applied to dpdk-next-crypto
Thanks.