drop_monitor: Add alert mode operations
authorIdo Schimmel <idosch@mellanox.com>
Sun, 11 Aug 2019 07:35:50 +0000 (10:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Aug 2019 17:53:30 +0000 (10:53 -0700)
commit28315f7999870bb56da236f6b4ffce63efcc7897
tree216045de643c092d9526eb919d2f80f10df527b4
parentc5ab9b1c41f6d89d84fe147e51fe623f90bd026c
drop_monitor: Add alert mode operations

The next patch is going to add another alert mode in which the dropped
packet is notified to user space, instead of only a summary of recent
drops.

Abstract the differences between the modes by adding alert mode
operations. The operations are selected based on the currently
configured mode and associated with the probes and the work item just
before tracing starts.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/net_dropmon.h
net/core/drop_monitor.c