From nobody Mon Feb 21 08:40:12 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2FE7119CF89C; Mon, 21 Feb 2022 08:40:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K2G2h6TXWz3vT5; Mon, 21 Feb 2022 08:40:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645432813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YP2aHs0fifQwjV82dWYH7G5tZLnI/eESbS8tHBGA8Yg=; b=Ngv7QbxotdiANlnG19co3tvJSrrKo3e6cAbOQ8S0y7nU5rHyJq4D2J1L6MRAyhVNctka3v jr6i0UBhxGr7MBJdp/dN4BxY1HPLuTcHftHePbVaNFqB9delmqF5E2PfSRTF57Y/qb5P0T p4Pmug6MWQPszkc3PIDmEFygbU14cazcbAp7TTGlVTmhHMmGqNdLbmcqbhv82ic/zDsAPC FyeVNGf2Nctg1iSZ2ZUQgDQXCD7w76RpXTeoVcbux+5FxqNDcFUWt2ywNczsapvpGW5WLM JvGh+qVi9KK6SDAh9jBtpcjw98l9bimf7BLZQCHMJE3h3zVIBv2ZA/z6tCYvog== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6C74D5011; Mon, 21 Feb 2022 08:40:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21L8eCdP080856; Mon, 21 Feb 2022 08:40:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21L8eC5c080853; Mon, 21 Feb 2022 08:40:12 GMT (envelope-from git) Date: Mon, 21 Feb 2022 08:40:12 GMT Message-Id: <202202210840.21L8eC5c080853@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: 91c8ffd7e60f - main - mlx5ib: Add support for NDR link speed. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 91c8ffd7e60fa7f017731cd234c01b7cddc05272 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645432813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YP2aHs0fifQwjV82dWYH7G5tZLnI/eESbS8tHBGA8Yg=; b=AaneRujvC6UMVR+Dkr00txCCbfE4rZqt3ObjwlsbfcIYSyN94KvOuP9K1A1+uywCYFGkHi eGGbCYWMFF1a4Nds7HJc0qHDkm2IPiUVvAPs4SlUq5KBT5MNe6Rj/JnYf2aSY+E4SKLLS8 b+eqpPxuGMSNV+BDd7Xz1yFbcKx2MbSXsYngySdd7FD/IS3doR852tIN+hxm5DpGolXZ0/ tb272Yo0KjxvZLzSeWz7FasNHYKLq4ZlbHrSvW3dcxvtemIynSpPqBH77wnZE80WfMamKY fNfptENWZdVMLj0DGaPDpknm/FN6J3rHcgUUSa7qjp1F/7yKwwSPve1udkTzRQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645432813; a=rsa-sha256; cv=none; b=Oljoa5j4d68n16LegUeIc7UgMI07gEYIzPhLz+dFq2prKfr1uCOItWoJMLZ90/H+fVoO+3 ZtoT1J0kO18gi/St1QHRX7VhNPu0gkso9SceYeUBa+hFptPf0cwHJh/UJ7WLLmOZiBPFXs FQucFtNnZzShNwnhICggPr4SkwXAj/pDl4QJQt6wQXZSENMAZA5Qnb8sLUz+D4WKdhA9Ql fd9xbLnYm1xuO8j48SaXXxrSClYJHUeqfF6riV/O3t4BmwzIniJiOLUkl8/evrEobXGOfb 7aAPfsB1sk4X90WIkafYnCmAGeRSM/UACVEbSwh3in3lCeUy9GPvBZIwOQo9ZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=91c8ffd7e60fa7f017731cd234c01b7cddc05272 commit 91c8ffd7e60fa7f017731cd234c01b7cddc05272 Author: Hans Petter Selasky AuthorDate: 2022-02-21 08:25:29 +0000 Commit: Hans Petter Selasky CommitDate: 2022-02-21 08:35:19 +0000 mlx5ib: Add support for NDR link speed. The IBTA specification has new speed - NDR. That speed supports signaling rate of 100Gb. mlx5 IB driver translates link modes reported by ConnectX device to IB speed and width. Added translation of new 100Gb, 200Gb and 400Gb link modes to NDR IB type and width of x1, x2 or x4 respectively. Linux commits: f946e45f59ef01ff54ffb3b1eba3a8e7915e7326 MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c index 65767483652f..acd74e3ec643 100644 --- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c +++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c @@ -259,10 +259,22 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u8 *active_speed, *active_width = IB_WIDTH_2X; *active_speed = IB_SPEED_HDR; break; + case MLX5E_PROT_MASK(MLX5E_100GAUI_1_100GBASE_CR_KR): + *active_width = IB_WIDTH_1X; + *active_speed = IB_SPEED_NDR; + break; case MLX5E_PROT_MASK(MLX5E_200GAUI_4_200GBASE_CR4_KR4): *active_width = IB_WIDTH_4X; *active_speed = IB_SPEED_HDR; break; + case MLX5E_PROT_MASK(MLX5E_200GAUI_2_200GBASE_CR2_KR2): + *active_width = IB_WIDTH_2X; + *active_speed = IB_SPEED_NDR; + break; + case MLX5E_PROT_MASK(MLX5E_400GAUI_4_400GBASE_CR4_KR4): + *active_width = IB_WIDTH_4X; + *active_speed = IB_SPEED_NDR; + break; default: *active_width = IB_WIDTH_4X; *active_speed = IB_SPEED_QDR;