]> git.droids-corp.org - dpdk.git/commit
net/mlx5: forbid multiple ASO actions in a single rule
authorRongwei Liu <rongweil@nvidia.com>
Wed, 9 Mar 2022 12:08:29 +0000 (14:08 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 9 Mar 2022 12:32:04 +0000 (13:32 +0100)
commit4a9e5c999cd5ed8d17bcff4288d32e2c3ff82ac5
tree28835b80d7ff56eb95c4fb986b7b144c7d14760e
parent9a726360dd3010a4c664e37682826b68a0a7f7fe
net/mlx5: forbid multiple ASO actions in a single rule

For now, only one ASO action is supported in a single flow rule.
Flow rule with more than one ASO action should be rejected in the
validation stage.

Flow rule 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@dpdk.org
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Acked-by: Xiaoyu Min <jackmin@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c