OSDN Git Service

net/mlx5e: TC, Remove tuple rewrite and ct limitation
authorPaul Blakey <paulb@nvidia.com>
Wed, 25 Jan 2023 09:56:28 +0000 (11:56 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 6 Apr 2023 01:57:32 +0000 (18:57 -0700)
commit5d7cb06eb91a3a45de6b7248dd30a93d7c820022
tree54deb0ca37e97a2da47ec48a699c43fa4f51b2d8
parentd0cc0853640d81397572d8152d068cd673a3e739
net/mlx5e: TC, Remove tuple rewrite and ct limitation

Tuple rewrite and ct action was not supported when only chain was
restored on misses. 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 for tuple rewrite
actions before ct action since the ct action result was
dependent on the tuple info.

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