discriminate inet6 addresses per namespace
Subsystems (2)
David Miller
maintainerFrom: Daniel Lezcano <[email protected]>
Date: Thu, 10 Jan 2008 19:02:40 +0100
Quoted 8 lines
The
inet6_addr_lsthash table contains the configured addresses for the ipv6 protocol on the system.With the network namespace, we have 2 solutions:
* make this hash table per namespace
* keep a global hash table and discard addresses not belonging to the network namespace
Quoted 7 lines
This patchset use the second method. It will use less memory, but can be a less efficient in case of a lot of containers.
The code is changed to have the network namespace parameter for the different functions, if we change our mind during an intense usage of the network namespace, the switch to a hash table per namespace is really easy to do and will not change the new api again.
All 5 patches applied, thanks.