From patchwork Mon Aug 24 10:58:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 262023 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3441FC433E1 for ; Mon, 24 Aug 2020 10:58:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 00DFE20738 for ; Mon, 24 Aug 2020 10:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598266732; bh=NGaN4hWRn2JyhMzumM55GmB66Mo+++daoKByAF6LAZM=; h=From:To:Cc:Subject:Date:List-ID:From; b=RKGowgsb/R8hFLbe62lLvAQUQHOok+5xo2G5tlsWF+9xoFbbvD/xFXQvEEj7SJ5rX o3UHUGyMEEs0HM8W5zkmeeKraUHx31UcU8d96Dc3IVdQscbKP1fX0YaPMPIOOpqTpJ nS5O61hODu7lMvuCpLSc7sUrWjxFSSCnBIC6mDfs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727103AbgHXK6t (ORCPT ); Mon, 24 Aug 2020 06:58:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:48642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbgHXK6h (ORCPT ); Mon, 24 Aug 2020 06:58:37 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 17E3F20738; Mon, 24 Aug 2020 10:58:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598266711; bh=NGaN4hWRn2JyhMzumM55GmB66Mo+++daoKByAF6LAZM=; h=From:To:Cc:Subject:Date:From; b=Vc6DEwWMhwoS32Sq+mkxrcxcKdUi/g4FLxu8XOjt57cPGbHO93zLU6g5+IgbIBVJD otIEMZhxns20d6jCZoJj/y4AIx1pe3/YqMxQTQR2tqMm78ZfIkleI5lTNnj2shXkTj vfTPzlS1cWW/Motf19nVhth1TTU093EVe7S3sZsw= From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , Achiad Shochat , Adit Ranadive , Aharon Landau , Ariel Elior , Dennis Dalessandro , Devesh Sharma , Jakub Kicinski , linux-rdma@vger.kernel.org, Michael Guralnik , Michal Kalderon , Mike Marciniszyn , Naresh Kumar PBS , netdev@vger.kernel.org, Saeed Mahameed , Selvin Xavier , Somnath Kotur , Sriharsha Basavapatna , VMware PV-Drivers Subject: [PATCH rdma-next 0/3] Fix in-kernel active_speed type Date: Mon, 24 Aug 2020 13:58:23 +0300 Message-Id: <20200824105826.1093613-1-leon@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Leon Romanovsky IBTA declares speed as 16 bits, but kernel stores it in u8. This series fixes in-kernel declaration while keeping external interface intact. Thanks Aharon Landau (3): net/mlx5: Refactor query port speed functions RDMA/mlx5: Delete duplicated mlx5_ptys_width enum RDMA: Fix link active_speed size .../infiniband/core/uverbs_std_types_device.c | 3 +- drivers/infiniband/core/verbs.c | 2 +- drivers/infiniband/hw/bnxt_re/bnxt_re.h | 2 +- drivers/infiniband/hw/hfi1/verbs.c | 2 +- drivers/infiniband/hw/mlx5/main.c | 41 +++++++------------ drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +- drivers/infiniband/hw/qedr/verbs.c | 2 +- drivers/infiniband/hw/qib/qib.h | 6 +-- .../infiniband/hw/vmw_pvrdma/pvrdma_verbs.h | 2 +- .../mellanox/mlx5/core/ipoib/ethtool.c | 31 ++------------ .../net/ethernet/mellanox/mlx5/core/port.c | 23 ++--------- include/linux/mlx5/port.h | 15 +++++-- include/rdma/ib_verbs.h | 4 +- 13 files changed, 47 insertions(+), 88 deletions(-) --- 2.26.2