From patchwork Sun Dec 23 17:14:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10741765 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 622FB17E8 for ; Sun, 23 Dec 2018 17:15:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4569E283B1 for ; Sun, 23 Dec 2018 17:15:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 394EE28736; Sun, 23 Dec 2018 17:15:22 +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 D97F9283B1 for ; Sun, 23 Dec 2018 17:15:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725806AbeLWRPV (ORCPT ); Sun, 23 Dec 2018 12:15:21 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:41677 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725497AbeLWRPV (ORCPT ); Sun, 23 Dec 2018 12:15:21 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 23 Dec 2018 19:21:37 +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 wBNHFDoH030318; Sun, 23 Dec 2018 19:15:13 +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 wBNHFDnW007153; Sun, 23 Dec 2018 19:15:13 +0200 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id wBNHFDOV007152; Sun, 23 Dec 2018 19:15:13 +0200 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, michaelgur@mellanox.com, jgg@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core 0/6] verbs: Expose the IBTA port CapabilityMask2 Date: Sun, 23 Dec 2018 19:14:51 +0200 Message-Id: <1545585297-6677-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 Michael exposes the new field CapabilityMask2 defined by IBTA specification via the ibv_query_port() verb as port_cap_flags2. As an outcome of it, the new links speed (HDR) is exposed. This come together with new 2x link width, new rates are added to support various combinations of speeds and widths. The matching kernel part was already accepted. PR was sent: https://github.com/linux-rdma/rdma-core/pull/451 Yishai Jason Gunthorpe (1): verbs: Make ibv_query_port extendable Michael Guralnik (4): verbs: Migrate ibv_cmd_query_port to run over ioctl verbs: Expose port_cap_mask2 in ibv_query_port verbs: Added new rates derived from 2x and HDR support mlx5: Add translation of new IB rates to mlx5 rates Yishai Hadas (1): Update kernel headers kernel-headers/rdma/ib_user_ioctl_cmds.h | 7 +++ kernel-headers/rdma/ib_user_ioctl_verbs.h | 7 +++ kernel-headers/rdma/rdma_netlink.h | 3 + libibverbs/CMakeLists.txt | 1 + libibverbs/cmd.c | 41 ------------ libibverbs/cmd_device.c | 101 ++++++++++++++++++++++++++++++ libibverbs/device.c | 8 +++ libibverbs/dummy_ops.c | 2 +- libibverbs/examples/devinfo.c | 3 + libibverbs/ibverbs.h | 2 + libibverbs/man/ibv_query_port.3 | 1 + libibverbs/verbs.c | 69 +++++++++++++++++++- libibverbs/verbs.h | 44 ++++++++++--- providers/bnxt_re/verbs.c | 1 - providers/mlx5/verbs.c | 4 ++ 15 files changed, 242 insertions(+), 52 deletions(-) create mode 100644 libibverbs/cmd_device.c