]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix VXLAN synchronization after function reload
authorAya Levin <ayal@nvidia.com>
Wed, 23 Sep 2020 09:58:44 +0000 (12:58 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Nov 2020 20:17:06 +0000 (12:17 -0800)
commit84f245812e9a5932f4fdb46d97e78662abf618b0
tree779ef534d5e08f83ee5a25a1bf3b5da5cfb1d093
parent19e97ef4f025a702d8854968dc34ffede046c4c7
net/mlx5e: Fix VXLAN synchronization after function reload

During driver reload, perform firmware tear-down which results in
firmware losing the configured VXLAN ports. These ports are still
available in the driver's database. Fix this by cleaning up driver's
VXLAN database in the nic unload flow, before firmware tear-down. With
that, minimize mlx5_vxlan_destroy() to remove only what was added in
mlx5_vxlan_create() and warn on leftover UDP ports.

Fixes: 5b2bc51beb83 ("net/mlx5: convert to new udp_tunnel infrastructure")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.h