OSDN Git Service

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)
commit0c69e0fcd3b1a5c73a3faaae2df76a3e0e74f122
tree0a83e423742e4399a5a94e6043e62b80535783e3
parent564c6d727aca31735662b944311efda0d9465820
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