On Sun, 2013-01-27 at 18:48 -0800, Eric W. Biederman wrote:
Cong Wang [off-list ref] writes:
quoted
From: Cong Wang <redacted>
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.