History

drop_monitor: Make drop queue length configurable

In packet alert mode, each CPU holds a list of dropped skbs that need to be processed in process context and sent to user space. To avoid exhausting the system's memory the maximum length of this queue is currently set to 1000. Allow users to tune the length of this queue according to their needs. The configured length is reported to user space when drop monitor configuration is queried.

Ido Schimmel committed 7 years ago

Commit 30328d41 parent 444be062 files · +17 −3Browse files

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

Unified · Split

include/uapi/linux/net_dropmon.h+1−0
@@ -79,6 +79,7 @@ enum net_dm_attr { · 78 unmodified lines
7979 NET_DM_ATTR_PAD,
8080 NET_DM_ATTR_TRUNC_LEN, /* u32 */
8181 NET_DM_ATTR_ORIG_LEN, /* u32 */
82+ NET_DM_ATTR_QUEUE_LEN, /* u32 */
8283
8384 __NET_DM_ATTR_MAX,
8485 NET_DM_ATTR_MAX = __NET_DM_ATTR_MAX - 1