datapath: Fix masked key serialization.
authorPravin B Shelar <pshelar@nicira.com>
Sun, 15 Feb 2015 22:58:51 +0000 (14:58 -0800)
committerJoe Stringer <joestringer@nicira.com>
Fri, 27 Feb 2015 18:58:37 +0000 (10:58 -0800)
Fix typo where mask is used rather than key.

Fixes: 74ed7ab9264("openvswitch: Add support for unique flow IDs.")
Reported-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/flow_netlink.c

index 6f3fa70..890a889 100644 (file)
@@ -1515,7 +1515,7 @@ int ovs_nla_put_identifier(const struct sw_flow *flow, struct sk_buff *skb)
 /* Called with ovs_mutex or RCU read lock. */
 int ovs_nla_put_masked_key(const struct sw_flow *flow, struct sk_buff *skb)
 {
-       return ovs_nla_put_key(&flow->mask->key, &flow->key,
+       return ovs_nla_put_key(&flow->key, &flow->key,
                                OVS_FLOW_ATTR_KEY, false, skb);
 }