linux_dsm_epyc7002/drivers/net/wan
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
..
lmc PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
.gitignore gitignore: misc files 2006-01-01 22:21:50 +01:00
c101.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
cosa.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
cosa.h
cycx_drv.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
cycx_main.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
cycx_x25.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
dlci.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
dscc4.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
farsync.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
farsync.h
hd6457x.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
hd64570.h
hd64572.h
hdlc_cisco.c Generic HDLC sparse annotations 2007-04-28 11:01:07 -04:00
hdlc_fr.c [WAN] drivers/net/wan/hdlc_fr.c: kmalloc + memset conversion to kzalloc 2007-08-13 22:52:11 -07:00
hdlc_ppp.c [HDLC] Fix dev->header_cache_update having a random value. 2007-03-02 20:37:37 -08:00
hdlc_raw_eth.c [PATCH] Modularize generic HDLC 2006-09-26 17:40:24 -04:00
hdlc_raw.c [HDLC] Fix dev->header_cache_update having a random value. 2007-03-02 20:37:37 -08:00
hdlc_x25.c [HDLC] Fix dev->header_cache_update having a random value. 2007-03-02 20:37:37 -08:00
hdlc.c [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
hostess_sv11.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
Kconfig Introduce CONFIG_VIRT_TO_BUS 2007-07-16 09:05:42 -07:00
lapbether.c [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
Makefile PC300too alternative WAN driver 2007-02-05 16:58:51 -05:00
n2.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
pc300_drv.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
pc300_tty.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
pc300-falc-lh.h
pc300.h [PATCH] git-netdev-all: pc300_tty build fix 2006-09-27 16:18:24 -04:00
pc300too.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
pci200syn.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
sbni.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
sbni.h
sdla.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
sealevel.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
syncppp.c [NET]: Make packet reception network namespace safe 2007-10-10 16:49:08 -07:00
wanxl.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S
x25_asy.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
x25_asy.h
z85230.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
z85230.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00