diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-06-13 11:11:44 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2013-06-14 15:09:12 -0700 |
commit | b34df5e805a6e98cae0bc5bc80c1b52d9ff811de (patch) | |
tree | cc8d94ee92741fe21380180aeff3a6f12bb44adb /net/openvswitch/flow.c | |
parent | 45bfa52e36ef016b789eca73c7847db3f7b4742d (diff) |
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>
Diffstat (limited to 'net/openvswitch/flow.c')
-rw-r--r-- | net/openvswitch/flow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c index 33df0913358d..fca483360ce2 100644 --- a/net/openvswitch/flow.c +++ b/net/openvswitch/flow.c @@ -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); |