From: Sean Hefty Date: Fri, 15 Apr 2011 19:28:22 +0000 (-0700) Subject: librdmacm: define REUSEADDR option X-Git-Tag: v1.0.15~14 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=13d0fd8f2f5fca0d15de0898d2cfe983def859cd;p=~shefty%2Flibrdmacm.git librdmacm: define REUSEADDR option 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 --- diff --git a/include/rdma/rdma_cma.h b/include/rdma/rdma_cma.h index b48cd2ec..3648c970 100755 --- a/include/rdma/rdma_cma.h +++ b/include/rdma/rdma_cma.h @@ -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[] */ }; /**