This is a note to let you know that I've just added the patch titled

    [PATCH 22/28] tcp: fix tcp_grow_window() for large incoming frames

to the 3.3-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tcp-fix-tcp_grow_window-for-large-incoming-frames.patch
and it can be found in the queue-3.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 2c1da79e03a2026caf4293d208c46702da35252b Mon Sep 17 00:00:00 2001
From: Eric Dumazet <[email protected]>
Date: Mon, 16 Apr 2012 23:28:07 +0000
Subject: [PATCH 22/28] tcp: fix tcp_grow_window() for large incoming frames


From: Eric Dumazet <[email protected]>

[ Upstream commit 4d846f02392a710f9604892ac3329e628e60a230 ]

tcp_grow_window() has to grow rcv_ssthresh up to window_clamp, allowing
sender to increase its window.

tcp_grow_window() still assumes a tcp frame is under MSS, but its no
longer true with LRO/GRO.

This patch fixes one of the performance issue we noticed with GRO on.

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Neal Cardwell <[email protected]>
Cc: Tom Herbert <[email protected]>
Acked-by: Neal Cardwell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 net/ipv4/tcp_input.c |    1 +
 1 file changed, 1 insertion(+)

--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -333,6 +333,7 @@ static void tcp_grow_window(struct sock
                        incr = __tcp_grow_window(sk, skb);
 
                if (incr) {
+                       incr = max_t(int, incr, 2 * skb->len);
                        tp->rcv_ssthresh = min(tp->rcv_ssthresh + incr,
                                               tp->window_clamp);
                        inet_csk(sk)->icsk_ack.quick |= 1;


Patches currently in stable-queue which might be from [email protected] are

queue-3.3/tcp-fix-tcp_maxseg-for-established-ipv6-passive-sockets.patch
queue-3.3/tcp-fix-tcp_grow_window-for-large-incoming-frames.patch
queue-3.3/tcp-fix-tcp_rcv_rtt_update-use-of-an-unscaled-rtt-sample.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to