linux/net/atm
Eric W. Biederman 426b5303eb [NETNS]: Modify the neighbour table code so it handles multiple network namespaces
I'm actually surprised at how much was involved.  At first glance it
appears that the neighbour table data structures are already split by
network device so all that should be needed is to modify the user
interface commands to filter the set of neighbours by the network
namespace of their devices.

However a couple things turned up while I was reading through the
code.  The proxy neighbour table allows entries with no network
device, and the neighbour parms are per network device (except for the
defaults) so they now need a per network namespace default.

So I updated the two structures (which surprised me) with their very
own network namespace parameter.  Updated the relevant lookup and
destroy routines with a network namespace parameter and modified the
code that interacts with users to filter out neighbour table entries
for devices of other namespaces.

I'm a little concerned that we can modify and display the global table
configuration and from all network namespaces.  But this appears good
enough for now.

I keep thinking modifying the neighbour table to have per network
namespace instances of each table type would should be cleaner.  The
hash table is already dynamically sized so there are it is not a
limiter.  The default parameter would be straight forward to take care
of.  However when I look at the how the network table is built and
used I still find some assumptions that there is only a single
neighbour table for each type of table in the kernel.  The netlink
operations, neigh_seq_start, the non-core network users that call
neigh_lookup.  So while it might be doable it would require more
refactoring than my current approach of just doing a little extra
filtering in the code.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 15:00:03 -08:00
..
addr.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
addr.h [ATM]: add support for LECS addresses learned from network 2005-10-06 22:19:28 -07:00
atm_misc.c [ATM]: atm_pcr_goal() doesn't modify its argument's contents -- mark it as const 2005-11-29 16:13:55 -08:00
atm_sysfs.c Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00
br2684.c [BR2684]: get rid of broken header code. 2007-10-17 19:39:22 -07:00
clip.c [NETNS]: Modify the neighbour table code so it handles multiple network namespaces 2008-01-28 15:00:03 -08:00
common.c [NET]: Name magic constants in sock_wake_async() 2008-01-28 14:55:03 -08:00
common.h [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
ioctl.c [NET]: Introduce SIOCGSTAMPNS ioctl to get timestamps with nanosec resolution 2007-04-25 22:24:04 -07:00
Kconfig [ATM]: Trivial spelling fix patch for net/Kconfig 2005-07-19 13:56:53 -07:00
lec_arpc.h [ATM]: [lec] add reference counting to lec_arp entries 2006-09-29 17:16:48 -07:00
lec.c [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00
lec.h [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
Makefile [ATM]: Kill ipcommon.[ch] 2006-12-02 21:32:08 -08:00
mpc.c [ATM]: Check IP header validity in mpc_send_packet 2008-01-09 03:51:59 -08:00
mpc.h [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
mpoa_caches.c [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
mpoa_caches.h [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
mpoa_proc.c [NET]: Make all initialized struct seq_operations const. 2007-07-10 23:07:31 -07:00
pppoatm.c [ATM]: Replace DPRINTK() with pr_debug(). 2007-10-10 16:48:27 -07:00
proc.c [NET]: all net/ cleanup with ARRAY_SIZE 2007-10-10 16:51:26 -07:00
protocols.h
pvc.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
raw.c [ATM]: Replace DPRINTK() with pr_debug(). 2007-10-10 16:48:27 -07:00
resources.c [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
resources.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
signaling.c [NET]: sparse warning fixes 2007-10-10 16:54:48 -07:00
signaling.h [NET] ATM: Fix whitespace errors. 2007-02-10 23:19:16 -08:00
svc.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00