tcp: fix tcp_grow_window() for large incoming frames
authorEric Dumazet <edumazet@google.com>
Mon, 16 Apr 2012 23:28:07 +0000 (23:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Apr 2012 02:32:00 +0000 (22:32 -0400)
commit4d846f02392a710f9604892ac3329e628e60a230
tree8c8a8cd663914e546b324d0657fdfad2c8becdee
parent48159f009f5f92ef5962e7c278ac615d74242fa5
tcp: fix tcp_grow_window() for large incoming frames

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 <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Tom Herbert <therbert@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c