diff options
author | Jiri Pirko <jiri@mellanox.com> | 2020-02-24 08:35:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 20:55:06 +0100 |
commit | ecd942a0ef3a30f6037870bfc0a294d7e9fe9d4f (patch) | |
tree | a930aae44095b4ab74c14154a04bca0fcbf8cb1c /net/core/devlink.c | |
parent | mlxsw: spectrum_trap: Prepare mlxsw_core_trap_action_set() to handle not only... (diff) | |
download | linux-ecd942a0ef3a30f6037870bfc0a294d7e9fe9d4f.tar.xz linux-ecd942a0ef3a30f6037870bfc0a294d7e9fe9d4f.zip |
devlink: add ACL generic packet traps
Add packet traps that can report packets that were dropped during ACL
processing.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r-- | net/core/devlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 216bdd25ce39..0d7c5d3443d2 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -7795,6 +7795,8 @@ static const struct devlink_trap devlink_trap_generic[] = { DEVLINK_TRAP(NON_ROUTABLE, DROP), DEVLINK_TRAP(DECAP_ERROR, EXCEPTION), DEVLINK_TRAP(OVERLAY_SMAC_MC, DROP), + DEVLINK_TRAP(INGRESS_FLOW_ACTION_DROP, DROP), + DEVLINK_TRAP(EGRESS_FLOW_ACTION_DROP, DROP), }; #define DEVLINK_TRAP_GROUP(_id) \ @@ -7808,6 +7810,7 @@ static const struct devlink_trap_group devlink_trap_group_generic[] = { DEVLINK_TRAP_GROUP(L3_DROPS), DEVLINK_TRAP_GROUP(BUFFER_DROPS), DEVLINK_TRAP_GROUP(TUNNEL_DROPS), + DEVLINK_TRAP_GROUP(ACL_DROPS), }; static int devlink_trap_generic_verify(const struct devlink_trap *trap) |