aboutsummaryrefslogtreecommitdiffstats
path: root/patches/linux-2.6.16.30/net-gso-5-rcv-mss.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/linux-2.6.16.30/net-gso-5-rcv-mss.patch')
-rw-r--r--patches/linux-2.6.16.30/net-gso-5-rcv-mss.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/linux-2.6.16.30/net-gso-5-rcv-mss.patch b/patches/linux-2.6.16.30/net-gso-5-rcv-mss.patch
new file mode 100644
index 0000000000..a711d0ee5f
--- /dev/null
+++ b/patches/linux-2.6.16.30/net-gso-5-rcv-mss.patch
@@ -0,0 +1,13 @@
+diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
+index 104af5d..1fa1536 100644
+--- a/net/ipv4/tcp_input.c
++++ b/net/ipv4/tcp_input.c
+@@ -127,7 +127,7 @@ static void tcp_measure_rcv_mss(struct s
+ /* skb->len may jitter because of SACKs, even if peer
+ * sends good full-sized frames.
+ */
+- len = skb->len;
++ len = skb_shinfo(skb)->gso_size ?: skb->len;
+ if (len >= icsk->icsk_ack.rcv_mss) {
+ icsk->icsk_ack.rcv_mss = len;
+ } else {