• Ido Schimmel's avatar
    mlxsw: spectrum_router: Allow programming link-local prefix routes · 10d3757f
    Ido Schimmel authored
    The device has a trap for IPv6 packets that need be routed and have a
    unicast link-local destination IP (i.e., fe80::/10). This allows mlxsw
    to ignore link-local routes, as the packets will be trapped to the CPU
    in any case.
    
    However, since link-local routes are not programmed, it is possible for
    routed packets to hit the default route which might also be programmed
    to trap packets. This means that packets with a link-local destination
    IP might be trapped for the wrong reason.
    
    To overcome this, allow programming link-local prefix routes (usually
    one fe80::/64 per-table), so that the packets will be forwarded until
    reaching the link-local trap.
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    10d3757f
spectrum_router.c 218 KB