android_kernel_samsung_msm8976/net/core
Eric W. Biederman ce286d3273 [NET]: Implement network device movement between namespaces
This patch introduces NETIF_F_NETNS_LOCAL a flag to indicate
a network device is local to a single network namespace and
should never be moved.  Useful for pseudo devices that we
need an instance in each network namespace (like the loopback
device) and for any device we find that cannot handle multiple
network namespaces so we may trap them in the initial network
namespace.

This patch introduces the function dev_change_net_namespace
a function used to move a network device from one network
namespace to another.  To the network device nothing
special appears to happen, to the components of the network
stack it appears as if the network device was unregistered
in the network namespace it is in, and a new device
was registered in the network namespace the device
was moved to.

This patch sets up a namespace device destructor that
upon the exit of a network namespace moves all of the
movable network devices  to the initial network namespace
so they are not lost.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:49:12 -07:00
..
datagram.c [NET]: Do not dereference iov if length is zero 2007-09-11 10:29:07 +02:00
dev.c [NET]: Implement network device movement between namespaces 2007-10-10 16:49:12 -07:00
dev_mcast.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
dst.c [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
ethtool.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
fib_rules.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
filter.c [SK_BUFF]: Convert skb->tail to sk_buff_data_t 2007-04-25 22:26:28 -07:00
flow.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
gen_estimator.c [NET]: gen_estimator deadlock fix 2007-07-18 01:46:50 -07:00
gen_stats.c [SK_BUFF]: Convert skb->tail to sk_buff_data_t 2007-04-25 22:26:28 -07:00
iovec.c
kmap_skb.h
link_watch.c [NET] link_watch: Always schedule urgent events 2007-05-10 23:45:28 -07:00
Makefile [NET]: Basic network namespace infrastructure. 2007-10-10 16:49:03 -07:00
neighbour.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
net-sysfs.c [NET]: Make NAPI polling independent of struct net_device objects. 2007-10-10 16:47:45 -07:00
net_namespace.c [NET]: Basic network namespace infrastructure. 2007-10-10 16:49:03 -07:00
netevent.c [NET]: net/core/netevent.c should #include <net/netevent.h> 2007-07-05 17:40:27 -07:00
netpoll.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
pktgen.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
request_sock.c
rtnetlink.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
scm.c O_CLOEXEC for SCM_RIGHTS 2007-07-16 09:05:45 -07:00
skbuff.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
sock.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
stream.c
sysctl_net_core.c [XFRM]: Allow XFRM_ACQ_EXPIRES to be tunable via sysctl. 2007-05-31 01:23:23 -07:00
user_dma.c [NET]: Revert sk_buff walker cleanups. 2007-04-27 15:21:23 -07:00
utils.c [NET] net/core/utils: fix sparse warning 2007-08-07 18:02:43 -07:00