]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5: Support internal port as decap route device
authorAriel Levkovich <lariel@nvidia.com>
Fri, 8 Jan 2021 23:38:04 +0000 (01:38 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 29 Oct 2021 20:53:31 +0000 (13:53 -0700)
commitb16eb3c81fe27978afdb2c111908d4d627a88d99
tree3f307a6a27febc9aaaf2b9a5d8f4461317abd16a
parent5e9942721749fc96b9df4b0545474153316c0571
net/mlx5: Support internal port as decap route device

When performing route device lookup for decap action, support
the case of ovs internal port as the lookup result.

In such case, an internal port struct is mapped and attached
to the flow attributes so that the source port matching of the
rule will match on the internal port's metadata value.

Signed-off-by: Ariel Levkovich <lariel@nvidia.com>
Reviewed-by: Vlad Buslov <vladbu@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