From nobody Thu Mar 03 14:30:09 2022 X-Original-To: dev-commits-src-branches@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 5D55819E97F2; Thu, 3 Mar 2022 14:30:10 +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 4K8YKs436Dz3PlL; Thu, 3 Mar 2022 14:30:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646317809; 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=dJUn/d0xbzo8gXW5FLMMZWvPpIaediPmfCi3F29SjcE=; b=m065h4kjHbNJjuZfuzqWPh3UQcmIEYCwTBa9B7VstxC+N8P2vx3kq/y+T8ji7kCy5pqDC5 xDE1jZhJqQUr4Fj7wgxfBqPrsQnYAHRIJzzQo3J2E3CmL1fq1TkH96Iv4N09xxZbz4FpQU 6ogiTuMCQnhodvsWTIUGTj0rW7D6WePp+Co/xkR30/K4EXcaKQYDeKkYugVVx/2xgjiO0P ALK6xLo303qv1UjOk3vrirl1nZGfmRscy6uL17MUdDizYWyZKqJdwtJqfLAzLQjNwa0+g1 mUW/wQuTiEqmOv0aBAgx/chVsbcT0GYMxocchMEuqfJCu8T8Iwkywexr0HK1sg== 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 41E621978C; Thu, 3 Mar 2022 14:30:09 +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 223EU9Ex098799; Thu, 3 Mar 2022 14:30:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 223EU9hu098796; Thu, 3 Mar 2022 14:30:09 GMT (envelope-from git) Date: Thu, 3 Mar 2022 14:30:09 GMT Message-Id: <202203031430.223EU9hu098796@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: 36b2d16b516c - stable/13 - ibcore: Add support for NDR link speed. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 36b2d16b516c64cec16b7f3ed578c31f78e0e4ba Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646317809; 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=dJUn/d0xbzo8gXW5FLMMZWvPpIaediPmfCi3F29SjcE=; b=EOik+fQea8IErGXhvMPKeRI1rf+eAbOoDnC+bMHETkuoFvuUR+zusD3VqukEqtg1orIt8P 5PzbeQd3RA+yfyqsMcHsLiH34P0GJElYaNs8l6bZKDHdZfsJMSwyRfw6Q3dn6shm0V8rdl ZKBPGGcMcsmaXvKkCPBM3vPy870WcuANdo1TLT+ITlfsekdOZiQ3K4WZal8YgT8c5RI9u+ 3Gd8AtanMICIWqL36cWQe7zis09dz8oRhYMS2PUTdTyv4uXnRG4IE4Kac3XXg4Rcaw+Tc1 4K3bc2Oe1BvRR9qfOJB/HlbaZXJDyU0nZaZeRUAaQWpGXk1hkLmSpCwf3gkt3g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646317809; a=rsa-sha256; cv=none; b=GGnqsJvKnfvHnVmEwJps52mFd2vSEC1R8iAAw5p7fgmn4k62BaChV6YvunE1UZo940S3pB QtFUB/9aX28JixHckCiSTb15iBFXbaXUZ1ZxOyZxDGrcDW6yCI7u5d2mWlqbgMiRkt9y+E UAKzXmCuqVEcTuCUCO7tyReGVvsqsFfTDUMz/VuKfCf7UzpX9uYAAL2Uy0HUYqmCPNhYli VyOVwgq5u/qGd+tTs5EbHhodrN/K1X4OJ6RcxBEEkfIDipvdDQ60Maiy/HbjJaF79Vx6J0 vHKruPa9OhXgDk7Xxc8pWFtNjmIAdpWYTViuGdJZpCar9oThSFsZA6nGv6uUNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=36b2d16b516c64cec16b7f3ed578c31f78e0e4ba commit 36b2d16b516c64cec16b7f3ed578c31f78e0e4ba Author: Hans Petter Selasky AuthorDate: 2022-02-21 08:25:10 +0000 Commit: Hans Petter Selasky CommitDate: 2022-03-03 14:28:53 +0000 ibcore: Add support for NDR link speed. Add new IBTA speed NDR, supporting signaling rate of 100Gb. Linux commit: c7adf7717301558e8852949d8e3dc3748d1a4a97 Sponsored by: NVIDIA Networking (cherry picked from commit 1aa593b90ca96acb0d996daef9739ec98538f0db) --- sys/ofed/drivers/infiniband/core/ib_sysfs.c | 4 ++++ sys/ofed/include/rdma/ib_verbs.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/ofed/drivers/infiniband/core/ib_sysfs.c b/sys/ofed/drivers/infiniband/core/ib_sysfs.c index 806f4aba6c76..4cbb69ad899b 100644 --- a/sys/ofed/drivers/infiniband/core/ib_sysfs.c +++ b/sys/ofed/drivers/infiniband/core/ib_sysfs.c @@ -277,6 +277,10 @@ static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused, speed = " HDR"; rate = 500; break; + case IB_SPEED_NDR: + speed = " NDR"; + rate = 1000; + break; case IB_SPEED_SDR: default: /* default to SDR for invalid rates */ speed = " SDR"; diff --git a/sys/ofed/include/rdma/ib_verbs.h b/sys/ofed/include/rdma/ib_verbs.h index 723db4a659cf..697dc3fbc98f 100644 --- a/sys/ofed/include/rdma/ib_verbs.h +++ b/sys/ofed/include/rdma/ib_verbs.h @@ -434,7 +434,8 @@ enum ib_port_speed { IB_SPEED_FDR10 = 8, IB_SPEED_FDR = 16, IB_SPEED_EDR = 32, - IB_SPEED_HDR = 64 + IB_SPEED_HDR = 64, + IB_SPEED_NDR = 128 }; /**