]> git.baikalelectronics.ru Git - kernel.git/commit
drop_monitor: Filter control packets in drop monitor
authorIdo Schimmel <idosch@mellanox.com>
Tue, 29 Sep 2020 08:15:55 +0000 (11:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Oct 2020 01:01:26 +0000 (18:01 -0700)
commit3a1b343afbcd588b0feabda52ee31619ae707127
tree8f8300ccbce6f14f6e83aadc43e12e468b50bdca
parent86579ffaf7efaff6cb82c6c0c833ca30684012e7
drop_monitor: Filter control packets in drop monitor

Previously, devlink called into drop monitor in order to report hardware
originated drops / exceptions. devlink intentionally filtered control
packets and did not pass them to drop monitor as they were not dropped
by the underlying hardware.

Now drop monitor registers its probe on a generic 'devlink_trap_report'
tracepoint and should therefore perform this filtering itself instead of
having devlink do that.

Add the trap type as metadata and have drop monitor ignore control
packets.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c
net/core/drop_monitor.c