aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns/ipv4.h
diff options
context:
space:
mode:
authorTonghao Zhang <xiangxia.m.yue@gmail.com>2018-03-13 21:57:16 -0700
committerDavid S. Miller <davem@davemloft.net>2018-03-16 12:03:30 -0400
commit1e8029515816f771b9b3751f24f19fe6df4c72ae (patch)
tree652e061c917c60c76b5e81abcad944cdfdaaee43 /include/net/netns/ipv4.h
parentMerge branch 'net-ipv6-Address-checks-need-to-consider-the-L3-domain' (diff)
downloadlinux-dev-1e8029515816f771b9b3751f24f19fe6df4c72ae.tar.xz
linux-dev-1e8029515816f771b9b3751f24f19fe6df4c72ae.zip
udp: Move the udp sysctl to namespace.
This patch moves the udp_rmem_min, udp_wmem_min to namespace and init the udp_l3mdev_accept explicitly. The udp_rmem_min/udp_wmem_min affect udp rx/tx queue, with this patch namespaces can set them differently. Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns/ipv4.h')
-rw-r--r--include/net/netns/ipv4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h
index 3a970e429ab6..382bfd7583cf 100644
--- a/include/net/netns/ipv4.h
+++ b/include/net/netns/ipv4.h
@@ -168,6 +168,9 @@ struct netns_ipv4 {
atomic_t tfo_active_disable_times;
unsigned long tfo_active_disable_stamp;
+ int sysctl_udp_wmem_min;
+ int sysctl_udp_rmem_min;
+
#ifdef CONFIG_NET_L3_MASTER_DEV
int sysctl_udp_l3mdev_accept;
#endif