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)
commitb3c2ed21c0bdf35ba498a9974aa587f99a03b658
treeb3d2a0111438a92452d8d65bea238a69e40abdc6
parentc1aea9e1765a047c7397da30f52315c43e3501fb
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: 4383cfcc65e7 ("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