kernel-fxtec-pro1x/drivers/block
Eric W. Biederman 881d966b48 [NET]: Make the device list and device lookups per namespace.
This patch makes most of the generic device layer network
namespace safe.  This patch makes dev_base_head a
network namespace variable, and then it picks up
a few associated variables.  The functions:
dev_getbyhwaddr
dev_getfirsthwbytype
dev_get_by_flags
dev_get_by_name
__dev_get_by_name
dev_get_by_index
__dev_get_by_index
dev_ioctl
dev_ethtool
dev_load
wireless_process_ioctl

were modified to take a network namespace argument, and
deal with it.

vlan_ioctl_set and brioctl_set were modified so their
hooks will receive a network namespace argument.

So basically anthing in the core of the network stack that was
affected to by the change of dev_base was modified to handle
multiple network namespaces.  The rest of the network stack was
simply modified to explicitly use &init_net the initial network
namespace.  This can be fixed when those components of the network
stack are modified to handle multiple network namespaces.

For now the ifindex generator is left global.

Fundametally ifindex numbers are per namespace, or else
we will have corner case problems with migration when
we get that far.

At the same time there are assumptions in the network stack
that the ifindex of a network device won't change.  Making
the ifindex number global seems a good compromise until
the network stack can cope with ifindex changes when
you change namespaces, and the like.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:49:10 -07:00
..
aoe [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
paride [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
amiflop.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ataflop.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
cciss.c drivers/block/cciss.c: kmalloc + memset conversion to kzalloc 2007-08-11 22:34:48 +02:00
cciss.h [PATCH] cciss: add support for 1024 logical volumes 2006-12-07 08:39:30 -08:00
cciss_cmd.h [PATCH] cciss: add support for 1024 logical volumes 2006-12-07 08:39:30 -08:00
cciss_scsi.c [SCSI] cciss: convert to use the data buffer accessors 2007-05-29 11:22:13 -05:00
cciss_scsi.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpqarray.c drivers/block/cpqarray.c: better error handling and kmalloc + memset conversion to k[cz]alloc 2007-08-11 22:34:48 +02:00
cpqarray.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cryptoloop.c [BLOCK] cryptoloop: Use block ciphers where applicable 2006-09-21 11:45:53 +10:00
DAC960.c Fix "Fix DAC960 driver on machines which don't support 64-bit DMA" 2007-09-19 11:24:16 -07:00
DAC960.h Fix DAC960 driver on machines which don't support 64-bit DMA 2007-09-11 17:21:19 -07:00
floppy.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ida_cmd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ida_ioctl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig Introduce CONFIG_CHECK_SIGNATURE 2007-08-22 19:52:45 -07:00
lguest_blk.c Enable partitions for lguest block device 2007-08-18 09:45:51 -07:00
loop.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
Makefile Make lguest compile with CONFIG_BLOCK=n and CONFIG_NET=n 2007-07-29 17:37:45 -07:00
nbd.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
pktcdvd.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ps2esdi.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ps3disk.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
rd.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
smart1,2.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sunvdc.c [SUNVDC]: Use slice 0xff on VD_DISK_TYPE_DISK. 2007-08-26 18:49:07 -07:00
swim3.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
sx8.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ub.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
umem.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
viodasd.c Clean up duplicate includes in drivers/block/ 2007-08-11 22:34:48 +02:00
xd.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xd.h [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xen-blkfront.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xsysace.c sysace: HDIO_GETGEO has it's own method for ages 2007-08-11 22:34:48 +02:00
z2ram.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00