Author: np
Date: Tue Aug 27 01:16:02 2019
New Revision: 351524
URL: https://svnweb.freebsd.org/changeset/base/351524

Log:
  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:
  head/sys/dev/cxgbe/tom/t4_cpl_io.c

Modified: head/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_cpl_io.c  Tue Aug 27 00:29:30 2019        
(r351523)
+++ head/sys/dev/cxgbe/tom/t4_cpl_io.c  Tue Aug 27 01:16:02 2019        
(r351524)
@@ -540,7 +540,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,
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to