Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 2015 01:18:07 +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: r290175 - head/sys/dev/cxgbe/tom
Message-ID:  <201510300118.t9U1I7pQ012765@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



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