Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361451
b: refs/heads/master
c: 7b02408
h: refs/heads/master
i:
  361449: 4d22ba7
  361447: 5cf3f39
v: v3
  • Loading branch information
Cong Wang authored and Jesse Gross committed Feb 23, 2013
1 parent a0a3915 commit 4c3ae37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17b682a04841233f827073b327c6533e478dfcd4
refs/heads/master: 7b024082b2b279af58e24ebd46e81777723d58da
4 changes: 2 additions & 2 deletions trunk/net/openvswitch/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int __pop_vlan_tci(struct sk_buff *skb, __be16 *current_tci)

if (skb->ip_summed == CHECKSUM_COMPLETE)
skb->csum = csum_sub(skb->csum, csum_partial(skb->data
+ ETH_HLEN, VLAN_HLEN, 0));
+ (2 * ETH_ALEN), VLAN_HLEN, 0));

vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN);
*current_tci = vhdr->h_vlan_TCI;
Expand Down Expand Up @@ -115,7 +115,7 @@ static int push_vlan(struct sk_buff *skb, const struct ovs_action_push_vlan *vla

if (skb->ip_summed == CHECKSUM_COMPLETE)
skb->csum = csum_add(skb->csum, csum_partial(skb->data
+ ETH_HLEN, VLAN_HLEN, 0));
+ (2 * ETH_ALEN), VLAN_HLEN, 0));

}
__vlan_hwaccel_put_tag(skb, ntohs(vlan->vlan_tci) & ~VLAN_TAG_PRESENT);
Expand Down

0 comments on commit 4c3ae37

Please sign in to comment.