[PATCH] net/mlx5: prevent querying aged flows on uninit port

Raslan Darawsheh rasland at nvidia.com
Tue Feb 27 17:17:14 CET 2024


Hi,

> -----Original Message-----
> From: Bing Zhao <bingz at nvidia.com>
> Sent: Wednesday, February 21, 2024 5:23 AM
> To: Suanming Mou <suanmingm at nvidia.com>; Raslan Darawsheh
> <rasland at nvidia.com>; dev at dpdk.org
> Cc: Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Ori Kam <orika at nvidia.com>; Dariusz Sosnowski
> <dsosnowski at nvidia.com>; stable at dpdk.org; Michael Baum
> <michaelba at nvidia.com>
> Subject: [PATCH] net/mlx5: prevent querying aged flows on uninit port
> 
> In HWS template API, the aging mechanism doesn't support shared host mode
> now. When the guest's counter is set to 0, the aging won't be initialized.
> 
> The current implementation didn't prevent the user from querying the aged
> flows on the uninitialized port. The access of invalid pointers would cause a
> crash.
> 
> With this commit, the flag of the per port aging initialization will be checked.
> This would help to get rid of the invalid accessing.
> 
> Fixes: 04a4de756e14 ("net/mlx5: support flow age action with HWS")
> Cc: michaelba at nvidia.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Bing Zhao <bingz at nvidia.com>
> Acked-by: Suanming Mou <suanmingm at nvidia.com>
> ---[Raslan Darawsheh] 

Patch applied to next-net-mlx

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list