• Petr Machata's avatar
    mlxsw: spectrum_router: Support IPv4 underlay decap · 4607f6d2
    Petr Machata authored
    Unlike encapsulation, which is represented by a next hop forwarding to
    an IPIP tunnel, decapsulation is a type of local route. It is created
    for local routes whose prefix corresponds to the local address of one of
    offloaded IPIP tunnels. When the tunnel is removed (i.e. all the encap
    next hops are removed), the decap offload is migrated back to a trap for
    resolution in slow path.
    
    This patch assumes that decap route is already present when encap route
    is added. A follow-up patch will fix this issue.
    
    Note that this patch only supports IPv4 underlay. Support for IPv6
    underlay will be subject to follow-up work apart from this patchset.
    Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
    Reviewed-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4607f6d2
spectrum_ipip.h 3.04 KB