On 2/6/19 11:42 AM, Ido Schimmel wrote: > Create a new FIB entry type for blackhole routes and set it in case the > type of the notified route is 'RTN_BLACKHOLE'. > > Program such routes with a discard action and mark them as offloaded > since the device is dropping the packets instead of the kernel. > > Signed-off-by: Ido Schimmel <ido...@mellanox.com> > Acked-by: Jiri Pirko <j...@mellanox.com> > --- > .../ethernet/mellanox/mlxsw/spectrum_router.c | 27 +++++++++++++++++-- > 1 file changed, 25 insertions(+), 2 deletions(-) >
One of the feature requests from the FRR team (and a feature I have implemented) is a blackhole nexthop. The idea is that prefixes are installed pointing to nexthop id N. That nexthop definition can be atomically updated to go between a device / gateway and a blackhole. [ prefix ] --> [ nhid 1 ] --> [ dev1 / gateway1 ] [ prefix ] --> [ nhid 1 ] --> [ blackhole ] [ prefix ] --> [ nhid 1 ] --> [ dev2 / gateway2 ] Do you see this working ok with mlxsw without having to update the prefix entries (which can be numerous) directly?