net/mlx5e: tc, Refactor peer add/del flow
authorShay Drory <shayd@nvidia.com>
Tue, 29 Mar 2022 14:47:20 +0000 (14:47 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Jun 2023 19:10:46 +0000 (12:10 -0700)
commitb1661efa4dbbd7d4055543f036cae6c28257d292
tree701411b087da8cf9789c3466477f97322641e556
parent953bb24ddc118a5a3021a90a8cab8eae946238e7
net/mlx5e: tc, Refactor peer add/del flow

Move peer_eswitch outside mlx5e_tc_add_fdb_peer_flow() so downstream
patch can call mlx5e_tc_add_fdb_peer_flow() with multiple peers.
Move peer_eswitch in the remove flow as well in order to keep symmetry.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Shay Drory <shayd@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