Skip to content

Commit

Permalink
openvswitch: Fix key serialization.
Browse files Browse the repository at this point in the history
Fix typo where mask is used rather than key.

Fixes: 74ed7ab("openvswitch: Add support for unique flow IDs.")
Reported-by: Joe Stringer <[email protected]>
Signed-off-by: Pravin B Shelar <[email protected]>
Acked-by: Joe Stringer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Pravin B Shelar authored and davem330 committed Feb 15, 2015
1 parent 65bab84 commit 26ad0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/openvswitch/flow_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 26ad0b8

Please sign in to comment.