common/mlx5: fix DevX queue size overflow
authorRaja Zidane <rzidane@nvidia.com>
Mon, 8 Nov 2021 13:09:18 +0000 (13:09 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 18:46:28 +0000 (19:46 +0100)
commit54feeab1c01486ca7b393271ba9e334788a243fd
treef223cf085b8ce99b6ded8df97775c82dc80f88ea
parentaeed570a211fe31c976f9f4de07039cb7c8a125e
common/mlx5: fix DevX queue size overflow

The HW QP/SQ/RQ/CQ queue sizes may be bigger than 64KB.
The width of the variable handled the queue size is 16 bits
which cannot contain the maximum queue size.
Replace the size type to be uint32_t.

Fixes: 9dab4d62b4dc ("common/mlx5: share DevX CQ creation")
Fixes: 38f537635c15 ("common/mlx5: share DevX SQ creation")
Fixes: f9213ab12cf9 ("common/mlx5: share DevX queue pair operations")
Cc: stable@dpdk.org
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