]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Do not reload ethernet ports when changing eswitch mode
authorRoi Dayan <roid@nvidia.com>
Wed, 16 Sep 2020 07:11:33 +0000 (10:11 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Mar 2021 23:48:42 +0000 (16:48 -0700)
commitbdbdde7f1648e1f1add94b8e403818e9c5ac6d9a
tree0da83cbd81fce25f32ac9a6b7e13a6f1e9a7094b
parent0bea350faa029215a5bcb45dbf4b0c3c059d2f71
net/mlx5e: Do not reload ethernet ports when changing eswitch mode

When switching modes between legacy and switchdev and back, do not
reload ethernet interfaces. just change the profile from nic profile
to uplink rep profile in switchdev mode.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h
include/linux/mlx5/driver.h