From patchwork Mon Feb 8 12:43:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 8249351 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D5ED7BEEE5 for ; Mon, 8 Feb 2016 12:44:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 044D1203A9 for ; Mon, 8 Feb 2016 12:44:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B219203A5 for ; Mon, 8 Feb 2016 12:44:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752671AbcBHMoZ (ORCPT ); Mon, 8 Feb 2016 07:44:25 -0500 Received: from [193.47.165.129] ([193.47.165.129]:59252 "EHLO mellanox.co.il" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752649AbcBHMoY (ORCPT ); Mon, 8 Feb 2016 07:44:24 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 8 Feb 2016 14:43:54 +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 u18ChsSk007046; Mon, 8 Feb 2016 14:43:54 +0200 Received: from vnc17.mtl.labs.mlnx (localhost.localdomain [127.0.0.1]) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8) with ESMTP id u18Chsji015311; Mon, 8 Feb 2016 14:43:54 +0200 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id u18Chs2J015310; Mon, 8 Feb 2016 14:43:54 +0200 From: Yishai Hadas To: dledford@redhat.com Cc: linux-rdma@vger.kernel.org, yishaih@mellanox.com, matanb@mellanox.com, majd@mellanox.com, talal@mellanox.com, ogerlitz@mellanox.com Subject: [PATCH V1 libibverbs 1/7] Update ibv_post_send manual page Date: Mon, 8 Feb 2016 14:43:16 +0200 Message-Id: <1454935402-15192-2-git-send-email-yishaih@mellanox.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1454935402-15192-1-git-send-email-yishaih@mellanox.com> References: <1454935402-15192-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-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update man page to: - Align the ibv_send_wr structure according to the infiniband/verbs.h - Include IBV_QPT_XRC_SEND supported opcodes. Signed-off-by: Yishai Hadas --- man/ibv_post_send.3 | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/man/ibv_post_send.3 b/man/ibv_post_send.3 index eeea078..26bbd06 100644 --- a/man/ibv_post_send.3 +++ b/man/ibv_post_send.3 @@ -60,8 +60,18 @@ uint32_t remote_qkey; /* Q_Key number of the destination QP */ } ud; .in -8 } wr; +union { +.in +8 +struct { +.in +8 +uint32_t remote_srqn; /* Number of the remote SRQ */ +.in -8 +} xrc; +.in -8 +} qp_type; .in -8 }; +.fi .sp .nf struct ibv_sge { @@ -76,15 +86,15 @@ uint32_t lkey; /* Key of the local Memory Regio Each QP Transport Service Type supports a specific set of opcodes, as shown in the following table: .PP .nf -OPCODE | IBV_QPT_UD | IBV_QPT_UC | IBV_QPT_RC +OPCODE | IBV_QPT_UD | IBV_QPT_UC | IBV_QPT_RC | IBV_QPT_XRC_SEND \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\- -IBV_WR_SEND | X | X | X -IBV_WR_SEND_WITH_IMM | X | X | X -IBV_WR_RDMA_WRITE | | X | X -IBV_WR_RDMA_WRITE_WITH_IMM | | X | X -IBV_WR_RDMA_READ | | | X -IBV_WR_ATOMIC_CMP_AND_SWP | | | X -IBV_WR_ATOMIC_FETCH_AND_ADD | | | X +IBV_WR_SEND | X | X | X | X +IBV_WR_SEND_WITH_IMM | X | X | X | X +IBV_WR_RDMA_WRITE | | X | X | X +IBV_WR_RDMA_WRITE_WITH_IMM | | X | X | X +IBV_WR_RDMA_READ | | | X | X +IBV_WR_ATOMIC_CMP_AND_SWP | | | X | X +IBV_WR_ATOMIC_FETCH_AND_ADD | | | X | X .fi .PP The attribute send_flags describes the properties of the \s-1WR\s0. It is either 0 or the bitwise \s-1OR\s0 of one or more of the following flags: