[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120717120358.16611.98190.sendpatchset@localhost.localdomain>
Date: Tue, 17 Jul 2012 17:33:58 +0530
From: Krishna Kumar <krkumar2@...ibm.com>
To: davem@...emloft.net, eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, Krishna Kumar <krkumar2@...ibm.com>
Subject: [PATCH] [RFC] tcp: TSQ - do not always throttle.
Do not throttle if sysctl_tcp_limit_output_bytes==0.
Maybe it is better to throttle earlier in the loop, after
calling tcp_init_tso_segs().
Signed-off-by: Krishna Kumar <krkumar2@...ibm.com>
---
tcp_output.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -ruNp org/net/ipv4/tcp_output.c new/net/ipv4/tcp_output.c
--- org/net/ipv4/tcp_output.c 2012-07-17 09:56:12.000000000 +0530
+++ new/net/ipv4/tcp_output.c 2012-07-17 13:02:12.476111697 +0530
@@ -1948,7 +1948,8 @@ static bool tcp_write_xmit(struct sock *
/* TSQ : sk_wmem_alloc accounts skb truesize,
* including skb overhead. But thats OK.
*/
- if (atomic_read(&sk->sk_wmem_alloc) >= sysctl_tcp_limit_output_bytes) {
+ if (sysctl_tcp_limit_output_bytes > 0 &&
+ atomic_read(&sk->sk_wmem_alloc) >= sysctl_tcp_limit_output_bytes) {
set_bit(TSQ_THROTTLED, &tp->tsq_flags);
break;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists