summaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorAkhmat Karakotov <hmukos@yandex-team.ru>2022-01-31 16:31:21 +0300
committerDavid S. Miller <davem@davemloft.net>2022-01-31 15:05:24 +0000
commite187013abeb4c2a7ec8a4bb978844c7e92a1a6ec (patch)
treef5514fabb36ce2897eeb1db3f6f8d6f7d0357d64 /include/net/netns
parent678dfd5280341d877ca646499bfdc82a3d8b4356 (diff)
downloadlinux-e187013abeb4c2a7ec8a4bb978844c7e92a1a6ec.tar.bz2
txhash: Make rethinking txhash behavior configurable via sysctl
Add a per ns sysctl that controls the txhash rethink behavior: net.core.txrehash. When enabled, the same behavior is retained, when disabled, rethink is not performed. Sysctl is enabled by default. Signed-off-by: Akhmat Karakotov <hmukos@yandex-team.ru> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/core.h b/include/net/netns/core.h
index 552bc25b1933..388244e315e7 100644
--- a/include/net/netns/core.h
+++ b/include/net/netns/core.h
@@ -10,6 +10,7 @@ struct netns_core {
struct ctl_table_header *sysctl_hdr;
int sysctl_somaxconn;
+ u8 sysctl_txrehash;
#ifdef CONFIG_PROC_FS
struct prot_inuse __percpu *prot_inuse;