Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2013 00:17:00 +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: r255410 - head/sys/dev/cxgbe/tom
Message-ID:  <201309090017.r890H0eP075364@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Mon Sep  9 00:16:59 2013
New Revision: 255410
URL: http://svnweb.freebsd.org/changeset/base/255410

Log:
  Fix a miscalculation that caused cxgbe/tom to auto-increment
  a TOE socket's tx buffer size too aggressively.
  
  Approved by:	re (delphij)

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	Sun Sep  8 21:30:53 2013	(r255409)
+++ head/sys/dev/cxgbe/tom/t4_cpl_io.c	Mon Sep  9 00:16:59 2013	(r255410)
@@ -604,7 +604,7 @@ t4_push_frames(struct adapter *sc, struc
 		if (sb->sb_flags & SB_AUTOSIZE &&
 		    V_tcp_do_autosndbuf &&
 		    sb->sb_hiwat < V_tcp_autosndbuf_max &&
-		    sbspace(sb) < sb->sb_hiwat / 8 * 7) {
+		    sbspace(sb) < sb->sb_hiwat / 8) {
 			int newsize = min(sb->sb_hiwat + V_tcp_autosndbuf_inc,
 			    V_tcp_autosndbuf_max);
 



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