]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Offload blackhole routes
authorIdo Schimmel <idosch@mellanox.com>
Wed, 6 Feb 2019 19:42:01 +0000 (19:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2019 22:24:05 +0000 (14:24 -0800)
commitbf3ab53f9f861b6eb41f1a9efddc5448b4c31528
tree7a048989bb16a7267ec079f5b61b07e8b3780ef3
parent11aa451580331e24dfbb23cc88a2d6768313a8e3
mlxsw: spectrum_router: Offload blackhole routes

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 <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c