[PATCH] net/mlx5: fix Rx queue private pointers array checking

Raslan Darawsheh rasland at nvidia.com
Mon Mar 7 21:56:07 CET 2022


Hi,

> -----Original Message-----
> From: Bing Zhao <bingz at nvidia.com>
> Sent: Thursday, March 3, 2022 5:27 PM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad
> <matan at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>;
> Xueming(Steven) Li <xuemingl at nvidia.com>; stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix Rx queue private pointers array checking
> 
> None Rx queue configured in a DPDK application should be supported.
> In this mode, the NIC can be used to generate packets without receiving any
> ingress traffic.
> 
> In the current implementation, once there is no Rx queue specified, the
> array to store the queues' pointers is NULL after allocation.
> Then the checking of the array allocation prevents the application from
> starting up.
> 
> By adding another condition checking of the Rx queue number, the
> application with none Rx queue can start up successfully.
> 
> Fixes: 4cda06c3c35e ("net/mlx5: split Rx queue into shareable and private")
> Cc: xuemingl at nvidia.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Bing Zhao <bingz at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list