|
@@ -2284,7 +2284,7 @@ EXPORT_SYMBOL(skb_checksum_help);
|
|
__be16 skb_network_protocol(struct sk_buff *skb, int *depth)
|
|
__be16 skb_network_protocol(struct sk_buff *skb, int *depth)
|
|
{
|
|
{
|
|
__be16 type = skb->protocol;
|
|
__be16 type = skb->protocol;
|
|
- int vlan_depth = ETH_HLEN;
|
|
|
|
|
|
+ int vlan_depth = skb->mac_len;
|
|
|
|
|
|
/* Tunnel gso handlers can set protocol to ethernet. */
|
|
/* Tunnel gso handlers can set protocol to ethernet. */
|
|
if (type == htons(ETH_P_TEB)) {
|
|
if (type == htons(ETH_P_TEB)) {
|