Merge branch 'mlxsw-blackhole-routes'
authorDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2019 22:24:05 +0000 (14:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2019 22:24:05 +0000 (14:24 -0800)
Ido Schimmel says:

====================
mlxsw: Offload blackhole routes

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge