From patchwork Mon Apr 29 15:55:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noa Osherovich X-Patchwork-Id: 10922007 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 9699A14C0 for ; Mon, 29 Apr 2019 15:55:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 870DF284DC for ; Mon, 29 Apr 2019 15:55:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B2BD28500; Mon, 29 Apr 2019 15:55:19 +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 2FDD1284DC for ; Mon, 29 Apr 2019 15:55:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbfD2PzS (ORCPT ); Mon, 29 Apr 2019 11:55:18 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:47431 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728501AbfD2PzR (ORCPT ); Mon, 29 Apr 2019 11:55:17 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from noaos@mellanox.com) with ESMTPS (AES256-SHA encrypted); 29 Apr 2019 18:55:15 +0300 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 x3TFtF7l025539; Mon, 29 Apr 2019 18:55:15 +0300 From: Noa Osherovich To: dledford@redhat.com, jgg@mellanox.com, leonro@mellanox.com Cc: linux-rdma@vger.kernel.org, Noa Osherovich Subject: [PATCH rdma-core 0/4] pyverbs: General improvements Date: Mon, 29 Apr 2019 18:55:09 +0300 Message-Id: <20190429155513.30543-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 series precedes pyverbs' traffic series with some needed changes: - Some enums were missing. - Modify some of the user-visible prints for a more readable output as well as to avoid an exception thrown when printing an uninitialized object. - Tests: Coverage and performance improvements. - Add events support. Noa Osherovich (4): pyverbs: Add missing enums pyverbs: Changes to print-related functions pyverbs/tests: Improvements pyverbs: Add events support pyverbs/CMakeLists.txt | 1 + pyverbs/cq.pxd | 3 + pyverbs/cq.pyx | 57 +++++++- pyverbs/device.pyx | 87 +++++++++--- pyverbs/libibverbs.pxd | 2 + pyverbs/libibverbs_enums.pxd | 60 ++++++++ pyverbs/tests/base.py | 23 +++ pyverbs/tests/cq.py | 168 ++++++++++------------ pyverbs/tests/device.py | 235 ++++++++++++++----------------- pyverbs/tests/mr.py | 265 +++++++++++++++++------------------ pyverbs/tests/pd.py | 58 +++----- pyverbs/tests/utils.py | 69 ++++++--- 12 files changed, 587 insertions(+), 441 deletions(-) create mode 100644 pyverbs/tests/base.py