drop_monitor: Convert to using devlink tracepoint
authorIdo Schimmel <idosch@mellanox.com>
Tue, 29 Sep 2020 08:15:52 +0000 (11:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Oct 2020 01:01:26 +0000 (18:01 -0700)
commit8ee2267ad33e0ba021e9dd9b437f773906cd99d6
treede76d6f23aef6a840d6c56a39f54ae6bc13212ba
parent5855357cd40e8b2ccdcc30f8ae0dac3f0f892ccd
drop_monitor: Convert to using devlink tracepoint

Convert drop monitor to use the recently introduced
'devlink_trap_report' tracepoint instead of having devlink call into
drop monitor.

This is both consistent with software originated drops ('kfree_skb'
tracepoint) and also allows drop monitor to be built as a module and
still report hardware originated drops.

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