drop_monitor: Prepare probe functions for devlink tracepoint
authorIdo Schimmel <idosch@mellanox.com>
Tue, 29 Sep 2020 08:15:51 +0000 (11:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Oct 2020 01:01:26 +0000 (18:01 -0700)
commit5855357cd40e8b2ccdcc30f8ae0dac3f0f892ccd
treef328a98736205ee50ab8164ab0d308a28762452f
parent5b88823bfe0875b327cc041017b5dcbec9dcbcc8
drop_monitor: Prepare probe functions for devlink tracepoint

Drop monitor supports two alerting modes: Summary and packet. Prepare a
probe function for each, so that they could be later registered on the
devlink tracepoint by calling register_trace_devlink_trap_report(),
based on the configured alerting mode.

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