ia64/xen-unstable

view patches/linux-2.6.16.29/net-gso-4-kill-warnon.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 041be3f6b38e
children
line source
1 diff -pruN ../orig-linux-2.6.16.29/net/core/dev.c ./net/core/dev.c
2 --- ../orig-linux-2.6.16.29/net/core/dev.c 2006-09-19 13:59:46.000000000 +0100
3 +++ ./net/core/dev.c 2006-09-19 14:05:32.000000000 +0100
4 @@ -1087,11 +1087,6 @@ int skb_checksum_help(struct sk_buff *sk
5 goto out_set_summed;
7 if (unlikely(skb_shinfo(skb)->gso_size)) {
8 - static int warned;
9 -
10 - WARN_ON(!warned);
11 - warned = 1;
12 -
13 /* Let GSO fix up the checksum. */
14 goto out_set_summed;
15 }
16 @@ -1141,11 +1136,6 @@ struct sk_buff *skb_gso_segment(struct s
17 __skb_pull(skb, skb->mac_len);
19 if (unlikely(skb->ip_summed != CHECKSUM_HW)) {
20 - static int warned;
21 -
22 - WARN_ON(!warned);
23 - warned = 1;
24 -
25 if (skb_header_cloned(skb) &&
26 (err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC)))
27 return ERR_PTR(err);