From patchwork Sun Jan 27 15:28:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10782909 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 0046191E for ; Sun, 27 Jan 2019 15:29:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2A3D2AA35 for ; Sun, 27 Jan 2019 15:29:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D68A32AA36; Sun, 27 Jan 2019 15:29:37 +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 6937C2AA33 for ; Sun, 27 Jan 2019 15:29:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726386AbfA0P3h (ORCPT ); Sun, 27 Jan 2019 10:29:37 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:49266 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726313AbfA0P3g (ORCPT ); Sun, 27 Jan 2019 10:29:36 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 27 Jan 2019 17:29:32 +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 x0RFTW3p014743; Sun, 27 Jan 2019 17:29:32 +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 x0RFTWYv011514; Sun, 27 Jan 2019 17:29:32 +0200 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id x0RFTW0x011513; Sun, 27 Jan 2019 17:29:32 +0200 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, danitg@mellanox.com, yosefe@mellanox.com, maxg@mellanox.com, jgg@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core 0/3] rdmacm: Enable application control in some flows Date: Sun, 27 Jan 2019 17:28:54 +0200 Message-Id: <1548602938-11370-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 Danit and Yossi enables application control in some flows as follows. It exposes the internal function 'rdma_init_qp_attr' as an external librdmacm API. As such an application can get the parameters for creating AH (needed for DC QP), or control QP attributes after its creation. In addition, it exposes CONNECT_RESPONSE event and rdma_establish() API. Applications which do not create a QP through rdma_create_qp() may want to postpone the ESTABLISHED event on the passive side, to let the active side complete an application-specific connection establishment phase. For example, modify a QP created by the application to RTR, or make some preparations for receiving messages from the passive side. PR was sent: https://github.com/linux-rdma/rdma-core/pull/460 Danit Goldberg (1): rdmacm: Expose rdma_init_qp_attr Yossi Itigin (2): rdmacm: Expose CONNECT_RESPONSE event and rdma_establish() rping: Add option to create QP independently debian/librdmacm-dev.install | 2 + debian/librdmacm1.symbols | 3 + librdmacm/CMakeLists.txt | 2 +- librdmacm/cma.c | 33 ++++++++--- librdmacm/examples/rping.c | 112 ++++++++++++++++++++++++++++++----- librdmacm/librdmacm.map | 6 ++ librdmacm/man/CMakeLists.txt | 2 + librdmacm/man/rdma_establish.3.md | 59 ++++++++++++++++++ librdmacm/man/rdma_init_qp_attr.3.md | 54 +++++++++++++++++ librdmacm/man/rping.1 | 3 + librdmacm/rdma_cma.h | 28 +++++++++ 11 files changed, 279 insertions(+), 25 deletions(-) create mode 100644 librdmacm/man/rdma_establish.3.md create mode 100644 librdmacm/man/rdma_init_qp_attr.3.md