direct-io.hg

annotate patches/linux-2.6.16.29/net-gso-4-kill-warnon.patch @ 11536:041be3f6b38e

[linux patches] Update patches for linux-2.6.16.29.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author Christian Limpach <Christian.Limpach@xensource.com>
date Tue Sep 19 14:26:47 2006 +0100 (2006-09-19)
parents patches/linux-2.6.16.13/net-gso-4-kill-warnon.patch@9519445d9e9d
children
rev   line source
Christian@11536 1 diff -pruN ../orig-linux-2.6.16.29/net/core/dev.c ./net/core/dev.c
Christian@11536 2 --- ../orig-linux-2.6.16.29/net/core/dev.c 2006-09-19 13:59:46.000000000 +0100
Christian@11536 3 +++ ./net/core/dev.c 2006-09-19 14:05:32.000000000 +0100
kfraser@11082 4 @@ -1087,11 +1087,6 @@ int skb_checksum_help(struct sk_buff *sk
kfraser@11082 5 goto out_set_summed;
kfraser@11082 6
kfraser@11082 7 if (unlikely(skb_shinfo(skb)->gso_size)) {
kfraser@11082 8 - static int warned;
kfraser@11082 9 -
kfraser@11082 10 - WARN_ON(!warned);
kfraser@11082 11 - warned = 1;
kfraser@11082 12 -
kfraser@11082 13 /* Let GSO fix up the checksum. */
kfraser@11082 14 goto out_set_summed;
kfraser@11082 15 }
kfraser@11082 16 @@ -1141,11 +1136,6 @@ struct sk_buff *skb_gso_segment(struct s
kfraser@11082 17 __skb_pull(skb, skb->mac_len);
kfraser@11082 18
kfraser@11082 19 if (unlikely(skb->ip_summed != CHECKSUM_HW)) {
kfraser@11082 20 - static int warned;
kfraser@11082 21 -
kfraser@11082 22 - WARN_ON(!warned);
kfraser@11082 23 - warned = 1;
kfraser@11082 24 -
kfraser@11082 25 if (skb_header_cloned(skb) &&
kfraser@11082 26 (err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC)))
kfraser@11082 27 return ERR_PTR(err);