diff options
author | Ido Schimmel <idosch@mellanox.com> | 2019-08-11 10:35:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-11 20:53:30 +0300 |
commit | 30328d46af593dcf24582f2a431d84ea0cf4bdef (patch) | |
tree | 644c9157beab95fec7bfa3900732a83602f319d2 /include/uapi/linux | |
parent | 444be061d012f1a8ebf95292a648a4e0e2afa83f (diff) | |
download | linux-30328d46af593dcf24582f2a431d84ea0cf4bdef.tar.xz |
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.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/net_dropmon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/net_dropmon.h b/include/uapi/linux/net_dropmon.h index 3b765a8428b5..1d0bdb1ba954 100644 --- a/include/uapi/linux/net_dropmon.h +++ b/include/uapi/linux/net_dropmon.h @@ -79,6 +79,7 @@ enum net_dm_attr { NET_DM_ATTR_PAD, NET_DM_ATTR_TRUNC_LEN, /* u32 */ NET_DM_ATTR_ORIG_LEN, /* u32 */ + NET_DM_ATTR_QUEUE_LEN, /* u32 */ __NET_DM_ATTR_MAX, NET_DM_ATTR_MAX = __NET_DM_ATTR_MAX - 1 |