From: Ben Hutchings Date: Tue, 17 Jan 2012 07:57:56 +0000 (+0000) Subject: net: WARN if skb_checksum_help() is called on skb requiring segmentation X-Git-Tag: v3.3-rc1~17^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36c92474498ad6cc3afb24b91a67a444d79978fe;p=pandora-kernel.git net: WARN if skb_checksum_help() is called on skb requiring segmentation skb_checksum_help() has never done anything useful with skbs that require segmentation. Setting skb->ip_summed = CHECKSUM_NONE makes them invalid and provokes a later WARNing in skb_gso_segment(). Passing such an skb to skb_checksum_help() indicates a bug, so we should warn about it immediately. Move the warning from skb_gso_segment() into a shared function, and add gso_type and gso_size to it. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed