]> git.baikalelectronics.ru Git - 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)
commit03076a248d3c937359bbc8fe986cb3809b74e8eb
treef0f7e10c61165ba56de9332158f40ff4a2d5d810
parent64d7736ff2ab8317290c7f71a5be85660c246ad4
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: 159077303977 ("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