[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120112220328.GA10813@gondor.apana.org.au>
Date: Fri, 13 Jan 2012 09:03:28 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Ben Hutchings <bhutchings@...arflare.com>
Cc: netdev <netdev@...r.kernel.org>,
Stephen Hemminger <shemminger@...tta.com>,
netfilter-devel <netfilter-devel@...r.kernel.org>
Subject: Re: skb_checksum_help() vs GSO
On Thu, Jan 12, 2012 at 08:42:10PM +0000, Ben Hutchings wrote:
> skb_checksum_help() does:
>
> if (unlikely(skb_shinfo(skb)->gso_size)) {
> /* Let GSO fix up the checksum. */
> goto out_set_summed;
> }
> ...
> out_set_summed:
> skb->ip_summed = CHECKSUM_NONE;
> out:
> return ret;
>
> but skb_gso_segment() requires that skb->ip_summed == CHECKSUM_PARTIAL
> and WARNs if not. I don't think there's any case where it's valid to
> call both. Shouldn't skb_checksum_help() also WARN and return an error
> code instead of muddling on?
I think so.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists