|
@@ -873,7 +873,7 @@ static ssize_t macvtap_put_user(struct macvtap_queue *q,
|
|
__be16 h_vlan_proto;
|
|
__be16 h_vlan_proto;
|
|
__be16 h_vlan_TCI;
|
|
__be16 h_vlan_TCI;
|
|
} veth;
|
|
} veth;
|
|
- veth.h_vlan_proto = htons(ETH_P_8021Q);
|
|
|
|
|
|
+ veth.h_vlan_proto = skb->vlan_proto;
|
|
veth.h_vlan_TCI = htons(vlan_tx_tag_get(skb));
|
|
veth.h_vlan_TCI = htons(vlan_tx_tag_get(skb));
|
|
|
|
|
|
vlan_offset = offsetof(struct vlan_ethhdr, h_vlan_proto);
|
|
vlan_offset = offsetof(struct vlan_ethhdr, h_vlan_proto);
|