diff options
author | Roi Dayan <roid@nvidia.com> | 2020-09-16 10:11:33 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-03-16 16:48:42 -0700 |
commit | 7a9fb35e8c3a67145fca262c304de65cb2f83abf (patch) | |
tree | 0da83cbd81fce25f32ac9a6b7e13a6f1e9a7094b /include/linux | |
parent | fec2b4bb39d961e5a804c34b7184e2cbbb2d7c2c (diff) | |
download | linux-next-7a9fb35e8c3a67145fca262c304de65cb2f83abf.tar.gz |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mlx5/driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index f1d0340e46a7..23bb01d7c9b9 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -651,6 +651,7 @@ struct mlx5e_resources { struct mlx5_sq_bfreg bfreg; } hw_objs; struct devlink_port dl_port; + struct net_device *uplink_netdev; }; enum mlx5_sw_icm_type { |