All of lore.kernel.org
 help / color / mirror / Atom feed
* Network Namespace ARP support
@ 2008-09-04 12:20 Eelco Chaudron
       [not found] ` <C4E59F1D.15C93%echaudron-SvgryPHmmKB+XZJcv9eMoEEOCMrvLtNR@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Eelco Chaudron @ 2008-09-04 12:20 UTC (permalink / raw)
  To: Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Hi All,

I was looking at the network namespaces implementation for ARP, and I was wondering why the struct net abstraction was done in the core neighbour functions, and not at the struct neigh_table arp_tbl level (i.e. one arp_tbl per namespace)?

One problem I could find with the current implementation is that the "struct neigh_statistics *stats" are global for all namespaces, whereas you might want to see these statistics per namespace.

It would be nice if I could get some insight in some of the design decisions, as I'm new to this area...

Thanks,


Eelco


________________________________
DISCLAIMER:
This e-mail and any attachments to it may contain confidential and proprietary material and is solely for the use of the intended recipient. Any review, use, disclosure, distribution or copying of this transmittal is prohibited except by or on behalf of the intended recipient. If you have received this transmittal in error, please notify the sender and destroy this e-mail and any attachments and all copies, whether electronic or printed.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Network Namespace ARP support
       [not found] ` <C4E59F1D.15C93%echaudron-SvgryPHmmKB+XZJcv9eMoEEOCMrvLtNR@public.gmane.org>
@ 2008-09-04 14:50   ` Daniel Lezcano
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Lezcano @ 2008-09-04 14:50 UTC (permalink / raw)
  To: Eelco Chaudron; +Cc: Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Eelco Chaudron wrote:
> Hi All,
> 
> I was looking at the network namespaces implementation for ARP, and I
> was wondering why the struct net abstraction was done in the core
> neighbour functions, and not at the struct neigh_table arp_tbl level
> (i.e. one arp_tbl per namespace)?
> 
> One problem I could find with the current implementation is that the
> "struct neigh_statistics *stats" are global for all namespaces,
> whereas you might want to see these statistics per namespace.
> 
> It would be nice if I could get some insight in some of the design
> decisions, as I'm new to this area...
> 
> Thanks,
> 

Hi Eelco,

In order to not waste memory duplicating redundant information with the 
tables, the neighbour per namespace has be made in the core neighbour 
functions which is the common code between the different protocols ipv4 
and ipv6.

As you mention, the statistics are in the table and because there is a 
single table there is a no statistics per namespace. Making this 
resource per namespace will consist in moving the stats structure to the 
network namespace structure, I guess, and not creating multiple neigh 
tables.

This decision has been made for the socket hash tables and for the 
routing cache table too, AFAIR this is for avoiding memory fragmentation 
and cache misses.

   -- Daniel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-04 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-04 12:20 Network Namespace ARP support Eelco Chaudron
     [not found] ` <C4E59F1D.15C93%echaudron-SvgryPHmmKB+XZJcv9eMoEEOCMrvLtNR@public.gmane.org>
2008-09-04 14:50   ` Daniel Lezcano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.