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)
commit30328d46af593dcf24582f2a431d84ea0cf4bdef
tree644c9157beab95fec7bfa3900732a83602f319d2
parent444be061d012f1a8ebf95292a648a4e0e2afa83f
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