netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] mlxsw: Offload blackhole routes
@ 2019-02-06 19:42 Ido Schimmel
  2019-02-06 19:42 ` [PATCH net-next 1/2] mlxsw: spectrum_router: " Ido Schimmel
  2019-02-06 19:42 ` [PATCH net-next 2/2] selftests: mlxsw: Add a test for " Ido Schimmel
  0 siblings, 2 replies; 7+ messages in thread
From: Ido Schimmel @ 2019-02-06 19:42 UTC (permalink / raw)
  To: netdev@vger.kernel.org
  Cc: davem@davemloft.net, Jiri Pirko, Alexander Petrovskiy,
	dsahern@gmail.com, mlxsw, Ido Schimmel

Blackhole routes are routes that cause matching packets to be silently
dropped. This is in contrast to unreachable routes that generate an ICMP
host unreachable packet in response.

The driver currently programs both route types with a trap action and
lets the kernel drop matching packets. This is sub-optimal as packets
routed using a blackhole route can be directly dropped by the ASIC.

Patch #1 alters mlxsw to program blackhole routes with a discard action.

Patch #2 adds a matching test.

Ido Schimmel (2):
  mlxsw: spectrum_router: Offload blackhole routes
  selftests: mlxsw: Add a test for blackhole routes

 .../ethernet/mellanox/mlxsw/spectrum_router.c |  27 ++-
 .../drivers/net/mlxsw/blackhole_routes.sh     | 200 ++++++++++++++++++
 2 files changed, 225 insertions(+), 2 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/mlxsw/blackhole_routes.sh

-- 
2.20.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-02-08 17:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-06 19:42 [PATCH net-next 0/2] mlxsw: Offload blackhole routes Ido Schimmel
2019-02-06 19:42 ` [PATCH net-next 1/2] mlxsw: spectrum_router: " Ido Schimmel
2019-02-08  0:40   ` David Ahern
2019-02-08  7:34     ` Ido Schimmel
2019-02-08 16:24       ` David Ahern
2019-02-08 17:05         ` Ido Schimmel
2019-02-06 19:42 ` [PATCH net-next 2/2] selftests: mlxsw: Add a test for " Ido Schimmel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).