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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:13:24 +0000 (08:13 +0200)
commit1c15471511e5bf6d3d38a5220ff8c8988b39a34c
tree04519cbf7b7700679e0874f931dcebc34ef0c883
parentd8e284d778e7b3ada3d790ed9cf9dfdf783de6a0
net/mlx5e: Fix VXLAN configuration restore after function reload

[ Upstream commit b3c2ed21c0bdf35ba498a9974aa587f99a03b658 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c