diff options
author | Ido Schimmel <idosch@mellanox.com> | 2019-08-11 10:35:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-11 20:53:30 +0300 |
commit | 28315f7999870bb56da236f6b4ffce63efcc7897 (patch) | |
tree | 216045de643c092d9526eb919d2f80f10df527b4 /include/uapi/linux/net_dropmon.h | |
parent | c5ab9b1c41f6d89d84fe147e51fe623f90bd026c (diff) | |
download | linux-28315f7999870bb56da236f6b4ffce63efcc7897.tar.xz |
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>
Diffstat (limited to 'include/uapi/linux/net_dropmon.h')
-rw-r--r-- | include/uapi/linux/net_dropmon.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/net_dropmon.h b/include/uapi/linux/net_dropmon.h index 5edbd0a675fd..0fecdedeb6ca 100644 --- a/include/uapi/linux/net_dropmon.h +++ b/include/uapi/linux/net_dropmon.h @@ -62,4 +62,13 @@ enum { * Our group identifiers */ #define NET_DM_GRP_ALERT 1 + +/** + * enum net_dm_alert_mode - Alert mode. + * @NET_DM_ALERT_MODE_SUMMARY: A summary of recent drops is sent to user space. + */ +enum net_dm_alert_mode { + NET_DM_ALERT_MODE_SUMMARY, +}; + #endif |