]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Enable local routes promotion to perform NVE decap
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Oct 2018 08:53:07 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 00:45:07 +0000 (17:45 -0700)
commita7560c010d79271f6654bfe6cf93b42c33aa1dc5
tree0a83e423742e4399a5a94e6043e62b80535783e3
parent3ba68e0cf41aedcfb244e4b0184ca3e6e8b68d38
mlxsw: spectrum_router: Enable local routes promotion to perform NVE decap

When an NVE tunnel with an IP underlay (e.g., VxLAN) is configured the
local route to the tunnel's source IP needs to be promoted to perform
NVE decapsulation.

Expose an API in the unicast IP router to promote / demote local routes.

The case where a local route is configured after the creation of the NVE
tunnel will be handled in a subsequent patch in the set.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c