]> 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)
commitd7b2567d304ab354470cb915f354ad2f63477d5f
tree87be276ab5487cedaca51c1951adcbbd300daef8
parent0409c8c67b8beb9d483c146039b6d7348ace3179
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: 43ca982d871f ("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