From patchwork Sat Apr 16 06:48:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hefty, Sean" X-Patchwork-Id: 711981 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3G6hCSi027894 for ; Sat, 16 Apr 2011 06:48:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751502Ab1DPGs3 (ORCPT ); Sat, 16 Apr 2011 02:48:29 -0400 Received: from mga01.intel.com ([192.55.52.88]:2236 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751425Ab1DPGs3 convert rfc822-to-8bit (ORCPT ); Sat, 16 Apr 2011 02:48:29 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 15 Apr 2011 23:48:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.64,223,1301900400"; d="scan'208";a="679864177" Received: from orsmsx602.amr.corp.intel.com ([10.22.226.211]) by fmsmga002.fm.intel.com with ESMTP; 15 Apr 2011 23:48:28 -0700 Received: from orsmsx501.amr.corp.intel.com ([10.22.226.209]) by orsmsx602.amr.corp.intel.com ([10.22.226.211]) with mapi; Fri, 15 Apr 2011 23:48:28 -0700 From: "Hefty, Sean" To: linux-rdma Date: Fri, 15 Apr 2011 23:48:27 -0700 Subject: [PATCH] librdmacm: define REUSEADDR option Thread-Topic: [PATCH] librdmacm: define REUSEADDR option Thread-Index: Acv8AkoWV8IXN999Quims899mmEutw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 16 Apr 2011 06:48:30 +0000 (UTC) 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 Acked-by: Ira Weiny --- include/rdma/rdma_cma.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/rdma/rdma_cma.h b/include/rdma/rdma_cma.h index b48cd2e..3648c97 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[] */ }; /**