]> git.proxmox.com Git - mirror_ovs.git/commit - datapath/datapath.c
datapath: Refactor ovs_nla_fill_match().
authorJoe Stringer <joestringer@nicira.com>
Thu, 22 Jan 2015 00:42:48 +0000 (16:42 -0800)
committerJoe Stringer <joestringer@nicira.com>
Fri, 27 Feb 2015 18:58:36 +0000 (10:58 -0800)
commitdb7f2238278e9834e1ba526e44512ba30335075a
treeeba92244bf7a130eaed0d28a133e23cca28f1724
parent2a638b8d22be66bb631b2273a72cd4c8451de065
datapath: 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>
datapath/datapath.c
datapath/flow_netlink.c
datapath/flow_netlink.h