openvswitch: make skb->csum consistent with rest of networking stack.
Following patch keeps skb->csum correct across ovs. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:

committed by
Jesse Gross

parent
45bfa52e36
commit
b34df5e805
@@ -618,6 +618,9 @@ int ovs_flow_extract(struct sk_buff *skb, u16 in_port, struct sw_flow_key *key,
|
||||
memcpy(key->eth.dst, eth->h_dest, ETH_ALEN);
|
||||
|
||||
__skb_pull(skb, 2 * ETH_ALEN);
|
||||
/* We are going to push all headers that we pull, so no need to
|
||||
* update skb->csum here.
|
||||
*/
|
||||
|
||||
if (vlan_tx_tag_present(skb))
|
||||
key->eth.tci = htons(skb->vlan_tci);
|
||||
|
Reference in New Issue
Block a user