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)
commit23bb50cf7399b4b702a34edb08f29c702cc54eb3
treedc78f097beb42b7afa40daaf023d0b370c5593bc
parentc2d7712ca3852886849267d61361d5137e40ee37
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