mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-21 22:32:45 +00:00
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>
This commit is contained in:
parent
444be061d0
commit
30328d46af
2 changed files with 17 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue