2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-29 05:18:13 +00:00
Ben Pfaff d14e007c1f ovsdb-idl: Redesign use of indexes.
The design of the compound index feature in the C OVSDB IDL was unusual.
Indexes were generally referenced only by name rather than by pointer, and
could be obtained only from the top-level ovsdb_idl object.  To iterate or
otherwise search an index required explicitly creating a special
ovsdb_idl_cursor object, which at least seemed somewhat heavy-weight given
that it required a string lookup in a table of indexes.

This commit redesigns the compound index interface.  It discards the use of
names for indexes, instead having clients pass in a pointer to the index
object itself.  It simplifies how indexes are created, gets rid of the need
for explicit cursor objects, and updates all of the users to the new
interface.

The underlying reason for this commit is to make it easier in
ovn-controller to keep track of the dependencies for a given function, by
making the indexes explicit arguments to any function that needs to use
them.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Han Zhou <hzhou8@ebay.com>
2018-06-12 08:24:08 -07:00
..
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2012-05-02 17:08:02 -07:00
2018-05-25 13:36:05 -07:00
2016-07-26 10:44:08 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00
2018-05-25 13:36:05 -07:00