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)
commit4ee9e6e027c06eb1dd1cdbe025d461e407ece755
tree567dd64c5394eb20809617df7c98f5a3bc1bb293
parent95ae2d1d114989ce07db59dcf357eb78d7357fe1
parentb3073dfba8ee95697ebcafab90489ee847a74433
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>