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);
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to