]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix Rx queue memory allocation return value
authorXueming Li <xuemingl@nvidia.com>
Thu, 4 Nov 2021 12:33:11 +0000 (20:33 +0800)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 4 Nov 2021 21:55:44 +0000 (22:55 +0100)
commitfdb67b84a52970ae06b54464a449b6f503f5a7ab
treed5b37249908f620cb939e774054634b63235ee53
parent056c87d07d07a748c569a27371c0c28ab827d9c3
net/mlx5: fix Rx queue memory allocation return value

If error happened during Rx queue mbuf allocation, boolean value
returned. From description, return value should be error number.

This patch returns negative error number.

Fixes: 0f20acbf5eda ("net/mlx5: implement vectorized MPRQ burst")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c