]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Avoid function change handler for non ECPF
authorParav Pandit <parav@mellanox.com>
Sat, 27 Jun 2020 11:12:36 +0000 (14:12 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jul 2020 23:36:38 +0000 (16:36 -0700)
commit55b493a88cae7b0390b60ca9ec9398cd51152d52
tree9238368d0c320c9ce0920d9680fb1710a45544de
parent8cdcec05c14e659fe2f8460bbc8b652736afef6c
net/mlx5: E-switch, Avoid function change handler for non ECPF

for non ECPF eswitch manager function, vports are already
enabled/disabled when eswitch is enabled/disabled respectively.
Simplify function change handler for such eswitch manager function.

Therefore, ECPF is the only one which remains PF/VF function change
handler.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h