alistair23-linux/drivers/net/wireless
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
..
bcm43xx [PATCH] bcm43xx: Correct printk with PFX before KERN_ 2007-10-02 17:04:22 -04:00
hostap [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
libertas Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
prism54 Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 2007-07-16 17:48:54 -07:00
zd1211rw [PATCH] zd1211rw: fix filter for PSPOLL frames 2007-08-06 15:06:03 -04:00
airo.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
airo.h
airo_cs.c [PATCH] pcmcia: conf.ConfigBase and conf.Present consolidation 2006-12-04 20:12:02 -05:00
airport.c Fix occurrences of "the the " 2007-05-09 08:57:56 +02:00
arlan-main.c [ETH]: Make eth_type_trans set skb->dev like the other *_type_trans 2007-04-25 22:24:30 -07:00
arlan-proc.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
arlan.h
atmel.c [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} 2007-04-25 22:28:23 -07:00
atmel.h
atmel_cs.c [PATCH] pcmcia: conf.ConfigBase and conf.Present consolidation 2006-12-04 20:12:02 -05:00
atmel_pci.c [PATCH] atmel: whitespace cleanup 2006-12-02 00:11:57 -05:00
hermes.c
hermes.h
hermes_rid.h
i82586.h
i82593.h
ipw2100.c [PATCH] ipw2100: Fix iwpriv set_power error 2007-07-17 21:56:17 -04:00
ipw2100.h WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
ipw2200.c [PATCH] Update version ipw2200 stamp to 1.2.2 2007-07-17 21:56:18 -04:00
ipw2200.h WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
Kconfig [PATCH] Add rtl8187 wireless driver 2007-07-08 22:16:36 -04:00
Makefile [PATCH] libertas: build problems when partially modular 2007-09-30 20:35:39 -04:00
netwave_cs.c [ETH]: Make eth_type_trans set skb->dev like the other *_type_trans 2007-04-25 22:24:30 -07:00
orinoco.c [SK_BUFF]: Introduce skb_mac_header() 2007-04-25 22:24:41 -07:00
orinoco.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
orinoco_cs.c Network: convert network devices to use struct device instead of class_device 2007-02-07 10:37:11 -08:00
orinoco_nortel.c
orinoco_pci.c
orinoco_pci.h [PATCH] wireless: clean-up some "check return code" warnings 2006-12-02 00:12:03 -05:00
orinoco_plx.c
orinoco_tmd.c
ray_cs.c [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} 2007-04-25 22:28:23 -07:00
ray_cs.h
rayctl.h
rtl818x.h [PATCH] rtl8187: add header blocks and indicate origin of magic values 2007-07-08 22:16:37 -04:00
rtl8187.h [MAC80211]: improved short preamble handling 2007-10-10 16:47:38 -07:00
rtl8187_dev.c [MAC80211]: remove IEEE80211_HW_DATA_NULLFUNC_ACK 2007-10-10 16:48:42 -07:00
rtl8187_rtl8225.c [PATCH] rtl8187: fix endianness issue in rtl8225 register writing 2007-07-10 13:51:38 -04:00
rtl8187_rtl8225.h [PATCH] rtl8187: add header blocks and indicate origin of magic values 2007-07-08 22:16:37 -04:00
spectrum_cs.c Network: convert network devices to use struct device instead of class_device 2007-02-07 10:37:11 -08:00
strip.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
wavelan.c [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} 2007-04-25 22:28:23 -07:00
wavelan.h
wavelan.p.h [PATCH] wavelan: Use ARRAY_SIZE macro when appropriate 2007-02-14 15:45:04 -05:00
wavelan_cs.c Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
wavelan_cs.h
wavelan_cs.p.h Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
wl3501.h
wl3501_cs.c [NET]: Kill eth_copy_and_sum(). 2007-07-10 22:08:12 -07:00
zd1201.c [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} 2007-04-25 22:28:23 -07:00
zd1201.h