]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of rs-def-inline
authorSean Hefty <sean.hefty@intel.com>
Fri, 25 May 2012 19:27:27 +0000 (12:27 -0700)
committerSean Hefty <sean.hefty@intel.com>
Fri, 25 May 2012 19:27:27 +0000 (12:27 -0700)
src/rsocket.c

index 6bc02f7acc13d52e0f0ea3402ba70d59b4b4cdb5..5eec5d9c6a8f0cfa5f34e3d945a5baec3f49fa3e 100644 (file)
@@ -51,7 +51,6 @@
 #include "cma.h"
 #include "indexer.h"
 
-#define RS_INLINE 64
 #define RS_OLAP_START_SIZE 2048
 #define RS_MAX_TRANSFER 65536
 #define RS_QP_SIZE 384
@@ -109,7 +108,7 @@ struct rs_sge {
        uint32_t length;
 };
 
-#define RS_INLINE_MIN    (sizeof(struct rs_sge))
+#define RS_MIN_INLINE    (sizeof(struct rs_sge))
 #define rs_host_is_net() (1 == htonl(1))
 #define RS_CONN_FLAG_NET 1
 
@@ -223,7 +222,7 @@ static struct rsocket *rs_alloc(struct rsocket *inherited_rs)
                rs->ctrl_avail = inherited_rs->ctrl_avail;
        } else {
                rs->sbuf_size = rs->rbuf_size = RS_BUF_SIZE;
-               rs->sq_inline = RS_INLINE;
+               rs->sq_inline = RS_MIN_INLINE;
                rs->sq_size = rs->rq_size = RS_QP_SIZE;
                rs->ctrl_avail = RS_QP_CTRL_SIZE;
        }
@@ -1676,8 +1675,8 @@ int rsetsockopt(int socket, int level, int optname,
                        break;
                case RDMA_INLINE:
                        rs->sq_inline = min(*(uint32_t *) optval, RS_QP_MAX_SIZE);
-                       if (rs->sq_inline < RS_INLINE_MIN)
-                               rs->sq_inline = RS_INLINE_MIN;
+                       if (rs->sq_inline < RS_MIN_INLINE)
+                               rs->sq_inline = RS_MIN_INLINE;
                        break;
                default:
                        break;