]> git.baikalelectronics.ru Git - kernel.git/commit
drop_monitor: Make drop queue length configurable
authorIdo Schimmel <idosch@mellanox.com>
Sun, 11 Aug 2019 07:35:54 +0000 (10:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Aug 2019 17:53:30 +0000 (10:53 -0700)
commitbfee97acbe9fb5cbbd0f21656d7c688b758a1f90
tree644c9157beab95fec7bfa3900732a83602f319d2
parentee5ffbf079676801fa0c6465387be62d78ccadc6
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>
include/uapi/linux/net_dropmon.h
net/core/drop_monitor.c