Re: [PATCH net-next] net: ipv4: allocate ipv4_devconf memory for init_net

2018-12-19 Thread Tonghao Zhang
On Wed, Dec 19, 2018 at 7:09 AM David Miller wrote: > > From: Cong Wang > Date: Sun, 16 Dec 2018 11:06:39 -0800 > > > On Sun, Dec 16, 2018 at 8:24 AM wrote: > >> > >> From: Tonghao Zhang > >> > >> The devconf setting on the init_net will affect other > >> namespace when them created. For exampl

Re: [PATCH net-next] net: ipv4: allocate ipv4_devconf memory for init_net

2018-12-18 Thread David Miller
From: Cong Wang Date: Sun, 16 Dec 2018 11:06:39 -0800 > On Sun, Dec 16, 2018 at 8:24 AM wrote: >> >> From: Tonghao Zhang >> >> The devconf setting on the init_net will affect other >> namespace when them created. For example: ... > This has been a known issue for a long time. There > were seve

Re: [PATCH net-next] net: ipv4: allocate ipv4_devconf memory for init_net

2018-12-17 Thread Tonghao Zhang
On Mon, Dec 17, 2018 at 3:06 AM Cong Wang wrote: > > On Sun, Dec 16, 2018 at 8:24 AM wrote: > > > > From: Tonghao Zhang > > > > The devconf setting on the init_net will affect other > > namespace when them created. For example: > > > > $ cat /proc/sys/net/ipv4/conf/all/rp_filter > > 0 > > $ echo

Re: [PATCH net-next] net: ipv4: allocate ipv4_devconf memory for init_net

2018-12-16 Thread Cong Wang
On Sun, Dec 16, 2018 at 8:24 AM wrote: > > From: Tonghao Zhang > > The devconf setting on the init_net will affect other > namespace when them created. For example: > > $ cat /proc/sys/net/ipv4/conf/all/rp_filter > 0 > $ echo 2 > /proc/sys/net/ipv4/conf/all/rp_filter > $ cat /proc/sys/net/ipv4/co

[PATCH net-next] net: ipv4: allocate ipv4_devconf memory for init_net

2018-12-16 Thread xiangxia . m . yue
From: Tonghao Zhang The devconf setting on the init_net will affect other namespace when them created. For example: $ cat /proc/sys/net/ipv4/conf/all/rp_filter 0 $ echo 2 > /proc/sys/net/ipv4/conf/all/rp_filter $ cat /proc/sys/net/ipv4/conf/all/rp_filter 2 $ ip netns add ns100 $ ip netns exec n