From patchwork Mon Mar 18 12:24:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10857537 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 BB9FB1390 for ; Mon, 18 Mar 2019 12:25:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94A2929227 for ; Mon, 18 Mar 2019 12:25:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83B6A292D1; Mon, 18 Mar 2019 12:25:41 +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 0834129227 for ; Mon, 18 Mar 2019 12:25:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727246AbfCRMZi (ORCPT ); Mon, 18 Mar 2019 08:25:38 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:53299 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727239AbfCRMZi (ORCPT ); Mon, 18 Mar 2019 08:25:38 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 18 Mar 2019 14:25:29 +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 x2ICPTpp019544; Mon, 18 Mar 2019 14:25:29 +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 x2ICPTB8004889; Mon, 18 Mar 2019 14:25:29 +0200 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id x2ICPSMA004885; Mon, 18 Mar 2019 14:25:28 +0200 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, guyle@mellanox.com, Alexr@mellanox.com, jgg@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core 0/6] verbs: Introduce a new post send API Date: Mon, 18 Mar 2019 14:24:13 +0200 Message-Id: <1552911859-4073-1-git-send-email-yishaih@mellanox.com> X-Mailer: git-send-email 1.8.2.3 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 This series from Guy introduces a new set of QP send operations which allow extensibility for new send opcodes. This concept lets to add vendor specific send opcodes, users can also require a set of supported QP send ops specified during QP creation. This new API was implemented by the mlx5 driver for the general send opcodes. In addition, a driver specific opcode for DC was implemented over the DV API. The series includes detailed man pages to describe the API and its expected usage. In addition, the rc_pingpong example code was extended to demonstrate the usage of the API. PR was sent: https://github.com/linux-rdma/rdma-core/pull/501 Alex Rosenbaum (1): verbs: Introduce a new post send API Guy Levi (5): mlx5: Support new post send API mlx5: Support inline data WR over new post send API mlx5: Support raw packet QPT over new post send API verbs: Demonstrate the usage of new post send API mlx5: Introduce a new send API in direct verbs debian/ibverbs-providers.symbols | 2 + debian/libibverbs1.symbols | 2 + libibverbs/CMakeLists.txt | 2 +- libibverbs/cmd.c | 14 +- libibverbs/driver.h | 8 +- libibverbs/examples/rc_pingpong.c | 49 +- libibverbs/libibverbs.map.in | 5 + libibverbs/man/CMakeLists.txt | 21 + libibverbs/man/ibv_create_qp_ex.3 | 26 +- libibverbs/man/ibv_rc_pingpong.1 | 10 +- libibverbs/man/ibv_wr_post.3.md | 333 ++++++++ libibverbs/verbs.c | 9 + libibverbs/verbs.h | 191 ++++- providers/mlx5/CMakeLists.txt | 2 +- providers/mlx5/libmlx5.map | 6 + providers/mlx5/man/CMakeLists.txt | 3 + providers/mlx5/man/mlx5dv_create_qp.3.md | 5 + providers/mlx5/man/mlx5dv_wr_post.3.md | 94 +++ providers/mlx5/mlx5.h | 25 +- providers/mlx5/mlx5dv.h | 20 + providers/mlx5/qp.c | 1223 ++++++++++++++++++++++++++++-- providers/mlx5/verbs.c | 175 +++-- 22 files changed, 2121 insertions(+), 104 deletions(-) create mode 100644 libibverbs/man/ibv_wr_post.3.md create mode 100644 providers/mlx5/man/mlx5dv_wr_post.3.md