]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS-TCP: Support multiple RDS-TCP listen endpoints, one per netns.
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 28 Aug 2015 14:09:04 +0000 (10:09 -0400)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Fri, 4 Sep 2015 02:07:55 +0000 (19:07 -0700)
commit5840caba1f0c98c0fae75ab420e9eef6b239544b
treecdf32f67436ee6339b14eda03dfe668f236cec9b
parent2a4426bf6efa8131d4ada583a56031652b7ce215
RDS-TCP: Support multiple RDS-TCP listen endpoints, one per netns.

Register pernet subsys init/stop functions that will set up
and tear down per-net RDS-TCP listen endpoints. Unregister
pernet subusys functions on 'modprobe -r' to clean up these
end points.

Enable keepalive on both accept and connect socket endpoints.
The keepalive timer expiration will ensure that client socket
endpoints will be removed as appropriate from the netns when
an interface is removed from a namespace.

Register a device notifier callback that will clean up all
sockets (and thus avoid the need to wait for keepalive timeout)
when the loopback device is unregistered from the netns indicating
that the netns is getting deleted.

Backport of upstream commit: 467fa15356acfb7b2efa38839c3e76caa4e6e0ea

Orabug: 21437445

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c
net/rds/tcp.h
net/rds/tcp_connect.c
net/rds/tcp_listen.c