]> git.droids-corp.org - dpdk.git/commit
common/mlx5: fix queue size in DevX queue pair creation
authorRaja Zidane <rzidane@nvidia.com>
Mon, 8 Nov 2021 13:09:21 +0000 (13:09 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 18:46:28 +0000 (19:46 +0100)
commitbba8281d2e542a22793028dac60395f47ddc51da
treecad48330c5ff3d9e0deabcecf86000449177f044
parentba707cdb6da20f7d8542e910342ed113962d8cf6
common/mlx5: fix queue size in DevX queue pair creation

The number of WQEBBs was provided to QP create, and QP size was calculated
by multiplying the number of WQEBBs by 64, which is the send WQE size.
When creating RQ in the QP (i.e., vdpa driver), the queue size was bigger
because the receive WQE size is 16.
Provide queue size to QP create instead of the number of WQEBBs.

Fixes: f9213ab12cf9 ("common/mlx5: share DevX queue pair operations")
Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_common_devx.c
drivers/common/mlx5/mlx5_common_devx.h
drivers/compress/mlx5/mlx5_compress.c
drivers/crypto/mlx5/mlx5_crypto.c
drivers/regex/mlx5/mlx5_regex_control.c
drivers/vdpa/mlx5/mlx5_vdpa_event.c