From: Florian Westphal Date: Mon, 20 Oct 2014 11:49:16 +0000 (+0200) Subject: net: gso: use feature flag argument in all protocol gso handlers X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~57^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e16aa3ddf863c6b9f37eddf52503230a62dedb3;p=pandora-kernel.git net: gso: use feature flag argument in all protocol gso handlers skb_gso_segment() has a 'features' argument representing offload features available to the output path. A few handlers, e.g. GRE, instead re-fetch the features of skb->dev and use those instead of the provided ones when handing encapsulation/tunnels. Depending on dev->hw_enc_features of the output device skb_gso_segment() can then return NULL even when the caller has disabled all GSO feature bits, as segmentation of inner header thinks device will take care of segmentation. This e.g. affects the tbf scheduler, which will silently drop GRE-encap GSO skbs that did not fit the remaining token quota as the segmentation does not work when device supports corresponding hw offload capabilities. Cc: Pravin B Shelar Signed-off-by: Florian Westphal Signed-off-by: David S. Miller --- Reading git-diff-tree failed