]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Add setsockopt support for SO_RDS_TRANSPORT
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Tue, 2 Jun 2015 00:26:29 +0000 (20:26 -0400)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 8 Jul 2015 21:00:21 +0000 (14:00 -0700)
commitde45f971ec2520981d7c4c4488a41b011a9d6f38
treef411c8c5be9ae4c81fb6124db2b1c954584d9f3b
parentac7ca8d5865b28e12bf96311e0794612611f7a23
Add setsockopt support for SO_RDS_TRANSPORT

An application may deterministically attach the underlying transport for
a PF_RDS socket by invoking setsockopt(2) with the SO_RDS_TRANSPORT
option at the SOL_RDS level. The integer argument to setsockopt must be
one of the RDS_TRANS_* transport types, e.g., RDS_TRANS_TCP. The option
must be specified before invoking bind(2) on the socket, and may only
be used once on the socket. An attempt to set the option on a bound
socket, or to invoke the option after a successful SO_RDS_TRANSPORT
attachment, will return EOPNOTSUPP.

Orabug: 21061146

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
net/rds/af_rds.c
net/rds/bind.c
net/rds/rds.h
net/rds/transport.c