OSDN Git Service

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)
commit383de108157c881074f32914b61125e299820bd2
treecb6dbfc76fc56163be3c382e05a3761a51095602
parent52d214976d4f64504c1bbb52d47b46a5a3d5ee42
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: 3b83b6c2e024 ("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