]> git.proxmox.com Git - ovs.git/commit - tests/test-ovn.c
ovn: Use callback function instead of simap for logical port number map.
authorBen Pfaff <blp@ovn.org>
Thu, 28 Jan 2016 04:50:59 +0000 (20:50 -0800)
committerBen Pfaff <blp@ovn.org>
Sat, 12 Mar 2016 04:56:26 +0000 (20:56 -0800)
commitf1c16a8585df9f7eacb20fc8f0ab8edd26f3b9dc
treeea12f0490c81315c960d6305c9a1a1274a556afb
parent6335d074ed721ccb714abbf73f88cf7d2fa3108d
ovn: Use callback function instead of simap for logical port number map.

An simap is convenient but it isn't very flexible.  If the client wants to
keep extra data with each node then it has to build a second parallel data
structure.  A callback function is kind of a pain for the clients from the
point of view of having to write it and deal with auxiliary data, etc., but
it allows the storage to be more flexible.

An upcoming commit will make further use of this capability.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
ovn/controller/lflow.c
ovn/lib/actions.c
ovn/lib/actions.h
ovn/lib/expr.c
ovn/lib/expr.h
tests/test-ovn.c