]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Update VF vports config when num of VFs changed
authorBodong Wang <bodong@mellanox.com>
Tue, 12 Nov 2019 17:30:10 +0000 (11:30 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 13 Mar 2020 23:26:12 +0000 (16:26 -0700)
commit0129383b11f48e5605d07c577cf1edad5840195c
treedc78f097beb42b7afa40daaf023d0b370c5593bc
parent60ace64820b7a4a371a4bb2ff830b7f898c9bb6d
net/mlx5: E-Switch, Update VF vports config when num of VFs changed

Currently, ECPF eswitch manager does one-time only configuration for
VF vports when device switches to offloads mode. However, when num of
VFs changed from host side, driver doesn't update VF vports
configurations.

Hence, perform VFs vport configuration update whenever num_vfs change
event occurs.

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.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c