mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 01:48:58 -04:00
Add a new sysctl to control how often a queue reselection can happen even if a flow has a persistent queue of skbs in a Qdisc or NIC queue. A value of zero means the feature is disabled. Default is 1000 (1 second). This sysctl is used in the following patch. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Neal Cardwell <ncardwell@google.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20251013152234.842065-4-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
31 lines
564 B
C
31 lines
564 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NETNS_CORE_H__
|
|
#define __NETNS_CORE_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct ctl_table_header;
|
|
struct prot_inuse;
|
|
struct cpumask;
|
|
|
|
struct netns_core {
|
|
/* core sysctls */
|
|
struct ctl_table_header *sysctl_hdr;
|
|
|
|
int sysctl_somaxconn;
|
|
int sysctl_txq_reselection;
|
|
int sysctl_optmem_max;
|
|
u8 sysctl_txrehash;
|
|
u8 sysctl_tstamp_allow_data;
|
|
|
|
#ifdef CONFIG_PROC_FS
|
|
struct prot_inuse __percpu *prot_inuse;
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_RPS) && IS_ENABLED(CONFIG_SYSCTL)
|
|
struct cpumask *rps_default_mask;
|
|
#endif
|
|
};
|
|
|
|
#endif
|