]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit917ac361dbfb09ecfdd0e13c000dbc1d07f75c05
tree123652be75fd40e03121cd439182cc8bf311d60e
parent11aa451580331e24dfbb23cc88a2d6768313a8e3
parent8b1653a9b1068e8b7c3dc8ca93e776c02707c7ff
Merge branch 'mlxsw-blackhole-routes'

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>