]> 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)
commit3d5f41ca01244fa2d261b76a0c728d6ac4526645
tree9238368d0c320c9ce0920d9680fb1710a45544de
parente21feb88f7d87bc54032db480047e70ba05dcbac
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