All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 00/15] mlxsw: Add tunnel devlink-trap support
@ 2020-01-19 13:00 Ido Schimmel
  2020-01-19 13:00 ` [PATCH net-next 01/15] mlxsw: Add irif and erif disabled traps Ido Schimmel
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Ido Schimmel @ 2020-01-19 13:00 UTC (permalink / raw)
  To: netdev; +Cc: davem, jiri, amitc, mlxsw, Ido Schimmel

From: Ido Schimmel <idosch@mellanox.com>

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.

Amit Cohen (15):
  mlxsw: Add irif and erif disabled traps
  selftests: devlink_trap_l3_drops: Add test cases of irif and erif
    disabled
  devlink: Add non-routable packet trap
  mlxsw: Add NON_ROUTABLE trap
  mlxsw: reg: Add Tunneling IPinIP Encapsulation ECN Mapping Register
  mlxsw: reg: Add Tunneling IPinIP Decapsulation ECN Mapping Register
  mlxsw: Add ECN configurations with IPinIP tunnels
  mlxsw: spectrum_trap: Reorder cases according to enum order
  devlink: Add tunnel generic packet traps
  mlxsw: Add tunnel devlink-trap support
  selftests: devlink_trap_tunnel_vxlan: Add test case for decap_error
  selftests: devlink_trap_tunnel_ipip: Add test case for decap_error
  devlink: Add overlay source MAC is multicast trap
  mlxsw: Add OVERLAY_SMAC_MC trap
  selftests: devlink_trap_tunnel_vxlan: Add test case for
    overlay_smac_is_mc

 .../networking/devlink/devlink-trap.rst       |  19 +
 Documentation/networking/devlink/mlxsw.rst    |  22 ++
 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  89 +++++
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |   2 -
 .../ethernet/mellanox/mlxsw/spectrum_ipip.c   |  60 ++++
 .../ethernet/mellanox/mlxsw/spectrum_router.c |  10 +
 .../ethernet/mellanox/mlxsw/spectrum_router.h |   3 +
 .../ethernet/mellanox/mlxsw/spectrum_trap.c   |  52 ++-
 drivers/net/ethernet/mellanox/mlxsw/trap.h    |   5 +
 include/net/devlink.h                         |  12 +
 net/core/devlink.c                            |   4 +
 .../net/mlxsw/devlink_trap_l3_drops.sh        | 112 ++++++
 .../net/mlxsw/devlink_trap_tunnel_ipip.sh     | 265 ++++++++++++++
 .../net/mlxsw/devlink_trap_tunnel_vxlan.sh    | 330 ++++++++++++++++++
 14 files changed, 981 insertions(+), 4 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/mlxsw/devlink_trap_tunnel_ipip.sh
 create mode 100755 tools/testing/selftests/drivers/net/mlxsw/devlink_trap_tunnel_vxlan.sh

-- 
2.24.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-01-19 15:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-19 13:00 [PATCH net-next 00/15] mlxsw: Add tunnel devlink-trap support Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 01/15] mlxsw: Add irif and erif disabled traps Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 02/15] selftests: devlink_trap_l3_drops: Add test cases of irif and erif disabled Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 03/15] devlink: Add non-routable packet trap Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 04/15] mlxsw: Add NON_ROUTABLE trap Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 05/15] mlxsw: reg: Add Tunneling IPinIP Encapsulation ECN Mapping Register Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 06/15] mlxsw: reg: Add Tunneling IPinIP Decapsulation " Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 07/15] mlxsw: Add ECN configurations with IPinIP tunnels Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 08/15] mlxsw: spectrum_trap: Reorder cases according to enum order Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 09/15] devlink: Add tunnel generic packet traps Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 10/15] mlxsw: Add tunnel devlink-trap support Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 11/15] selftests: devlink_trap_tunnel_vxlan: Add test case for decap_error Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 12/15] selftests: devlink_trap_tunnel_ipip: " Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 13/15] devlink: Add overlay source MAC is multicast trap Ido Schimmel
2020-01-19 13:00 ` [PATCH net-next 14/15] mlxsw: Add OVERLAY_SMAC_MC trap Ido Schimmel
2020-01-19 13:01 ` [PATCH net-next 15/15] selftests: devlink_trap_tunnel_vxlan: Add test case for overlay_smac_is_mc Ido Schimmel
2020-01-19 15:25 ` [PATCH net-next 00/15] mlxsw: Add tunnel devlink-trap support David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.