From: Pravin B Shelar Date: Thu, 12 Feb 2015 17:58:48 +0000 (-0800) Subject: openvswitch: Fix key serialization. X-Git-Tag: v4.0-rc1~51^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26ad0b83587fb6e9a20eef388b0587ada3da5d06;p=platform%2Fkernel%2Flinux-exynos.git openvswitch: Fix 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 Acked-by: Joe Stringer Signed-off-by: David S. Miller --- diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c index 3829328..216f20b 100644 --- a/net/openvswitch/flow_netlink.c +++ b/net/openvswitch/flow_netlink.c @@ -1516,7 +1516,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); }