Thread (10 messages) flat view 10 messages, 5 authors, 2010-09-24

Re: [PATCH 7/8] net: Allow setting the network namespace by fd

From: jamal <hidden>
Date: 2010-09-24 11:51:24
Also in: linux-fsdevel, lkml, netfilter-devel

Possibly related (same subject, not in this thread)

On Thu, 2010-09-23 at 16:58 +0200, David Lamparter wrote:
migrating route table entries makes no sense because
a) they refer to devices and configuration that does not exist in the
   target namespace; they only make sense within their netns context
b) they are purely virtual and you get the same result from deleting and
   recreating them.

Network devices are special because they may have something attached to
them, be it hardware or some daemon.
Routes functionally reside on top of netdevices, point to nexthop
neighbors across these netdevices etc. Underlying assumption is you take
care of that dependency when migrating.
We are talking about FIB entries here not the route cache; moving a few
pointers within the kernel is a hell lot faster than recreating a subset
of BGP entries from user space. 

Eric, I didnt follow the exposed-races arguement: Why would it involve
more than just some basic locking only while you change the struct net
pointer to the new namespace for these sub-subsystems?

cheers,
jamal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help