Subject: Re: [Patch net-next] pktgen: use the net namespace of current process instead of init_net

From: Cong Wang <[email-masked]>
Date: Mon, 28 Jan 2013 10:57:32 +0800

On Sun, 2013-01-27 at 18:48 -0800, Eric W. Biederman wrote:
> Cong Wang <[email-masked]> writes:
> 
> > From: Cong Wang <[email-masked]>
> >
> > Use the net namespace of the current process loading
> > pktgen module.
> 
> Why not add proper support for multiple network namespaces?
> 
> It looks like the proc files could be created in each network namespace
> and be controlled from there.

Hmm, I didn't think much about this. You are right... we could probably
make these proc files per-net.

> 
> Your patch below looks like it could have some unintended effects
> if pktgen was loaded automatically or compiled into the kernel.
> 

In this case, 'current' should be the init process whose net namespace
is init_net, no?

Thanks.