Cong Wang [off-list ref] writes:
On Sun, 2013-01-27 at 18:48 -0800, Eric W. Biederman wrote:
quoted
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.
quoted
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?
If it is a kernel thread that decided to load the module. If it
something else who knows. To my knowledge there are no guarantees
and I'm not particularly interested in having to worry about current
making sense in a module.
Eric