Skip to content

Commit be8bd86

Browse files
author
David S. Miller
committed
[VLAN] vlan_dev: Use skb_reset_network_header().
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent afdf27c commit be8bd86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/8021q/vlan_dev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev,
382382
}
383383

384384
skb->protocol = htons(ETH_P_8021Q);
385-
skb->nh.raw = skb->data;
385+
skb_reset_network_header(skb);
386386
}
387387

388388
/* Before delegating work to the lower layer, enter our MAC-address */

0 commit comments

Comments
 (0)