net/mlx5: fix shared age action validation
authorDekel Peled <dekelp@nvidia.com>
Tue, 24 Nov 2020 13:45:35 +0000 (15:45 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:04 +0000 (16:03 +0100)
commit4165bfd20d2c2f3670f88f901dcd5e8f7479d0ed
tree4282d5d4b759fb03f8055234b770ae05ac66486f
parent81c3b97735c26b575f8167f2b892edd3a7af451b
net/mlx5: fix shared age action validation

Previous patch added support of shared age action.
This feature is supported on group 1 and higher, and validation was
added accordingly.
On FDB table the group 0 is skipped to improve performance.
As a result the mentioned validation is not relevant for transfer rules.
This patch adds the required check to ensure proper validation.

Fixes: f9bc5274a6f9 ("net/mlx5: allow age modes combination")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c