net/mlx5: E-Switch, Refactor unload all reps per rep type
authorBodong Wang <bodong@mellanox.com>
Tue, 12 Nov 2019 17:56:12 +0000 (11:56 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 13 Mar 2020 23:26:15 +0000 (16:26 -0700)
commit4110fc59eafb4fcb462ea847f00ff8c83774672e
tree447473d546812b422052c6da230ccaca3aa7d203
parent23bb50cf7399b4b702a34edb08f29c702cc54eb3
net/mlx5: E-Switch, Refactor unload all reps per rep type

Following introduction of per vport configuration of vport and rep,
unload all reps per rep type is still needed as IB reps can be
unloaded individually. However, a few internal functions exist purely
for this purpose, merge them to a single function.

This patch doesn't change any existing functionality.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c