direct-io.hg

view patches/linux-2.6.18/net-gso-5-rcv-mss.patch @ 14379:460dac5742cf

Implement VM_metrics Xen-API class.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Mar 14 20:41:56 2007 +0000 (2007-03-14)
parents 3adf00179a63
children
line source
1 diff -pruN ../orig-linux-2.6.18/net/ipv4/tcp_input.c ./net/ipv4/tcp_input.c
2 --- ../orig-linux-2.6.18/net/ipv4/tcp_input.c 2006-09-20 04:42:06.000000000 +0100
3 +++ ./net/ipv4/tcp_input.c 2007-01-12 18:10:16.000000000 +0000
4 @@ -127,7 +127,7 @@ static void tcp_measure_rcv_mss(struct s
5 /* skb->len may jitter because of SACKs, even if peer
6 * sends good full-sized frames.
7 */
8 - len = skb->len;
9 + len = skb_shinfo(skb)->gso_size ?: skb->len;
10 if (len >= icsk->icsk_ack.rcv_mss) {
11 icsk->icsk_ack.rcv_mss = len;
12 } else {