linux-sg2042/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 [ATM]: Ignore generated file pca200e_ecd.bin2 2006-12-11 14:34:35 -08:00
Kconfig Add some help texts to recently-introduced kconfig items 2007-08-18 09:52:50 -07:00
Makefile [ATM]: Add CPPFLAGS to byteorder.h check 2006-12-06 18:38:42 -08:00
adummy.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
ambassador.c drivers/atm/ambassador: kill uninit'd var warning, and fix bug 2007-07-17 16:18:01 -04:00
ambassador.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
atmsar11.data Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atmsar11.regions Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atmsar11.start Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atmtcp.c [NET]: SPIN_LOCK_UNLOCKED cleanup in drivers/atm, net 2007-04-26 01:37:44 -07:00
eni.c [ATM]: [drivers] ioremap balanced with iounmap 2007-07-18 01:46:55 -07:00
eni.h [ATM] ENI: Convert to struct timeval to ktime_t. 2007-04-25 22:23:46 -07:00
firestream.c [ATM]: [drivers] ioremap balanced with iounmap 2007-07-18 01:46:55 -07:00
firestream.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fore200e.c [ATM]: fore200e_param_bs_queue() must be __devinit 2007-08-13 22:51:58 -07:00
fore200e.h [ATM]: Use mutex instead of binary semaphore in FORE Systems 200E-series driver 2007-04-26 01:41:49 -07:00
fore200e_firmware_copyright Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fore200e_mkfirm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
he.c [SK_BUFF]: Convert skb->tail to sk_buff_data_t 2007-04-25 22:26:28 -07:00
he.h [ATM]: [he] Use the DMA_32BIT_MASK constant from dma-mapping.h 2005-04-24 18:55:35 -07:00
horizon.c [PATCH] horizon.c: missing __devinit 2007-01-23 11:09:49 -08:00
horizon.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
idt77105.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
idt77105.h [ATM]: [idt77105] should be __devinit not __init 2006-06-29 16:58:12 -07:00
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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iphase.c [ATM] drivers/atm/iphase.c: mostly kmalloc + memset conversion to kzalloc 2007-08-13 22:52:13 -07:00
iphase.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
lanai.c [ATM]: Clean up duplicate includes in drivers/atm/ 2007-08-13 22:52:00 -07:00
midway.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nicstar.c [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} 2007-04-25 22:28:23 -07:00
nicstar.h [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
nicstarmac.c [ATM]: [nicstar] Replace C code with call to ARRAY_SIZE() macro. 2007-07-18 01:46:53 -07:00
nicstarmac.copyright Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pca200e.data Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pca200e_ecd.data Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sba200e_ecd.data Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
suni.c [ATM]: [suni] change suni_init to __devinit 2006-06-29 16:58:17 -07:00
suni.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tonga.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
uPD98401.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
uPD98402.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
uPD98402.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zatm.c drivers/*: mark variables with uninitialized_var() 2007-07-17 16:23:19 -04:00
zatm.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
zeprom.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00