openvswitch: Refactor ovs_nla_fill_match().
authorJoe Stringer <joestringer@nicira.com>
Thu, 22 Jan 2015 00:42:48 +0000 (16:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2015 23:45:49 +0000 (15:45 -0800)
commit5b4237bbc93b1b54d35b037cfc0ece71cd8e358d
treea4a7e22a7f0c77b44f48fce7eef3903cf9e5fae1
parent707d79e5cdcf7833d31fea9712f11b185ce25822
openvswitch: Refactor ovs_nla_fill_match().

Refactor the ovs_nla_fill_match() function into separate netlink
serialization functions ovs_nla_put_{unmasked_key,mask}(). Modify
ovs_nla_put_flow() to handle attribute nesting and expose the 'is_mask'
parameter - all callers need to nest the flow, and callers have better
knowledge about whether it is serializing a mask or not.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c
net/openvswitch/flow_netlink.c
net/openvswitch/flow_netlink.h