]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Support Geneve and GRE with VF tunnel offload
authorMaor Dickman <maord@nvidia.com>
Tue, 20 Dec 2022 09:21:22 +0000 (11:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:48 +0000 (13:33 +0100)
commit931b6ef14718c0e4bd42e1bbab1b5f5fd94ca760
treec20751ce360784d2020a04e36f807b3d66fbf11e
parenta0b4f28e662052bea8c400166a3652133c18c171
net/mlx5e: Support Geneve and GRE with VF tunnel offload

[ Upstream commit 2da61f2d54193d832129a101ecb1fe83b88a1b1b ]

Today VF tunnel offload (tunnel endpoint is on VF) is implemented
by indirect table which use rules that match on VXLAN VNI to
recirculated to root table, this limit the support for only
VXLAN tunnels.

This patch change indirect table to use one single match all rule
to recirculated to root table which is added when any tunnel decap
rule is added with tunnel endpoint is VF. This allow support of
Geneve and GRE with this configuration.

Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Stable-dep-of: e9d335be5e23 ("net/mlx5: E-switch, Fix wrong usage of source port rewrite in split rules")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c