diff options
Diffstat (limited to 'net/openvswitch/actions.c')
-rw-r--r-- | net/openvswitch/actions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index d4d5363c7ba7..894b6cbdd929 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c | |||
@@ -98,7 +98,7 @@ static int pop_vlan(struct sk_buff *skb) | |||
98 | if (unlikely(err)) | 98 | if (unlikely(err)) |
99 | return err; | 99 | return err; |
100 | 100 | ||
101 | __vlan_hwaccel_put_tag(skb, ntohs(tci)); | 101 | __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(tci)); |
102 | return 0; | 102 | return 0; |
103 | } | 103 | } |
104 | 104 | ||
@@ -110,7 +110,7 @@ static int push_vlan(struct sk_buff *skb, const struct ovs_action_push_vlan *vla | |||
110 | /* push down current VLAN tag */ | 110 | /* push down current VLAN tag */ |
111 | current_tag = vlan_tx_tag_get(skb); | 111 | current_tag = vlan_tx_tag_get(skb); |
112 | 112 | ||
113 | if (!__vlan_put_tag(skb, current_tag)) | 113 | if (!__vlan_put_tag(skb, skb->vlan_proto, current_tag)) |
114 | return -ENOMEM; | 114 | return -ENOMEM; |
115 | 115 | ||
116 | if (skb->ip_summed == CHECKSUM_COMPLETE) | 116 | if (skb->ip_summed == CHECKSUM_COMPLETE) |
@@ -118,7 +118,7 @@ static int push_vlan(struct sk_buff *skb, const struct ovs_action_push_vlan *vla | |||
118 | + (2 * ETH_ALEN), VLAN_HLEN, 0)); | 118 | + (2 * ETH_ALEN), VLAN_HLEN, 0)); |
119 | 119 | ||
120 | } | 120 | } |
121 | __vlan_hwaccel_put_tag(skb, ntohs(vlan->vlan_tci) & ~VLAN_TAG_PRESENT); | 121 | __vlan_hwaccel_put_tag(skb, vlan->vlan_tpid, ntohs(vlan->vlan_tci) & ~VLAN_TAG_PRESENT); |
122 | return 0; | 122 | return 0; |
123 | } | 123 | } |
124 | 124 | ||