diff options
author | Eric W. Biederman <ebiederm@aristanetworks.com> | 2009-11-08 00:53:51 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-08 00:53:51 -0800 |
commit | 81adee47dfb608df3ad0b91d230fb3cef75f0060 (patch) | |
tree | e9d7a41872f84c1395e21915e5f92c05ab872e69 /net/netlink | |
parent | f7a3a1d8affe563846fc17f0e7c0cc1500190c57 (diff) | |
download | kernel-common-81adee47dfb608df3ad0b91d230fb3cef75f0060.tar.gz kernel-common-81adee47dfb608df3ad0b91d230fb3cef75f0060.tar.bz2 kernel-common-81adee47dfb608df3ad0b91d230fb3cef75f0060.zip |
net: Support specifying the network namespace upon device creation.
There is no good reason to not support userspace specifying the
network namespace during device creation, and it makes it easier
to create a network device and pass it to a child network namespace
with a well known name.
We have to be careful to ensure that the target network namespace
for the new device exists through the life of the call. To keep
that logic clear I have factored out the network namespace grabbing
logic into rtnl_link_get_net.
In addtion we need to continue to pass the source network namespace
to the rtnl_link_ops.newlink method so that we can find the base
device source network namespace.
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Diffstat (limited to 'net/netlink')
0 files changed, 0 insertions, 0 deletions