net/mlx5: E-switch, Don't destroy indirect table in split rule
authorChris Mi <cmi@nvidia.com>
Fri, 10 Mar 2023 07:56:08 +0000 (09:56 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 21 Apr 2023 01:47:32 +0000 (18:47 -0700)
commit4c8189302567f75099a336b0efcff8291ec86ff4
tree083fd1077effa4affbff6f6a09a1e42ee558bbac
parentfd745f4c0abe41ebb09d11bf622b054a0f3e7b49
net/mlx5: E-switch, Don't destroy indirect table in split rule

Source port rewrite (forward to ovs internal port or statck device) isn't
supported in the rule of split action. So there is no indirect table in
split rule. The cited commit destroyes indirect table in split rule. The
indirect table for other rules will be destroyed wrongly. It will cause
traffic loss.

Fix it by removing the destroy function in split rule. And also remove
the destroy function in error flow.

Fixes: 10742efc20a4 ("net/mlx5e: VF tunnel TX traffic offloading")
Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c