]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1b0b9929551fce5d32655c95ef8470bfc537ec9
tree216045de643c092d9526eb919d2f80f10df527b4
parent78148ba7e9ac49727a03b4c9690b0504a250d986
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