udp: Move the udp sysctl to namespace.
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Wed, 14 Mar 2018 04:57:16 +0000 (21:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 16:03:30 +0000 (12:03 -0400)
commit1e8029515816f771b9b3751f24f19fe6df4c72ae
tree652e061c917c60c76b5e81abcad944cdfdaaee43
parent859844e5c285c42e8f2a273d7ee3c0c0df6a074a
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>
include/net/netns/ipv4.h
net/ipv4/sysctl_net_ipv4.c
net/ipv4/udp.c
net/ipv6/udp.c