From patchwork Wed Sep 20 10:07:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13392460 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4DED154B7 for ; Wed, 20 Sep 2023 10:08:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA704C433C7; Wed, 20 Sep 2023 10:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695204495; bh=nk9sUgWDYC5lpjFZ2LPWQ3HlWeTCNQ9xYNRq9k9Bbnw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wm5c44I6MfX1bBfajxOD6q3Tef68IFN8FwnurRhWTeFcnucuF81VdADL1RIKUOICe tWfh28QwfKjuEEtEjWIgq9xSJ0MkRKt/uMoPmvgg3VSPRlDhP53orBw1b2nF6eaIwj BttVVwaznlnovPNaXQn531yFoxyWVxtwgx9t8E92ar+uqKR0Ed7ABUoKyLtB1iAooA znSHCWApt+cA4lZEVKPjPD70OrRq47f0lw0lafa4AOuYAu8zHVrhT+J5zUQHBtGN5z KXkCKl1Zwfw38PArAaoEYFgXCZBQ/Y5AMlfesTakEr7494pri2hjJxY5dRedDis+ne zPI17gs+GlFsA== From: Leon Romanovsky To: Jason Gunthorpe Cc: Patrisious Haddad , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-rdma@vger.kernel.org, Mark Zhang , netdev@vger.kernel.org, Or Har-Toov , Paolo Abeni , Saeed Mahameed Subject: [PATCH rdma-next 6/6] RDMA/ipoib: Add support for XDR speed in ethtool Date: Wed, 20 Sep 2023 13:07:45 +0300 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Patrisious Haddad The IBTA specification 1.7 has new speed - XDR, supporting signaling rate of 200Gb. Ethtool support of IPoIB driver translates IB speed to signaling rate. Added translation of XDR IB type to rate of 200Gb Ethernet speed. Signed-off-by: Patrisious Haddad Reviewed-by: Mark Zhang Signed-off-by: Leon Romanovsky --- drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c index 8af99b18d361..7da94fb8d7fa 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c @@ -174,6 +174,8 @@ static inline int ib_speed_enum_to_int(int speed) return SPEED_50000; case IB_SPEED_NDR: return SPEED_100000; + case IB_SPEED_XDR: + return SPEED_200000; } return SPEED_UNKNOWN;