Skip to content

Commit 07f6dc4

Browse files
dickmanmaorSaeed Mahameed
authored andcommitted
net/mlx5e: Sync VXLAN udp ports during uplink representor profile change
Currently during NIC profile disablement all VXLAN udp ports offloaded to the HW are flushed and during its enablement the driver send notification to the stack to inform the core that the entire UDP tunnel port state has been lost, uplink representor doesn't have the same behavior which can cause VXLAN udp ports offload to be in bad state while moving between modes while VXLAN interface exist. Fixed by aligning the uplink representor profile behavior to the NIC behavior. Fixes: 84db661 ("net/mlx5e: Move set vxlan nic info to profile init") Signed-off-by: Maor Dickman <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent a1c7c49 commit 07f6dc4

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+3
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include "fs_core.h"
5151
#include "lib/mlx5.h"
5252
#include "lib/devcom.h"
53+
#include "lib/vxlan.h"
5354
#define CREATE_TRACE_POINTS
5455
#include "diag/en_rep_tracepoint.h"
5556
#include "en_accel/ipsec.h"
@@ -1027,6 +1028,7 @@ static void mlx5e_uplink_rep_enable(struct mlx5e_priv *priv)
10271028
rtnl_lock();
10281029
if (netif_running(netdev))
10291030
mlx5e_open(netdev);
1031+
udp_tunnel_nic_reset_ntf(priv->netdev);
10301032
netif_device_attach(netdev);
10311033
rtnl_unlock();
10321034
}
@@ -1048,6 +1050,7 @@ static void mlx5e_uplink_rep_disable(struct mlx5e_priv *priv)
10481050
mlx5_notifier_unregister(mdev, &priv->events_nb);
10491051
mlx5e_rep_tc_disable(priv);
10501052
mlx5_lag_remove_netdev(mdev, priv->netdev);
1053+
mlx5_vxlan_reset_to_default(mdev->vxlan);
10511054
}
10521055

10531056
static MLX5E_DEFINE_STATS_GRP(sw_rep, 0);

0 commit comments

Comments
 (0)