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 /drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c | |
parent | fec2b4bb39d961e5a804c34b7184e2cbbb2d7c2c (diff) | |
download | linux-7a9fb35e8c3a67145fca262c304de65cb2f83abf.tar.bz2 |
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 'drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c index f0a419fc4adf..34b3b316b688 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c @@ -635,4 +635,5 @@ void mlx5e_reporter_rx_destroy(struct mlx5e_priv *priv) return; devlink_port_health_reporter_destroy(priv->rx_reporter); + priv->rx_reporter = NULL; } |