History

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.

Ido Schimmel committed 7 years ago

Commit 28315f71 parent c5ab9b12 files · +41 −6Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/net_dropmon.h+9−0
@@ -62,4 +62,13 @@ enum { · 61 unmodified lines
62 * Our group identifiers62 * Our group identifiers
63 */63 */
64#define NET_DM_GRP_ALERT 164#define NET_DM_GRP_ALERT 1
65
66/**
67 * enum net_dm_alert_mode - Alert mode.
68 * @NET_DM_ALERT_MODE_SUMMARY: A summary of recent drops is sent to user space.
69 */
70enum net_dm_alert_mode {
71 NET_DM_ALERT_MODE_SUMMARY,
72};
73
65#endif74#endif