From patchwork Sun Feb 24 13:06:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noa Osherovich X-Patchwork-Id: 10827957 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 2417313B5 for ; Sun, 24 Feb 2019 13:09:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12D75296ED for ; Sun, 24 Feb 2019 13:09:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0700329DAD; Sun, 24 Feb 2019 13:09: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 EBF872B490 for ; Sun, 24 Feb 2019 13:08:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728128AbfBXNIt (ORCPT ); Sun, 24 Feb 2019 08:08:49 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:50448 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727594AbfBXNIt (ORCPT ); Sun, 24 Feb 2019 08:08:49 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from noaos@mellanox.com) with ESMTPS (AES256-SHA encrypted); 24 Feb 2019 15:06:48 +0200 Received: from reg-l-vrt-059-009.mtl.labs.mlnx (reg-l-vrt-059-009.mtl.labs.mlnx [10.135.59.9]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x1OD6mfU026210; Sun, 24 Feb 2019 15:06:48 +0200 From: Noa Osherovich To: leonro@mellanox.com, jgg@mellanox.com, dledford@redhat.com Cc: linux-rdma@vger.kernel.org, Noa Osherovich Subject: [PATCH rdma-core 00/19] Pyverbs additions Date: Sun, 24 Feb 2019 15:06:19 +0200 Message-Id: <20190224130638.31848-1-noaos@mellanox.com> X-Mailer: git-send-email 2.17.2 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 pull requeset adds pyverbs support for PD and MR related classes, divided as follows: - General fixes prior to addition of new classes: - Rename Gid class to GID and use as will be done from now on for all acronyms. - Unify close() functions of pyverbs objects to a single cpdef function. - Switch to Python-style properties, replacing the deprecated legacy syntax. - Add PD and MR related classes: PD, MR, MW, DM and DMMR. This part also adds support for ibv_query_device_ex(), as it is needed for new capabilities checks. Those patches also include unittests (for path only). - Add support for ibv_query_port() in Context class. This is a very basic capability that doesn't depend on any missing infrastructure. - Some technical/build-related commits: update MAINTAINERS file and fix build issues. PR: https://github.com/linux-rdma/rdma-core/pull/476 Noa Osherovich (19): pyverbs: Rename Gid class pyverbs: Unify close functions pyverbs: Use new-style properties pyverbs: Introduce PD class pyverbs: Add unittests for PD class pyverbs: Introducing MR object pyverbs: Add unittests for MR class pyverbs: Add support for extended query_device pyverbs: Add support for memory window creation pyverbs: Add unittests for memory window control path pyverbs: Add support for direct memory usage pyverbs: Add direct memory related unittests pyverbs: Add query_port method pyverbs: Add unittests for query port update MAINTAINERS debian: Be explicit in dh_install in regards to NO_PYVERBS request build: Disable pyverbs build for older Cython versions travis: Update Cython version Documentation: update pyverbs .travis.yml | 3 +- Documentation/pyverbs.md | 129 ++++++ MAINTAINERS | 5 + buildlib/Findcython.cmake | 8 + buildlib/cbuild | 4 + buildlib/travis-build | 2 + debian/rules | 7 +- pyverbs/CMakeLists.txt | 11 +- pyverbs/addr.pxd | 2 +- pyverbs/addr.pyx | 57 +-- pyverbs/base.pxd | 6 +- pyverbs/base.pyx | 41 +- pyverbs/device.pxd | 44 ++- pyverbs/device.pyx | 741 ++++++++++++++++++++++++++++------- pyverbs/libibverbs.pxd | 181 +++++++-- pyverbs/libibverbs_enums.pxd | 14 + pyverbs/mr.pxd | 19 + pyverbs/mr.pyx | 195 +++++++++ pyverbs/pd.pxd | 13 + pyverbs/pd.pyx | 61 +++ pyverbs/tests/device.py | 224 ++++++++++- pyverbs/tests/mr.py | 229 +++++++++++ pyverbs/tests/pd.py | 70 ++++ pyverbs/tests/utils.py | 44 +++ 24 files changed, 1904 insertions(+), 206 deletions(-) create mode 100644 pyverbs/mr.pxd create mode 100644 pyverbs/mr.pyx create mode 100644 pyverbs/pd.pxd create mode 100644 pyverbs/pd.pyx create mode 100644 pyverbs/tests/mr.py create mode 100644 pyverbs/tests/pd.py create mode 100644 pyverbs/tests/utils.py