]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 7 Jan 2022 00:55:41 +0000 (16:55 -0800)
commit2000eeb975c70f03c6495511d6f81868dd871165
tree60eb98887c78ff051bbfc6cd92b49dbd81128509
parentaf5dbd9692e0631efa4f9e5293bf416c142b1876
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: d81437200cd4 ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c