]> 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)
commit7b6bfd5c1c3a7fbbac2b3bec6835cb16a2ae69c2
treef0f7e10c61165ba56de9332158f40ff4a2d5d810
parent777d2f83acac76c4fe5fd19484ab33061c5f157e
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: e2369ded55b9 ("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