net/mlx5e: TC, Remove sample and ct limitation
authorPaul Blakey <paulb@nvidia.com>
Wed, 25 Jan 2023 10:03:58 +0000 (12:03 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 6 Apr 2023 01:57:33 +0000 (18:57 -0700)
commit35c8de16d84632dd73ac17f619f3cb824803c89e
treef3b0b6180ede44506fa9015fa92e84ac191cbd17
parentdc614025e22810eab057fe683cd0042abde3930c
net/mlx5e: TC, Remove sample and ct limitation

Sample action before a ct nat action was not supported when only
chain was restored on misses. As to work around that limitation,
ct action was reordered to be first (so if hw misses on ct
action, packet wasn't modified). This reordering wasn't possible
if there was a sample action before the ct nat action, as we had to
sample the packet before the nat operation.

Now that the misses continue from the relevant tc ct action
in software and ct action is no longer reordered, this case
is supported.

Remove this limitation.

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/sample.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h