2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-19 14:37:21 +00:00

datapath: Remove vlan compat support

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
Pravin B Shelar
2013-09-04 11:35:13 -07:00
parent 237c4f2a01
commit 07ac71eaa8
11 changed files with 43 additions and 124 deletions

View File

@@ -542,8 +542,14 @@ static int ovs_tnl_send(struct vport *vport, struct sk_buff *skb,
skb->next = NULL;
if (unlikely(vlan_deaccel_tag(skb)))
goto next;
if (vlan_tx_tag_present(skb)) {
if (unlikely(!__vlan_put_tag(skb,
skb->vlan_proto,
vlan_tx_tag_get(skb))))
goto next;
vlan_set_tci(skb, 0);
}
frag_len = skb->len;
skb_push(skb, tunnel_hlen);