Message ID | 1361510722-27831-1-git-send-email-amwang@redhat.com |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
On Fri, 2013-02-22 at 13:25 +0800, Cong Wang wrote: > @@ -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); __pop_vlan_tci() has same problem... I will resend this patch. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index ac2defe..a0e202c 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c @@ -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);