]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Add-tunnel-devlink-trap-support'
authorDavid S. Miller <davem@davemloft.net>
Sun, 19 Jan 2020 15:23:53 +0000 (16:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jan 2020 15:23:53 +0000 (16:23 +0100)
commit842a4208fc8a0fcaf3e9e3884ae2f4e8d7539124
tree567dd64c5394eb20809617df7c98f5a3bc1bb293
parent888bf0ccc8f442710dcc8a3cd443230e527cc953
parent5c11c441f744cfc324b6e209818cdb8a44d6fe3e
Merge branch 'mlxsw-Add-tunnel-devlink-trap-support'

Ido Schimmel says:

====================
mlxsw: Add tunnel devlink-trap support

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

These traps allow the user to more quickly diagnose problems relating to
tunnel decapsulation errors, such as packet being too short to
decapsulate or a packet containing wrong GRE key in its GRE header.

Patch set overview:

Patches #1-#4 add three additional layer 3 traps. Two of which are
mlxsw-specific as they relate to hardware-specific errors. The patches
include documentation of each trap and selftests.

Patches #5-#8 are preparations. They ensure that the correct ECN bits
are set in the outer header during IPinIP encapsulation and that packets
with an invalid ECN combination in underlay and overlay are trapped to
the kernel and not decapsulated in hardware.

Patches #9-#15 add support for two tunnel related traps. Each trap is
documented and selftested using both VXLAN and IPinIP tunnels, if
applicable.
====================

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