From: Pravin B Shelar Date: Sun, 15 Feb 2015 22:58:51 +0000 (-0800) Subject: datapath: Fix masked key serialization. X-Git-Tag: v2.4.0~549 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=b037bc5a463dfb4ff6fa0680068a088c495a7246 datapath: Fix masked key serialization. Fix typo where mask is used rather than key. Fixes: 74ed7ab9264("openvswitch: Add support for unique flow IDs.") Reported-by: Joe Stringer Signed-off-by: Pravin B Shelar --- diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c index 6f3fa7017..890a88997 100644 --- a/datapath/flow_netlink.c +++ b/datapath/flow_netlink.c @@ -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); }