[PATCH] net/mlx5: fix GENEVE resource overwritten

Raslan Darawsheh rasland at nvidia.com
Sun Dec 18 13:05:50 CET 2022


Hi,

> -----Original Message-----
> From: Suanming Mou <suanmingm at nvidia.com>
> Sent: Wednesday, November 23, 2022 1:57 PM
> To: Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>
> Subject: [PATCH] net/mlx5: fix GENEVE resource overwritten
> 
> Currently, one rte_flow may be split to multiple sub mlx5_flows.
> While GENEVE option resource was allocated in the first mlx5_flow,
> the flag will be overwritten by next sub mlx5_flow. This caused
> GENEVE option resource leakage.
> 
> This commit adds the check of GENEVE option resource to avoid the
> GENEVE option flag be overwritten.
> 
> Fixes: cd4ab742064a ("net/mlx5: split flow item matcher and value
> translation")
> 
> Signed-off-by: Suanming Mou <suanmingm 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 dev mailing list