]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Check correct ip_version in decapsulation route resolution
authorRoi Dayan <roid@nvidia.com>
Tue, 2 Mar 2021 09:31:08 +0000 (11:31 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 10 Mar 2021 19:01:55 +0000 (11:01 -0800)
commit307a4234917a12477ad860d2e9fd4ba1d65bfd88
tree87be276ab5487cedaca51c1951adcbbd300daef8
parent2150b1d3d2796218c02a754e59713ce915b25b9c
net/mlx5e: Check correct ip_version in decapsulation route resolution

flow_attr->ip_version has the matching that should be done inner/outer.
When working with chains, decapsulation is done on chain0 and next chain
match on outer header which is the original inner which could be ipv4.
So in tunnel route resolution we cannot use that to know which ip version
we are at so save tun_ip_version when parsing the tunnel match and use
that.

Fixes: 8ce9bb6bce82 ("net/mlx5e: VF tunnel RX traffic offloading")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Dmytro Linkin <dlinkin@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_tun_encap.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h