svn commit: r352268 - stable/12/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Fri Sep 13 00:58:34 UTC 2019


Author: np
Date: Fri Sep 13 00:58:33 2019
New Revision: 352268
URL: https://svnweb.freebsd.org/changeset/base/352268

Log:
  MFC r351524:
  
  cxgbe/t4_tom: Limit work requests with immediate payload to a single
  descriptor.  The per-tid tx credits are in demand during active Tx and
  it's best not to use too many just for payload.
  
  Sponsored by:	Chelsio Communications

Modified:
  stable/12/sys/dev/cxgbe/tom/t4_cpl_io.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- stable/12/sys/dev/cxgbe/tom/t4_cpl_io.c	Fri Sep 13 00:53:09 2019	(r352267)
+++ stable/12/sys/dev/cxgbe/tom/t4_cpl_io.c	Fri Sep 13 00:58:33 2019	(r352268)
@@ -562,7 +562,7 @@ t4_close_conn(struct adapter *sc, struct toepcb *toep)
 static inline int
 max_imm_payload(int tx_credits)
 {
-	const int n = 2;	/* Use only up to 2 desc for imm. data WR */
+	const int n = 1;	/* Use no more than one desc for imm. data WR */
 
 	KASSERT(tx_credits >= 0 &&
 		tx_credits <= MAX_OFLD_TX_CREDITS,


More information about the svn-src-all mailing list