net/mlx5e: TC, Remove mirror and ct limitation
authorPaul Blakey <paulb@nvidia.com>
Wed, 25 Jan 2023 10:01:47 +0000 (12:01 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 6 Apr 2023 01:57:33 +0000 (18:57 -0700)
commitdc614025e22810eab057fe683cd0042abde3930c
tree7946cd026189b8111367f7308cf97518a95a1e42
parent5d7cb06eb91a3a45de6b7248dd30a93d7c820022
net/mlx5e: TC, Remove mirror and ct limitation

Mirror 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 mirror action before the ct nat action, as we had to
mirror 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.c