android_kernel_xiaomi_sm8350/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
amiflop.c
ataflop.c
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cciss.c drivers/block/cciss.c: kmalloc + memset conversion to kzalloc 2007-08-11 22:34:48 +02:00
cciss.h
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
cryptoloop.c
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
ida_cmd.h
ida_ioctl.h
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
Makefile
nbd.c
pktcdvd.c
ps2esdi.c
ps3disk.c
rd.c
smart1,2.h
sunvdc.c [SUNVDC]: Use slice 0xff on VD_DISK_TYPE_DISK. 2007-08-26 18:49:07 -07:00
swim3.c
sx8.c
ub.c
umem.c
viodasd.c
xd.c
xd.h
xen-blkfront.c
xsysace.c sysace: HDIO_GETGEO has it's own method for ages 2007-08-11 22:34:48 +02:00
z2ram.c