svn commit: r290175 - head/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Fri Oct 30 01:18:08 UTC 2015


Author: np
Date: Fri Oct 30 01:18:07 2015
New Revision: 290175
URL: https://svnweb.freebsd.org/changeset/base/290175

Log:
  cxgbe/tom: decide whether to shove segments or not only if there is
  payload to transmit.
  
  MFC after:	1 week

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	Fri Oct 30 00:46:52 2015	(r290174)
+++ head/sys/dev/cxgbe/tom/t4_cpl_io.c	Fri Oct 30 01:18:07 2015	(r290175)
@@ -675,7 +675,6 @@ t4_push_frames(struct adapter *sc, struc
 			}
 		}
 
-		shove = m == NULL && !(tp->t_flags & TF_MORETOCOME);
 		space = sbspace(sb);
 
 		if (space <= sb->sb_hiwat * 3 / 8 &&
@@ -712,6 +711,7 @@ t4_push_frames(struct adapter *sc, struc
 		if (__predict_false(toep->flags & TPF_FIN_SENT))
 			panic("%s: excess tx.", __func__);
 
+		shove = m == NULL && !(tp->t_flags & TF_MORETOCOME);
 		if (plen <= max_imm) {
 
 			/* Immediate data tx */


More information about the svn-src-head mailing list