diff options
author | Amit Cohen <amitc@mellanox.com> | 2020-08-03 19:11:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-03 18:06:46 -0700 |
commit | 08e335f6ad35a019f4cb1a74badc2f4bceb63bcf (patch) | |
tree | 566f7e133e134f278393c8b825e0235fefa5db88 /net | |
parent | 80fbbb1672e7815a15d7329638537961d65c453d (diff) | |
download | lwn-08e335f6ad35a019f4cb1a74badc2f4bceb63bcf.tar.gz lwn-08e335f6ad35a019f4cb1a74badc2f4bceb63bcf.zip |
devlink: Add early_drop trap
Add the packet trap that can report packets that were ECN marked due to RED
AQM.
Signed-off-by: Amit Cohen <amitc@mellanox.com>
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-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')
-rw-r--r-- | net/core/devlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 5fdebb7289e9..bde4c29a30bc 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -8801,6 +8801,7 @@ static const struct devlink_trap devlink_trap_generic[] = { DEVLINK_TRAP(PTP_GENERAL, CONTROL), DEVLINK_TRAP(FLOW_ACTION_SAMPLE, CONTROL), DEVLINK_TRAP(FLOW_ACTION_TRAP, CONTROL), + DEVLINK_TRAP(EARLY_DROP, DROP), }; #define DEVLINK_TRAP_GROUP(_id) \ |