aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoi Dayan <roid@nvidia.com>2020-09-16 10:11:33 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2021-03-16 16:48:42 -0700
commit7a9fb35e8c3a67145fca262c304de65cb2f83abf (patch)
tree0da83cbd81fce25f32ac9a6b7e13a6f1e9a7094b /include
parentnet/mlx5e: Unregister eth-reps devices first (diff)
downloadlinux-dev-7a9fb35e8c3a67145fca262c304de65cb2f83abf.tar.xz
linux-dev-7a9fb35e8c3a67145fca262c304de65cb2f83abf.zip
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')
-rw-r--r--include/linux/mlx5/driver.h1
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 {