summaryrefslogtreecommitdiffstats
path: root/net/openvswitch/flow.c
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2013-06-13 11:11:44 -0700
committerJesse Gross <jesse@nicira.com>2013-06-14 15:09:12 -0700
commitb34df5e805a6e98cae0bc5bc80c1b52d9ff811de (patch)
treecc8d94ee92741fe21380180aeff3a6f12bb44adb /net/openvswitch/flow.c
parent45bfa52e36ef016b789eca73c7847db3f7b4742d (diff)
downloadop-kernel-dev-b34df5e805a6e98cae0bc5bc80c1b52d9ff811de.zip
op-kernel-dev-b34df5e805a6e98cae0bc5bc80c1b52d9ff811de.tar.gz
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c
index 33df091..fca4833 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);
OpenPOWER on IntegriCloud