From: Toshiaki Makita Date: Thu, 29 Jan 2015 11:37:07 +0000 (+0900) Subject: net: Fix vlan_get_protocol for stacked vlan X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~184^2~26^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4bcef3fbe887ff93b58da4fcf6df1eee416e8fa;p=pandora-kernel.git net: Fix vlan_get_protocol for stacked vlan vlan_get_protocol() could not get network protocol if a skb has a 802.1ad vlan tag or multiple vlans, which caused incorrect checksum calculation in several drivers. Fix vlan_get_protocol() to retrieve network protocol instead of incorrect vlan protocol. As the logic is the same as skb_network_protocol(), create a common helper function __vlan_get_protocol() and call it from existing functions. Signed-off-by: Toshiaki Makita Signed-off-by: David S. Miller --- Reading git-diff-tree failed