]> 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)
commit9e6915b603990f78b6c4b8a48213b4d2c4021cfc
treedc78f097beb42b7afa40daaf023d0b370c5593bc
parenta1a418361b913f8e9caf17af1897e5b54f1fd768
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