* rfc: making rds-tcp netns aware
@ 2015-07-15 11:04 Sowmini Varadhan
0 siblings, 0 replies; only message in thread
From: Sowmini Varadhan @ 2015-07-15 11:04 UTC (permalink / raw)
To: netdev; +Cc: sowmini.varadhan
I am working on making rds-tcp to be netns-aware, and in addition
to a few bug fixes that I'm lining up, there's a basic issue with
the way rds-tcp sets up the listen socket that is causing problems
The RDS tcp listen endpoint is created as part of module init.
(rds_tcp_init -> rds_tcp_listen_init()). So this means that
if I create a "blue" netns, and 'modprobe rds_tcp' within that netns,
I get a kernel socket attached to the blue netns (which is good),
but then I cannot use the same technique to set up a socket
for a different netns ('modprobe rds_tcp' in that netns
will return silently, as it should).
And there's another downside to this design: the socket wont
get released till the module is unloaed, so it ends up holding
the reference on the net.
So perhaps it was not a good idea to set up the listen socket
as part of module init, but I'm trying to figure out a clean
design for setting up the listen socket.
Some uspace daemon that listens for changes to namespaces and
reacts appropriately? A separate sysctl that sets up the listen
endpoint in each namespace?
Are there other subsystems that have to handle a similar case?
I suspect that RDS-TCP is somewhat unusual here- I think most other
similar encaps protocols like vxlan etc are associated with a network
driver, so the listen endpoint is created as part of the ->ndo_open
Suggestions for other modules that have to deal with a similar
situation that I can refer to are invited..
--Sowmini
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-15 11:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-15 11:04 rfc: making rds-tcp netns aware Sowmini Varadhan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).