[PATCH v1] net/mlx5: disallow multiple ASO actions in a single flow

Raslan Darawsheh rasland at nvidia.com
Thu Mar 10 10:21:14 CET 2022


Hi,

> -----Original Message-----
> From: Rongwei Liu <rongweil at nvidia.com>
> Sent: Wednesday, March 9, 2022 2:08 PM
> To: Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Ori Kam <orika at nvidia.com>; NBU-Contact-
> Thomas Monjalon (EXTERNAL) <thomas at monjalon.net>; Michael Baum
> <michaelba at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>;
> stable at dpdk.org; Jack Min <jackmin at nvidia.com>
> Subject: [PATCH v1] net/mlx5: disallow multiple ASO actions in a single flow
> 
> For now, only one ASO action is supported in a single flow.
> Flow with more than one ASO action should be rejected in the
> validation stage.
> 
> Flow with action non-shared AGE and COUNT together should be
> treated as non-ASO because AGE will fall back to use HW counter,
> not ASO hit object.
> 
> Group 0 will use HW counter for AGE action even if no COUNT action.
> 
> This commit will reject patterns (no matter which group if transfer)
> like:
> 1. group 1 pattern... / end actions age / meter / end
> 2. group 1 pattern... / end actions conntrack / meter / end
> 3. group 1 pattern... / end actions age / conntrack... / end
> 
> If AGE comes together with COUNT in the above patterns, it's allowed.
> 
> Fixes: daed4b6e ("net/mlx5: use aging by counter when counter exists")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Rongwei Liu <rongweil at nvidia.com>
> Acked-by: Xiaoyu Min <jackmin at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
> ---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list