From patchwork Mon Jan 28 13:56:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10783713 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 4F2D81390 for ; Mon, 28 Jan 2019 13:57:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CCFE2AD35 for ; Mon, 28 Jan 2019 13:57:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EF412AD9C; Mon, 28 Jan 2019 13:57:02 +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,UNPARSEABLE_RELAY 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 D2A342ADA3 for ; Mon, 28 Jan 2019 13:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfA1N47 (ORCPT ); Mon, 28 Jan 2019 08:56:59 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:43498 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726682AbfA1N47 (ORCPT ); Mon, 28 Jan 2019 08:56:59 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 28 Jan 2019 15:56:52 +0200 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [10.7.2.17]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x0SDuqeM028046; Mon, 28 Jan 2019 15:56:52 +0200 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [127.0.0.1]) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8) with ESMTP id x0SDuqL8018428; Mon, 28 Jan 2019 15:56:52 +0200 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id x0SDuqT2018427; Mon, 28 Jan 2019 15:56:52 +0200 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, danitg@mellanox.com, monis@mellanox.com, jgg@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core 2/4] rdmacm: Expand on optname in rdma_set_option man page Date: Mon, 28 Jan 2019 15:56:25 +0200 Message-Id: <1548683787-18270-3-git-send-email-yishaih@mellanox.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1548683787-18270-1-git-send-email-yishaih@mellanox.com> References: <1548683787-18270-1-git-send-email-yishaih@mellanox.com> 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: Danit Goldberg Elaborate on each option in rdma_set_option man page. Signed-off-by: Danit Goldberg Reviewed-by: Moni Shoua Signed-off-by: Yishai Hadas --- librdmacm/man/rdma_set_option.3 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/librdmacm/man/rdma_set_option.3 b/librdmacm/man/rdma_set_option.3 index 93a6047..24b13e4 100644 --- a/librdmacm/man/rdma_set_option.3 +++ b/librdmacm/man/rdma_set_option.3 @@ -25,6 +25,19 @@ The size of the %optval buffer. .SH "DESCRIPTION" Sets communication options for an rdma_cm_id. This call is used to override the default system settings. +.IP "optname can be one of" 12 +.IP "RDMA_OPTION_ID_TOS" 12 +Specify the quality of service provided by a connection. +The expected optlen is size of uint8_t. +.IP "RDMA_OPTION_ID_REUSEADDR" 12 +Bound the rdma_cm_id to a reuseable address. This will allow other users to bind to that same address. +The expected optlen is size of int. +.IP "RDMA_OPTION_ID_AFONLY" 12 +Set IPV6_V6ONLY socket. +The expected optlen is size of int. +.IP "RDMA_OPTION_IB_PATH" 12 +Set IB path record data. +The expected optlen is size of struct ibv_path_data[]. .SH "RETURN VALUE" Returns 0 on success, or -1 on error. If an error occurs, errno will be set to indicate the failure reason.