]> git.baikalelectronics.ru Git - kernel.git/commit
net/rds: Add setsockopt support for SO_RDS_TRANSPORT
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 29 May 2015 21:28:08 +0000 (17:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2015 04:47:23 +0000 (21:47 -0700)
commit490c707ca2a8bb4ca8541600e39be99003ae84ab
tree7a28dad3c812ffa56b8001ee1759c6493a30d3e0
parentc4eb1a9053f6b7aee605faceca4902f38f84befa
net/rds: 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.

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