• Ido Schimmel's avatar
    mlxsw: spectrum_router: Add nexthop trap action support · fc199d7c
    Ido Schimmel authored
    Currently, nexthops are programmed with either forward or discard action
    (for blackhole nexthops). Nexthops that do not have a valid MAC address
    (neighbour) or router interface (RIF) are simply not written to the
    adjacency table.
    
    In resilient nexthop groups, the size of the group must remain fixed and
    the kernel is in complete control of the layout of the adjacency table.
    A nexthop without a valid MAC or RIF will therefore be written with a
    trap action, to trigger neighbour resolution.
    
    Allow such nexthops to be programmed to the adjacency table to enable
    above mentioned use case.
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    fc199d7c
spectrum_router.c 255 KB