Hi,

> -----Original Message-----
> From: Bing Zhao <[email protected]>
> Sent: Wednesday, February 21, 2024 5:23 AM
> To: Suanming Mou <[email protected]>; Raslan Darawsheh
> <[email protected]>; [email protected]
> Cc: Matan Azrad <[email protected]>; Slava Ovsiienko
> <[email protected]>; Ori Kam <[email protected]>; Dariusz Sosnowski
> <[email protected]>; [email protected]; Michael Baum
> <[email protected]>
> 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: [email protected]
> Cc: [email protected]
> 
> Signed-off-by: Bing Zhao <[email protected]>
> Acked-by: Suanming Mou <[email protected]>
> ---[Raslan Darawsheh] 

Patch applied to next-net-mlx

Kindest regards,
Raslan Darawsheh

Reply via email to