]> 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)
commit42b60c197fa89b3dc5a11bfa155f1e481b934ba2
tree0f4584768a46d894b48f71cfe050f784cf478172
parent888bf0ccc8f442710dcc8a3cd443230e527cc953
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