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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -62,4 +62,13 @@ enum { · 61 unmodified lines | ||
| 62 | 62 | * Our group identifiers |
| 63 | 63 | */ |
| 64 | 64 | #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 | + */ | |
| 70 | +enum net_dm_alert_mode { | |
| 71 | + NET_DM_ALERT_MODE_SUMMARY, | |
| 72 | +}; | |
| 73 | + | |
| 65 | 74 | #endif |