]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Add irif and erif disabled traps
authorAmit Cohen <amitc@mellanox.com>
Sun, 19 Jan 2020 13:00:46 +0000 (15:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jan 2020 15:23:52 +0000 (16:23 +0100)
commit35f7442b402cd5d97ce34a14f419107ce27de0df
tree0f4584768a46d894b48f71cfe050f784cf478172
parentbe515fbd4625daf5c9e5c620971a900f3ac23ddf
mlxsw: Add irif and erif disabled traps

IRIF_DISABLED and ERIF_DISABLED are driver specific traps. Packets are
dropped for these reasons when they need to be routed through/from
existing router interfaces (RIF) which are disabled.

Add devlink driver-specific traps and mlxsw trap IDs used to report
these traps.

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/devlink/devlink-trap.rst
Documentation/networking/devlink/mlxsw.rst
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c
drivers/net/ethernet/mellanox/mlxsw/trap.h