aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorSowmini Varadhan <sowmini.varadhan@oracle.com>2016-07-14 06:51:04 -0400
committerDavid S. Miller <davem@davemloft.net>2016-07-15 14:36:58 -0400
commitd67214a29bc8be3216849215aa4fdca057bd8119 (patch)
tree2a02e645b68e47e6a74028b132f3afe7051ed5b5 /Documentation/networking
parent5916e2c1554f3e36f770401c989c3c7fadf619ca (diff)
Documentation: RDS: updates for SO_RDS_TRANSPORT socket option
Update the documentation to describe the changes added by commit 8ba38460f363 ("net/rds Add getsockopt support for SO_RDS_TRANSPORT") Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/rds.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/Documentation/networking/rds.txt b/Documentation/networking/rds.txt
index 9d219d856d46..1366e1114d55 100644
--- a/Documentation/networking/rds.txt
+++ b/Documentation/networking/rds.txt
@@ -85,7 +85,8 @@ Socket Interface
85 85
86 bind(fd, &sockaddr_in, ...) 86 bind(fd, &sockaddr_in, ...)
87 This binds the socket to a local IP address and port, and a 87 This binds the socket to a local IP address and port, and a
88 transport. 88 transport, if one has not already been selected via the
89 SO_RDS_TRANSPORT socket option
89 90
90 sendmsg(fd, ...) 91 sendmsg(fd, ...)
91 Sends a message to the indicated recipient. The kernel will 92 Sends a message to the indicated recipient. The kernel will
@@ -146,6 +147,20 @@ Socket Interface
146 operation. In this case, it would use RDS_CANCEL_SENT_TO to 147 operation. In this case, it would use RDS_CANCEL_SENT_TO to
147 nuke any pending messages. 148 nuke any pending messages.
148 149
150 setsockopt(fd, SOL_RDS, SO_RDS_TRANSPORT, (int *)&transport ..)
151 getsockopt(fd, SOL_RDS, SO_RDS_TRANSPORT, (int *)&transport ..)
152 Set or read an integer defining the underlying
153 encapsulating transport to be used for RDS packets on the
154 socket. When setting the option, integer argument may be
155 one of RDS_TRANS_TCP or RDS_TRANS_IB. When retrieving the
156 value, RDS_TRANS_NONE will be returned on an unbound socket.
157 This socket option may only be set exactly once on the socket,
158 prior to binding it via the bind(2) system call. Attempts to
159 set SO_RDS_TRANSPORT on a socket for which the transport has
160 been previously attached explicitly (by SO_RDS_TRANSPORT) or
161 implicitly (via bind(2)) will return an error of EOPNOTSUPP.
162 An attempt to set SO_RDS_TRANSPPORT to RDS_TRANS_NONE will
163 always return EINVAL.
149 164
150RDMA for RDS 165RDMA for RDS
151============ 166============