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

2019-01-17 Thread Tonghao Zhang
On Fri, Jan 18, 2019 at 2:00 AM Cong Wang wrote: > > On Thu, Jan 17, 2019 at 3:12 AM Tonghao Zhang > wrote: > > > > so, we should support configuration for user, inherit _init_net_ value or > > not ? > > I already told you to introduce a new proc to control this behavior, > you ignored my advic

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

2019-01-17 Thread Cong Wang
On Thu, Jan 17, 2019 at 3:12 AM Tonghao Zhang wrote: > > so, we should support configuration for user, inherit _init_net_ value or not > ? I already told you to introduce a new proc to control this behavior, you ignored my advice... :( I will send out a patch then, as I know what I want. :) Th

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

2019-01-17 Thread Tonghao Zhang
On Thu, Jan 17, 2019 at 4:25 PM Nicolas Dichtel wrote: > > Le 16/01/2019 à 09:53, xiangxia.m@gmail.com a écrit : > > 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_fil

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

2019-01-17 Thread Nicolas Dichtel
Le 16/01/2019 à 09:53, xiangxia.m@gmail.com a écrit : > 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 /pr

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

2019-01-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