]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mlxsw: spectrum_router: Relax GRE decap matching check
authorNir Dotan <nird@mellanox.com>
Thu, 6 Dec 2018 17:44:52 +0000 (17:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 21:31:08 +0000 (13:31 -0800)
commitda93d2913fdf43d5cde3c5a53ac9cc29684d5c7c
treef0f7e10c61165ba56de9332158f40ff4a2d5d810
parentf58a83c207b791c6586b9675a589db5c6ac7909e
mlxsw: spectrum_router: Relax GRE decap matching check

GRE decap offload is configured when local routes prefix correspond to the
local address of one of the offloaded GRE tunnels. The matching check was
found to be too strict, such that for a flat GRE configuration, in which
the overlay and underlay traffic share the same non-default VRF, decap flow
was not offloaded.

Relax the check for decap flow offloading. A match occurs if the local
address of the tunnel matches the local route address while both share the
same VRF table.

Fixes: 4607f6d26950 ("mlxsw: spectrum_router: Support IPv4 underlay decap")
Signed-off-by: Nir Dotan <nird@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c