]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
librdmacm: define REUSEADDR option
authorSean Hefty <sean.hefty@intel.com>
Fri, 15 Apr 2011 19:28:22 +0000 (12:28 -0700)
committerSean Hefty <sean.hefty@intel.com>
Fri, 15 Apr 2011 19:28:22 +0000 (12:28 -0700)
Support equivalent of SO_REUSEADDR socket option.  When specified
the rdma_cm_id will be bound to a reuseable address.  This will
allow other users to bind to that same address.  This is needed
to support lustre on clusters larger than 1024 nodes.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
include/rdma/rdma_cma.h

index b48cd2ec79505cb6c643415ddf8396d7e75808fa..3648c970e9a2e550f69572de7bc7be64ea6f719a 100755 (executable)
@@ -639,8 +639,9 @@ enum {
 
 /* Option details */
 enum {
-       RDMA_OPTION_ID_TOS      = 0,    /* uint8_t: RFC 2474 */
-       RDMA_OPTION_IB_PATH     = 1     /* struct ibv_path_data[] */
+       RDMA_OPTION_ID_TOS       = 0,   /* uint8_t: RFC 2474 */
+       RDMA_OPTION_ID_REUSEADDR = 1,   /* int: ~SO_REUSEADDR */
+       RDMA_OPTION_IB_PATH      = 1    /* struct ibv_path_data[] */
 };
 
 /**