linux-hwg/0013-net-Start-with-correct-mac_len-in-skb_network_protocol.patch
Tobias Powalowski 323c32f878 upgpkg: 3.14.2-1
bump to latest version, added fixes for i810 hang, uefi xsdt issue, saa7134, rtl8192se, tun speed
2014-04-27 09:34:35 +00:00

14 lines
425 B
Diff

diff --git a/net/core/dev.c b/net/core/dev.c
index 45fa2f1..6088927 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2289,7 +2289,7 @@ EXPORT_SYMBOL(skb_checksum_help);
__be16 skb_network_protocol(struct sk_buff *skb, int *depth)
{
__be16 type = skb->protocol;
- int vlan_depth = ETH_HLEN;
+ int vlan_depth = skb->mac_len;
/* Tunnel gso handlers can set protocol to ethernet. */
if (type == htons(ETH_P_TEB)) {