summaryrefslogtreecommitdiffstats
path: root/linux-drd/0013-net-Start-with-correct-mac_len-in-skb_network_protocol.patch
diff options
context:
space:
mode:
Diffstat (limited to 'linux-drd/0013-net-Start-with-correct-mac_len-in-skb_network_protocol.patch')
-rw-r--r--linux-drd/0013-net-Start-with-correct-mac_len-in-skb_network_protocol.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux-drd/0013-net-Start-with-correct-mac_len-in-skb_network_protocol.patch b/linux-drd/0013-net-Start-with-correct-mac_len-in-skb_network_protocol.patch
new file mode 100644
index 0000000..2840f19
--- /dev/null
+++ b/linux-drd/0013-net-Start-with-correct-mac_len-in-skb_network_protocol.patch
@@ -0,0 +1,13 @@
+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)) {