]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Add-layer-3-devlink-trap-support'
authorDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 03:51:41 +0000 (19:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 03:51:41 +0000 (19:51 -0800)
commitd2f8e664ca578b7d03244d84b6ed7a5270a7ef94
treefeb04759c3cb195a0f8f148fe696d8545928f9c5
parentea292a1cba78e270c0f690f925c2f93dc3ad82c6
parent57b45caf9e4abe0f07e450afe566503ddcf42214
Merge branch 'mlxsw-Add-layer-3-devlink-trap-support'

Ido Schimmel says:

====================
mlxsw: Add layer 3 devlink-trap support

This patch set from Amit adds support in mlxsw for layer 3 traps that
can report drops and exceptions via devlink-trap.

In a similar fashion to the existing layer 2 traps, these traps can send
packets to the CPU that were not routed as intended by the underlying
device.

The traps are divided between the two types detailed in devlink-trap
documentation: drops and exceptions. Unlike drops, packets received via
exception traps are also injected to the kernel's receive path, as they
are required for the correct functioning of the control plane. For
example, packets trapped due to TTL error must be injected to kernel's
receive path for traceroute to work properly.

Patch set overview:

Patch #1 adds the layer 3 drop traps to devlink along with their
documentation.

Patch #2 adds support for layer 3 drop traps in mlxsw.

Patches #3-#5 add selftests for layer 3 drop traps.

Patch #6 adds the layer 3 exception traps to devlink along with their
documentation.

Patches #7-#9 gradually add support for layer 3 exception traps in
mlxsw.

Patches #10-#12 add selftests for layer 3 exception traps.
====================

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