Use unsigned int for 2 loop indexes that are being compared against an unsigned int struct field to avoid signed/unsigned mismatch warning.
Fixes: 718d166e5504 ("net/mlx5: create advanced RxQ table via DevX") Fixes: e1da60a8a6e9 ("common/mlx5: add DevX command to modify RQT") Cc: dek...@mellanox.com Cc: ma...@mellanox.com Cc: sta...@dpdk.org Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com> --- drivers/common/mlx5/mlx5_devx_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 9b7abab..9952733 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -1816,7 +1816,7 @@ struct mlx5_devx_obj * uint32_t out[MLX5_ST_SZ_DW(create_rqt_out)] = {0}; void *rqt_ctx; struct mlx5_devx_obj *rqt = NULL; - int i; + unsigned int i; in = mlx5_malloc(MLX5_MEM_ZERO, inlen, 0, SOCKET_ID_ANY); if (!in) { @@ -1869,7 +1869,7 @@ struct mlx5_devx_obj * uint32_t out[MLX5_ST_SZ_DW(modify_rqt_out)] = {0}; uint32_t *in = mlx5_malloc(MLX5_MEM_ZERO, inlen, 0, SOCKET_ID_ANY); void *rqt_ctx; - int i; + unsigned int i; int ret; if (!in) { -- 1.8.3.1