Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2018 14:36:44 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337540 - head/sys/dev/cxgbe
Message-ID:  <201808091436.w79Eaifp068805@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Thu Aug  9 14:36:44 2018
New Revision: 337540
URL: https://svnweb.freebsd.org/changeset/base/337540

Log:
  cxgbe(4): Display pkt-size and burst-size in traffic class parameters.

Modified:
  head/sys/dev/cxgbe/t4_sched.c

Modified: head/sys/dev/cxgbe/t4_sched.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sched.c	Thu Aug  9 14:21:27 2018	(r337539)
+++ head/sys/dev/cxgbe/t4_sched.c	Thu Aug  9 14:36:44 2018	(r337540)
@@ -650,6 +650,10 @@ sysctl_tc_params(SYSCTL_HANDLER_ARGS)
 		break;
 	case SCHED_CLASS_MODE_FLOW:
 		sbuf_printf(sb, " per-flow");
+		if (tc.pktsize > 0)
+			sbuf_printf(sb, " pkt-size %u", tc.pktsize);
+		if (tc.burstsize > 0)
+			sbuf_printf(sb, " burst-size %u", tc.burstsize);
 		break;
 	default:
 		rc = ENXIO;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808091436.w79Eaifp068805>