Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2018 13:19:52 +0000 (UTC)
From:      Slava Shwartsman <slavash@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341524 - head/sys/ofed/drivers/infiniband/core
Message-ID:  <201812051319.wB5DJqUf064425@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: slavash
Date: Wed Dec  5 13:19:52 2018
New Revision: 341524
URL: https://svnweb.freebsd.org/changeset/base/341524

Log:
  ibcore: Add support for IB_SPEED_HDR in sysfs rate printout.
  
  Submitted by:   hselasky@
  Approved by:    hselasky (mentor)
  MFC after:      1 week
  Sponsored by:   Mellanox Technologies

Modified:
  head/sys/ofed/drivers/infiniband/core/ib_sysfs.c

Modified: head/sys/ofed/drivers/infiniband/core/ib_sysfs.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/core/ib_sysfs.c	Wed Dec  5 13:19:21 2018	(r341523)
+++ head/sys/ofed/drivers/infiniband/core/ib_sysfs.c	Wed Dec  5 13:19:52 2018	(r341524)
@@ -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?201812051319.wB5DJqUf064425>