Skip to content

Commit 0fbe0d4

Browse files
Jason Wangdavem330
authored andcommitted
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 <basil.gor@gmail.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 82a19eb commit 0fbe0d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/macvtap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ static ssize_t macvtap_put_user(struct macvtap_queue *q,
873873
__be16 h_vlan_proto;
874874
__be16 h_vlan_TCI;
875875
} veth;
876-
veth.h_vlan_proto = htons(ETH_P_8021Q);
876+
veth.h_vlan_proto = skb->vlan_proto;
877877
veth.h_vlan_TCI = htons(vlan_tx_tag_get(skb));
878878

879879
vlan_offset = offsetof(struct vlan_ethhdr, h_vlan_proto);

0 commit comments

Comments
 (0)