]> 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)
commit5320aa9c28a31a721417926610e93e8a65a76e13
tree123652be75fd40e03121cd439182cc8bf311d60e
parentf2f90a8008197cd11bc81f063486f711ef0d5adf
parent38cc7bc903285a5ca2af43a0f2957d9d35299b79
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>