crypto/mlx5: fix queue size configuration
authorRaja Zidane <rzidane@nvidia.com>
Mon, 8 Nov 2021 13:09:20 +0000 (13:09 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 18:46:28 +0000 (19:46 +0100)
commitba707cdb6da20f7d8542e910342ed113962d8cf6
tree9abbefdf3e1061aa5b1f6b6b7b63cd74f58c9a92
parent56faca3bc109cd6c3e826e09a1a7b15171fcd81f
crypto/mlx5: fix queue size configuration

The DevX interface for QP creation expects the number of WQEBBs.
Wrongly, the number of descriptors was provided to the QP creation.
In addition, the QP size must be a power of 2 what was not guaranteed.
Provide the number of WQEBBs to the QP creation API.
Round up the SQ size to a power of 2.
Rename (sq/rq)_size to num_of_(send/receive)_wqes.

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>
Acked-by: Tal Shnaiderman <talshn@nvidia.com>
drivers/common/mlx5/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/compress/mlx5/mlx5_compress.c
drivers/crypto/mlx5/mlx5_crypto.c
drivers/crypto/mlx5/mlx5_crypto.h
drivers/regex/mlx5/mlx5_regex_control.c
drivers/vdpa/mlx5/mlx5_vdpa_event.c