From: Sean Hefty Date: Fri, 18 May 2012 23:56:15 +0000 (-0700) Subject: rsockets: Allow user to specify the QP sizes X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=38ec8e0c144bf785657c7ee2279d7d099587a361;p=~shefty%2Flibrdmacm.git rsockets: Allow user to specify the QP sizes Add setsockopt options that allow the user to specify the desired size of the underlying QP. The provided sizes are used as the maximum size when creating the QP. The actual sizes of the QP are the smaller of the user provided maximum and the maximum sizes supported by the underlying hardware. A user may retrieve the actual sizes of the QP through the getsockopt call. The send and receive queue sizes are specified separately. Signed-off-by: Sean Hefty --- diff --git a/include/rdma/rsocket.h b/include/rdma/rsocket.h index 87ee943e..9fd99290 100644 --- a/include/rdma/rsocket.h +++ b/include/rdma/rsocket.h @@ -73,6 +73,10 @@ int rgetpeername(int socket, struct sockaddr *addr, socklen_t *addrlen); int rgetsockname(int socket, struct sockaddr *addr, socklen_t *addrlen); #define SOL_RDMA 0x10000 +enum { + RDMA_SQSIZE, + RDMA_RQSIZE +}; int rsetsockopt(int socket, int level, int optname, const void *optval, socklen_t optlen);