ia64/xen-unstable

view patches/linux-2.6.16.29/net-gso-5-rcv-mss.patch @ 12327:eea9247ad5a0

[XENOPROF] Oprofile user level samples for passive domains are being lost.
The number of of lost samples is most significant when dom0 is idle.

From: joserenato.santos@hp.com
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Nov 09 11:47:42 2006 +0000 (2006-11-09)
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 {