vlan: Update skb->mac_header in __vlan_put_tag().

After moving mac addresses in __vlan_put_tag() skb->mac_header needs
to be updated.

Reported-by: Karl Hiramoto <karl@hiramoto.org>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Jarek Poplawski and committed by David S. Miller e4dd6188 ce03aadd

+1
+1
include/linux/if_vlan.h
··· 210 210 211 211 /* Move the mac addresses to the beginning of the new header. */ 212 212 memmove(skb->data, skb->data + VLAN_HLEN, 2 * VLAN_ETH_ALEN); 213 + skb->mac_header -= VLAN_HLEN; 213 214 214 215 /* first, the ethernet type */ 215 216 veth->h_vlan_proto = htons(ETH_P_8021Q);