]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Don't clear the whole vf config when switching modes
authorDmytro Linkin <dmitrolin@mellanox.com>
Wed, 12 Feb 2020 09:32:39 +0000 (11:32 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 19 Feb 2020 03:01:19 +0000 (19:01 -0800)
commit83523bd08838f4e07a7d4f80a45cef1aff709bdc
treecb6dbfc76fc56163be3c382e05a3761a51095602
parente34a7db68f565e416db4770d26b84e8842d4d731
net/mlx5e: Don't clear the whole vf config when switching modes

There is no need to reset all vf config (except link state) between
legacy and switchdev modes changes.
Also, set link state to AUTO, when legacy enabled.

Fixes: 4eb01403cace ("net/mlx5e: Clear VF config when switching modes")
Signed-off-by: Dmytro Linkin <dmitrolin@mellanox.com>
Reviewed-by: Roi Dayan <roid@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_offloads.c