From patchwork Sun Dec 23 17:14:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10741767 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 ACD4517E8 for ; Sun, 23 Dec 2018 17:15:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92239283B1 for ; Sun, 23 Dec 2018 17:15:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 862392873E; Sun, 23 Dec 2018 17:15:24 +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 40B0A283B1 for ; Sun, 23 Dec 2018 17:15:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725811AbeLWRPV (ORCPT ); Sun, 23 Dec 2018 12:15:21 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:41690 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725554AbeLWRPV (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:38 +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 wBNHFEX0030340; Sun, 23 Dec 2018 19:15:14 +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 wBNHFEEm007184; Sun, 23 Dec 2018 19:15:14 +0200 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id wBNHFEug007183; Sun, 23 Dec 2018 19:15:14 +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 6/6] mlx5: Add translation of new IB rates to mlx5 rates Date: Sun, 23 Dec 2018 19:14:57 +0200 Message-Id: <1545585297-6677-7-git-send-email-yishaih@mellanox.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1545585297-6677-1-git-send-email-yishaih@mellanox.com> References: <1545585297-6677-1-git-send-email-yishaih@mellanox.com> 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 From: Michael Guralnik Add translation of new IB rates added due to 2x and HDR support. Signed-off-by: Michael Guralnik Signed-off-by: Yishai Hadas --- providers/mlx5/verbs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/providers/mlx5/verbs.c b/providers/mlx5/verbs.c index 7d4ad33..bab675f 100644 --- a/providers/mlx5/verbs.c +++ b/providers/mlx5/verbs.c @@ -2361,6 +2361,10 @@ static const uint8_t ib_to_mlx5_rate_table[] = { 15, /* 100 Gbps to 120 Gbps */ 0, /* 200 Gbps to unlimited */ 0, /* 300 Gbps to unlimited */ + 9, /* 28 Gbps to 30 Gbps */ + 13, /* 50 Gbps to 60 Gbps */ + 0, /* 400 Gbps to unlimited */ + 0, /* 600 Gbps to unlimited */ }; static uint8_t ah_attr_to_mlx5_rate(enum ibv_rate ah_static_rate)