]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix VXLAN configuration restore after function reload
authorAya Levin <ayal@mellanox.com>
Wed, 24 Jun 2020 16:04:03 +0000 (19:04 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 10 Jul 2020 02:27:06 +0000 (19:27 -0700)
commit3c3680d795a235ac02eab5d2db7bc59502b66af7
treeb3d2a0111438a92452d8d65bea238a69e40abdc6
parent801969f8ad585f4bf7089741c048b45ec74f55b1
net/mlx5e: Fix VXLAN configuration restore after function reload

When detaching netdev, remove vxlan port configuration using
udp_tunnel_drop_rx_info. During function reload, configuration will be
restored using udp_tunnel_get_rx_info. This ensures sync between
firmware and driver. Use udp_tunnel_get_rx_info even if its physical
interface is down.

Fixes: 78080f553ea3 ("net/mlx5: Add devlink reload")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c