From: John Fastabend Date: Wed, 16 Jun 2010 14:18:12 +0000 (+0000) Subject: net: consolidate netif_needs_gso() checks X-Git-Tag: v2.6.36-rc1~571^2~513 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6afff0caa721211e8c04bdc7627ee3bff95bcb95;p=pandora-kernel.git net: consolidate netif_needs_gso() checks netif_needs_gso() is checked twice in the TX path once, before submitting the skb to the qdisc and once after it is dequeued from the qdisc just before calling ndo_hard_start(). This opens a window for a user to change the gso/tso or tx checksum settings that can cause netif_needs_gso to be true in one check and false in the other. Specifically, changing TX checksum setting may cause the warning in skb_gso_segment() to be triggered if the checksum is calculated earlier. This consolidates the netif_needs_gso() calls so that the stack only checks if gso is needed in dev_hard_start_xmit(). Signed-off-by: John Fastabend Cc: Herbert Xu Signed-off-by: Jeff Kirsher Acked-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed