alistair23-linux/drivers/atm
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
..
.gitignore
adummy.c
ambassador.c drivers/atm/ambassador: kill uninit'd var warning, and fix bug 2007-07-17 16:18:01 -04:00
ambassador.h
atmsar11.data
atmsar11.regions
atmsar11.start
atmtcp.c
eni.c [ATM]: [drivers] ioremap balanced with iounmap 2007-07-18 01:46:55 -07:00
eni.h
firestream.c [ATM]: [drivers] ioremap balanced with iounmap 2007-07-18 01:46:55 -07:00
firestream.h
fore200e.c [ATM]: fore200e_param_bs_queue() must be __devinit 2007-08-13 22:51:58 -07:00
fore200e.h
fore200e_firmware_copyright
fore200e_mkfirm.c
he.c
he.h
horizon.c
horizon.h
idt77105.c
idt77105.h
idt77252.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
idt77252.h [ATM]: Use mutex instead of binary semaphore in idt77252 driver. 2007-05-24 16:36:45 -07:00
idt77252_tables.h
iphase.c [ATM] drivers/atm/iphase.c: mostly kmalloc + memset conversion to kzalloc 2007-08-13 22:52:13 -07:00
iphase.h
Kconfig Add some help texts to recently-introduced kconfig items 2007-08-18 09:52:50 -07:00
lanai.c [ATM]: Clean up duplicate includes in drivers/atm/ 2007-08-13 22:52:00 -07:00
Makefile
midway.h
nicstar.c
nicstar.h
nicstarmac.c [ATM]: [nicstar] Replace C code with call to ARRAY_SIZE() macro. 2007-07-18 01:46:53 -07:00
nicstarmac.copyright
pca200e.data
pca200e_ecd.data
sba200e_ecd.data
suni.c
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c drivers/*: mark variables with uninitialized_var() 2007-07-17 16:23:19 -04:00
zatm.h
zeprom.h