From: Jason Wang Date: Tue, 16 Jul 2013 05:36:34 +0000 (+0800) Subject: macvtap: do not assume 802.1Q when send vlan packets X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fbe0d47b1ee2015c288abd4e7b32224f8bfa212;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git macvtap: do not assume 802.1Q when send vlan packets The hard-coded 8021.q proto will break 802.1ad traffic. So switch to use vlan->proto. Cc: Basil Gor Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 0e5492ec753a..a7c5654a2e5c 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -873,7 +873,7 @@ static ssize_t macvtap_put_user(struct macvtap_queue *q, __be16 h_vlan_proto; __be16 h_vlan_TCI; } 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)); vlan_offset = offsetof(struct vlan_ethhdr, h_vlan_proto);