Date: Wed, 12 Dec 2018 10:23:50 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r341861 - stable/12/sys/ofed/drivers/infiniband/core Message-ID: <201812121023.wBCANowX013230@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Wed Dec 12 10:23:49 2018 New Revision: 341861 URL: https://svnweb.freebsd.org/changeset/base/341861 Log: MFC r341524: ibcore: Add support for IB_SPEED_HDR in sysfs rate printout. Sponsored by: Mellanox Technologies Modified: stable/12/sys/ofed/drivers/infiniband/core/ib_sysfs.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/ofed/drivers/infiniband/core/ib_sysfs.c ============================================================================== --- stable/12/sys/ofed/drivers/infiniband/core/ib_sysfs.c Wed Dec 12 10:22:10 2018 (r341860) +++ stable/12/sys/ofed/drivers/infiniband/core/ib_sysfs.c Wed Dec 12 10:23:49 2018 (r341861) @@ -258,8 +258,13 @@ static ssize_t rate_show(struct ib_port *p, struct por speed = " EDR"; rate = 250; break; + case IB_SPEED_HDR: + speed = " HDR"; + rate = 500; + break; case IB_SPEED_SDR: default: /* default to SDR for invalid rates */ + speed = " SDR"; rate = 25; break; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812121023.wBCANowX013230>