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)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 Jan 2023 18:34:09 +0000 (10:34 -0800)
commit521933cdc4aad133b410d8f64b03f60345021138
tree3cd0adfc64fff2364cd732b9e7bd30ec60c6b6c8
parent55b458481d6803ddeb86c55a6857aead11ad1e20
net/mlx5e: Support Geneve and GRE with VF tunnel offload

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>
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