ia64/xen-unstable

view patches/linux-2.6.16.29/net-gso-5-rcv-mss.patch @ 12273:b223ba940ed1

PV-on-HVM: Fix PV-on-HVM drivers need maddr.h included for defn of maddr_t.
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Tue Nov 07 09:29:53 2006 +0000 (2006-11-07)
parents 6677b97612a2
children
line source
1 diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
2 index 104af5d..1fa1536 100644
3 --- a/net/ipv4/tcp_input.c
4 +++ b/net/ipv4/tcp_input.c
5 @@ -127,7 +127,7 @@ static void tcp_measure_rcv_mss(struct s
6 /* skb->len may jitter because of SACKs, even if peer
7 * sends good full-sized frames.
8 */
9 - len = skb->len;
10 + len = skb_shinfo(skb)->gso_size ?: skb->len;
11 if (len >= icsk->icsk_ack.rcv_mss) {
12 icsk->icsk_ack.rcv_mss = len;
13 } else {