net/mlx5e: Sync VXLAN udp ports during uplink representor profile change
authorMaor Dickman <maord@nvidia.com>
Mon, 3 Jan 2022 13:04:18 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:58 +0000 (11:03 +0100)
commit266e6a36546f0734a2a3ee9b4422c9d5b942c707
tree6c6e4935a5745ed0b4723576e07f51c6466ce1e4
parentfbe5f19824baacaeb3aff38a4841d70e0d0da1bc
net/mlx5e: Sync VXLAN udp ports during uplink representor profile change

[ Upstream commit 07f6dc4024ea1d2314b9c8b81fd4e492864fcca1 ]

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: 84db66124714 ("net/mlx5e: Move set vxlan nic info to profile init")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c