]> 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)
commit6359a3c3ae4d304273c51e67e5eb9ce1517425b8
tree644c9157beab95fec7bfa3900732a83602f319d2
parentd5feae097a2c1514b2571c1d2aa7e2a7766cd93d
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