Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 19:50:12 +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: r337168 - head/sys/dev/cxgbe
Message-ID:  <201808021950.w72JoCE9098070@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Thu Aug  2 19:50:12 2018
New Revision: 337168
URL: https://svnweb.freebsd.org/changeset/base/337168

Log:
  cxgbe(4): Use the tx credit limit for ethofld rather than TOE when
  initializing the softc for a per-flow rate limiter.  The limit happens
  to be the same for both and the existing code worked by accident for
  common configurations.
  
  Reported by:	gallatin@
  Sponsored by:	Chelsio Communications

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  2 19:37:13 2018	(r337167)
+++ head/sys/dev/cxgbe/t4_sched.c	Thu Aug  2 19:50:12 2018	(r337168)
@@ -597,7 +597,7 @@ failed:
 	cst->port_id = pi->port_id;
 	cst->schedcl = schedcl;
 	cst->max_rate = params->rate_limit.max_rate;
-	cst->tx_credits = sc->params.ofldq_wr_cred;
+	cst->tx_credits = sc->params.eo_wr_cred;
 	cst->tx_total = cst->tx_credits;
 	cst->plen = 0;
 	cst->ctrl0 = htobe32(V_TXPKT_OPCODE(CPL_TX_PKT) |



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