]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: convert to new udp_tunnel infrastructure
authorJakub Kicinski <kuba@kernel.org>
Tue, 28 Jul 2020 21:47:59 +0000 (14:47 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 3 Aug 2020 17:13:56 +0000 (10:13 -0700)
commit4d2b3366bf281ccab36fa66eca9043c897be59dc
tree1e02d2b5a3996885a36c64599e94d3e054c50b21
parente328e49c82492fc569e0e614385ba88d2d790469
net/mlx5: convert to new udp_tunnel infrastructure

Allocate nic_info dynamically - n_entries is not constant.

Attach the tunnel offload info only to the uplink representor.
We expect the "main" netdev to be unregistered in switchdev
mode, and there to be only one uplink representor.

Drop the udp_tunnel_drop_rx_info() call, it was not there until
commit a7abd2f2da84 ("net/mlx5e: Fix VXLAN configuration restore after function reload")
so the device doesn't need it, and core should handle reloads and
reset just fine.

v2:
 - don't drop the ndos on reprs, and register info on uplink repr.
v4:
 - Move netdev tunnel structure handling to en_main.c

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.h