From patchwork Wed Nov 7 14:22:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10672435 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8928D14E2 for ; Wed, 7 Nov 2018 14:23:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E64A2C0DA for ; Wed, 7 Nov 2018 14:23:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62E0D2C13B; Wed, 7 Nov 2018 14:23:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SUBJ_OBFU_PUNCT_FEW autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5DD92C127 for ; Wed, 7 Nov 2018 14:23:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726886AbeKGXxq (ORCPT ); Wed, 7 Nov 2018 18:53:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43804 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbeKGXxq (ORCPT ); Wed, 7 Nov 2018 18:53:46 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B035C7F6A7; Wed, 7 Nov 2018 14:23:11 +0000 (UTC) Received: from lhg.nay.redhat.com (unknown [10.66.129.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4AFAE60464; Wed, 7 Nov 2018 14:23:10 +0000 (UTC) From: Honggang LI To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li Subject: [opensm patch 1/6] opensm/osm_vl15intf.h: Minor update of comments Date: Wed, 7 Nov 2018 22:22:41 +0800 Message-Id: <20181107142246.28336-1-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 07 Nov 2018 14:23:11 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li Signed-off-by: Honggang Li --- include/opensm/osm_vl15intf.h | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/include/opensm/osm_vl15intf.h b/include/opensm/osm_vl15intf.h index b024b23a..589e03a3 100644 --- a/include/opensm/osm_vl15intf.h +++ b/include/opensm/osm_vl15intf.h @@ -92,7 +92,7 @@ BEGIN_C_DECLS * osm_vl15_state_t * * DESCRIPTION -* Enumerates the possible states of SM object. +* Enumerates the possible states of OpenSM VL15 object. * * SYNOPSIS */ @@ -150,6 +150,9 @@ typedef struct osm_vl15 { * signal * Event on which the poller sleeps. * +* poller +* Worker thread pool that services the fifo to transmit VL15 MADs +* * rfifo * First-in First-out queue for outbound VL15 MADs for which * a response is expected, aka the "response fifo" @@ -158,9 +161,6 @@ typedef struct osm_vl15 { * First-in First-out queue for outbound VL15 MADs for which * no response is expected, aka the "unicast fifo". * -* poller -* Worker thread pool that services the fifo to transmit VL15 MADs -* * lock * Spinlock guarding the FIFO. * @@ -224,8 +224,8 @@ void osm_vl15_destroy(IN osm_vl15_t * p_vl15, IN struct osm_mad_pool *p_pool); * p_vl15 * [in] Pointer to a VL15 object to destroy. * -* p_pool -* [in] The pointer to the mad pool to return outstanding mads to +* p_pool +* [in] The pointer to the mad pool to return outstanding mads to * * RETURN VALUE * This function does not return a value. @@ -240,11 +240,6 @@ void osm_vl15_destroy(IN osm_vl15_t * p_vl15, IN struct osm_mad_pool *p_pool); * VL15 object, osm_vl15_construct, osm_vl15_init *********/ -/* - Initialization. - Rate specifies the minimum number of microseconds between transmissions - on VL15. -*/ /****f* OpenSM: VL15/osm_vl15_init * NAME * osm_vl15_init @@ -372,8 +367,8 @@ void osm_vl15_shutdown(IN osm_vl15_t * p_vl, IN osm_mad_pool_t * p_mad_pool); * p_vl15 * [in] Pointer to an osm_vl15_t object. * -* p_mad_pool -* [in] The MAD pool owning the mads. +* p_mad_pool +* [in] The MAD pool owning the mads. * * RETURN VALUES * None. From patchwork Wed Nov 7 14:22:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10672437 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0DCDA14D6 for ; Wed, 7 Nov 2018 14:23:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2A072C118 for ; Wed, 7 Nov 2018 14:23:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E79BD2C141; Wed, 7 Nov 2018 14:23:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A664E2C12A for ; Wed, 7 Nov 2018 14:23:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbeKGXxs (ORCPT ); Wed, 7 Nov 2018 18:53:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46904 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeKGXxs (ORCPT ); Wed, 7 Nov 2018 18:53:48 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9F9E7C0587D2; Wed, 7 Nov 2018 14:23:13 +0000 (UTC) Received: from lhg.nay.redhat.com (unknown [10.66.129.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 393D560477; Wed, 7 Nov 2018 14:23:11 +0000 (UTC) From: Honggang LI To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li Subject: [opensm patch 2/6] opensm/osm_mtree.h: Improve comments Date: Wed, 7 Nov 2018 22:22:42 +0800 Message-Id: <20181107142246.28336-2-honli@redhat.com> In-Reply-To: <20181107142246.28336-1-honli@redhat.com> References: <20181107142246.28336-1-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 07 Nov 2018 14:23:13 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li Signed-off-by: Honggang Li --- include/opensm/osm_mtree.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/opensm/osm_mtree.h b/include/opensm/osm_mtree.h index 32f51790..b8307f0c 100644 --- a/include/opensm/osm_mtree.h +++ b/include/opensm/osm_mtree.h @@ -124,6 +124,7 @@ typedef struct osm_mtree_node { * child_array * Array (indexed by port number) of pointers to the * child osm_mtree_node_t objects of this tree node, if any. +* MUST BE LAST ELEMENT!!! * * SEE ALSO *********/ @@ -258,9 +259,6 @@ static inline const osm_switch_t *osm_mtree_node_get_switch_ptr(IN const * p_mtn * [in] Pointer to the multicast tree node. * -* child -* [in] Index of the child to retrieve. -* * RETURN VALUES * Returns a pointer to the switch object represented by this tree node. * From patchwork Wed Nov 7 14:22:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10672439 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E3B514D6 for ; Wed, 7 Nov 2018 14:23:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D1392C145 for ; Wed, 7 Nov 2018 14:23:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67E422C143; Wed, 7 Nov 2018 14:23:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67E1A2C0E4 for ; Wed, 7 Nov 2018 14:23:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727203AbeKGXxu (ORCPT ); Wed, 7 Nov 2018 18:53:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52944 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeKGXxu (ORCPT ); Wed, 7 Nov 2018 18:53:50 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9036C30820F5; Wed, 7 Nov 2018 14:23:15 +0000 (UTC) Received: from lhg.nay.redhat.com (unknown [10.66.129.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 277E9604A1; Wed, 7 Nov 2018 14:23:13 +0000 (UTC) From: Honggang LI To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li Subject: [opensm patch 3/6] opensm/osm_remote_sm.h: Improve comments Date: Wed, 7 Nov 2018 22:22:43 +0800 Message-Id: <20181107142246.28336-3-honli@redhat.com> In-Reply-To: <20181107142246.28336-2-honli@redhat.com> References: <20181107142246.28336-1-honli@redhat.com> <20181107142246.28336-2-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Wed, 07 Nov 2018 14:23:15 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li Signed-off-by: Honggang Li --- include/opensm/osm_remote_sm.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/opensm/osm_remote_sm.h b/include/opensm/osm_remote_sm.h index e7d52fa2..53affe4d 100644 --- a/include/opensm/osm_remote_sm.h +++ b/include/opensm/osm_remote_sm.h @@ -35,7 +35,7 @@ /* * Abstract: - * Declaration of osm_sm_t, osm_remote_sm_t. + * Declaration of osm_remote_sm_t. * This object represents an IBA subnet. * This object is part of the OpenSM family of objects. */ @@ -93,8 +93,6 @@ typedef struct osm_remote_sm { * FIELDS * map_item * Linkage for the cl_qmap container. MUST BE FIRST ELEMENT!! -* p_port -* Pointer to the port object for this SM. * * smi * The SMInfo attribute for this SM. @@ -174,9 +172,6 @@ void osm_remote_sm_init(IN osm_remote_sm_t * p_sm, IN const ib_sm_info_t * p_smi * p_sm * [in] Pointer to an osm_remote_sm_t object to initialize. * -* p_port -* [in] Pointer to the Remote SM's port object. -* * p_smi * [in] Pointer to the SMInfo attribute for this SM. * From patchwork Wed Nov 7 14:22:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10672441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D830714E2 for ; Wed, 7 Nov 2018 14:23:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C85982C12A for ; Wed, 7 Nov 2018 14:23:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD0BF2C131; Wed, 7 Nov 2018 14:23:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72AD22C12D for ; Wed, 7 Nov 2018 14:23:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727604AbeKGXxx (ORCPT ); Wed, 7 Nov 2018 18:53:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41313 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeKGXxx (ORCPT ); Wed, 7 Nov 2018 18:53:53 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7DF6258E56; Wed, 7 Nov 2018 14:23:18 +0000 (UTC) Received: from lhg.nay.redhat.com (unknown [10.66.129.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1850C60478; Wed, 7 Nov 2018 14:23:15 +0000 (UTC) From: Honggang LI To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li Subject: [opensm patch 4/6] opensm/osm_sm_mad_ctrl.h: Improve comments Date: Wed, 7 Nov 2018 22:22:44 +0800 Message-Id: <20181107142246.28336-4-honli@redhat.com> In-Reply-To: <20181107142246.28336-3-honli@redhat.com> References: <20181107142246.28336-1-honli@redhat.com> <20181107142246.28336-2-honli@redhat.com> <20181107142246.28336-3-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 07 Nov 2018 14:23:18 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li Signed-off-by: Honggang Li --- include/opensm/osm_sm_mad_ctrl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/opensm/osm_sm_mad_ctrl.h b/include/opensm/osm_sm_mad_ctrl.h index 8969835b..4ec1e83a 100644 --- a/include/opensm/osm_sm_mad_ctrl.h +++ b/include/opensm/osm_sm_mad_ctrl.h @@ -115,6 +115,9 @@ typedef struct osm_sm_mad_ctrl { * p_mad_pool * Pointer to the MAD pool. * +* p_vl15 +* Pointer to the VL15 interface object. +* * p_vendor * Pointer to the vendor specific interfaces object. * @@ -135,7 +138,6 @@ typedef struct osm_sm_mad_ctrl { * * SEE ALSO * SM MAD Controller object -* SM MADr object *********/ /****f* OpenSM: SM MAD Controller/osm_sm_mad_ctrl_construct @@ -223,6 +225,9 @@ ib_api_status_t osm_sm_mad_ctrl_init(IN osm_sm_mad_ctrl_t * p_ctrl, * p_ctrl * [in] Pointer to an osm_sm_mad_ctrl_t object to initialize. * +* p_subn +* [in] Pointer to the subnet object. +* * p_mad_pool * [in] Pointer to the MAD pool. * From patchwork Wed Nov 7 14:22:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10672443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A8B4514E2 for ; Wed, 7 Nov 2018 14:23:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 992482C149 for ; Wed, 7 Nov 2018 14:23:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97D442C12E; Wed, 7 Nov 2018 14:23:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 516E72C12E for ; Wed, 7 Nov 2018 14:23:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbeKGXxz (ORCPT ); Wed, 7 Nov 2018 18:53:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58190 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeKGXxz (ORCPT ); Wed, 7 Nov 2018 18:53:55 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7524D308A964; Wed, 7 Nov 2018 14:23:20 +0000 (UTC) Received: from lhg.nay.redhat.com (unknown [10.66.129.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0898660464; Wed, 7 Nov 2018 14:23:18 +0000 (UTC) From: Honggang LI To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li Subject: [opensm patch 5/6] opensm/osm_sa_mad_ctrl.h: Improve comments Date: Wed, 7 Nov 2018 22:22:45 +0800 Message-Id: <20181107142246.28336-5-honli@redhat.com> In-Reply-To: <20181107142246.28336-4-honli@redhat.com> References: <20181107142246.28336-1-honli@redhat.com> <20181107142246.28336-2-honli@redhat.com> <20181107142246.28336-3-honli@redhat.com> <20181107142246.28336-4-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 07 Nov 2018 14:23:20 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li Signed-off-by: Honggang Li --- include/opensm/osm_sa_mad_ctrl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/opensm/osm_sa_mad_ctrl.h b/include/opensm/osm_sa_mad_ctrl.h index 2c2513b0..d59fae03 100644 --- a/include/opensm/osm_sa_mad_ctrl.h +++ b/include/opensm/osm_sa_mad_ctrl.h @@ -136,9 +136,11 @@ typedef struct osm_sa_mad_ctrl { * p_stats * Pointer to the OpenSM statistics block. * +* p_subn +* Pointer to the OpenSM Subnet object. +* * SEE ALSO * SA MAD Controller object -* SA MADr object *********/ /****f* OpenSM: SA MAD Controller/osm_sa_mad_ctrl_construct @@ -235,6 +237,9 @@ ib_api_status_t osm_sa_mad_ctrl_init(IN osm_sa_mad_ctrl_t * p_ctrl, * p_vendor * [in] Pointer to the vendor specific interfaces object. * +* p_subn +* [in] Pointer to the OpenSM Subnet object. +* * p_log * [in] Pointer to the log object. * From patchwork Wed Nov 7 14:22:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10672445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B0B5314D6 for ; Wed, 7 Nov 2018 14:23:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0E0B2C137 for ; Wed, 7 Nov 2018 14:23:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BE3C2C141; Wed, 7 Nov 2018 14:23:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AEBE2C14D for ; Wed, 7 Nov 2018 14:23:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727567AbeKGXx5 (ORCPT ); Wed, 7 Nov 2018 18:53:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35536 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeKGXx5 (ORCPT ); Wed, 7 Nov 2018 18:53:57 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 60BA2394D2D; Wed, 7 Nov 2018 14:23:22 +0000 (UTC) Received: from lhg.nay.redhat.com (unknown [10.66.129.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id F0B3060477; Wed, 7 Nov 2018 14:23:20 +0000 (UTC) From: Honggang LI To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li Subject: [opensm patch 6/6] opensm/osm_multicast.h: Improve comments Date: Wed, 7 Nov 2018 22:22:46 +0800 Message-Id: <20181107142246.28336-6-honli@redhat.com> In-Reply-To: <20181107142246.28336-5-honli@redhat.com> References: <20181107142246.28336-1-honli@redhat.com> <20181107142246.28336-2-honli@redhat.com> <20181107142246.28336-3-honli@redhat.com> <20181107142246.28336-4-honli@redhat.com> <20181107142246.28336-5-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 07 Nov 2018 14:23:22 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li Signed-off-by: Honggang Li --- include/opensm/osm_multicast.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/opensm/osm_multicast.h b/include/opensm/osm_multicast.h index 3237c87c..380f3063 100644 --- a/include/opensm/osm_multicast.h +++ b/include/opensm/osm_multicast.h @@ -135,6 +135,9 @@ typedef struct osm_mgrp { * is created during the initialization of SM/SA and will be * present even if there are no ports for this group * +* full_members +* Number of full members in the Multicast Group. +* * SEE ALSO *********/ @@ -338,6 +341,12 @@ osm_mcm_port_t *osm_mgrp_add_port(osm_subn_t *subn, osm_log_t *log, IN ib_member_rec_t *mcmr, IN boolean_t proxy); /* * PARAMETERS +* subn +* [in] Pointer to the subnet object +* +* log +* [in] The log object pointer +* * mgrp * [in] Pointer to an osm_mgrp_t object to initialize. * @@ -426,7 +435,6 @@ void osm_mgrp_delete_port(IN osm_subn_t * subn, IN osm_log_t * log, IN osm_mgrp_t * mgrp, IN osm_port_t * port); /* * PARAMETERS -* * subn * [in] Pointer to the subnet object *