summaryrefslogtreecommitdiff
path: root/ovsdb/table.h
Commit message (Collapse)AuthorAgeFilesLines
* ovsdb: Reorder elements in ovsdb_table_schema structure.Bhanuprakash Bodireddy2016-10-171-2/+2
| | | | | | | | | | | | | | By reordering the elements in ovsdb_table_schema structure, pad bytes can be reduced and also a cache line is saved. Before: structure size:72, holes:2, sum padbytes:10, cachelines:2 After: structure size:64, holes:1, sum padbytes:2, cachelines:1 Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com> Co-authored-by: Antonio Fischetti <antonio.fischetti@intel.com> Signed-off-by: Antonio Fischetti <antonio.fischetti@intel.com> Acked-by: Jarno Rajahalme <jarno@ovn.org> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
* json: Move from lib to include/openvswitch.Terry Wilson2016-07-221-2/+2
| | | | | | | | | | | | | | | To easily allow both in- and out-of-tree building of the Python wrapper for the OVS JSON parser (e.g. w/ pip), move json.h to include/openvswitch. This also requires moving lib/{hmap,shash}.h. Both hmap.h and shash.h were #include-ing "util.h" even though the headers themselves did not use anything from there, but rather from include/openvswitch/util.h. Fixing that required including util.h in several C files mostly due to OVS_NOT_REACHED and things like xmalloc. Signed-off-by: Terry Wilson <twilson@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* lib: Move compiler.h to <openvswitch/compiler.h>Thomas Graf2014-12-151-1/+1
| | | | | | | | | | The following macros are renamed to avoid conflicts with other headers: * WARN_UNUSED_RESULT to OVS_WARN_UNUSED_RESULT * PRINTF_FORMAT to OVS_PRINTF_FORMAT * NO_RETURN to OVS_NO_RETURN Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Ben Pfaff <blp@nicira.com>
* Global replace of Nicira Networks.Raju Subramanian2012-05-021-1/+1
| | | | | | | | Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovsdb: Implement table uniqueness constraints ("indexes").Ben Pfaff2011-06-061-0/+7
|
* ovsdb: Move ovsdb_table_put_row() into test program.Ben Pfaff2011-06-061-1/+0
| | | | | | This function is not useful inside ovsdb itself but only in the "test-ovsdb" test program. To avoid the temptation to use it incorrectly inside ovsdb, this commit moves it into the test program.
* ovsdb: Implement garbage collection.Ben Pfaff2011-03-101-5/+6
|
* ovsdb: Allow constraining the number of rows in a table.Ben Pfaff2010-03-181-1/+3
|
* ovsdb: Remove "comment" support from OVSDB schemas.Ben Pfaff2010-03-051-2/+0
| | | | | | | Using a separate XML file to document a schema is much more flexible. You end up with two files (a schema and documentation for it), each of which is readable and maintainable, instead of a single schema file that is almost illegible.
* ovsdb: Add functions to clone schemas.Ben Pfaff2010-02-151-0/+2
| | | | These will be used by an upcoming commit.
* ovsdb: Use direct pointer from table to txn_table to simplify code.Ben Pfaff2010-02-081-1/+2
| | | | | | | | Until now, when a transaction modified rows in a table, the metadata associated with that table modification (in struct ovsdb_txn_table) had to be looked up through a hash table. This made the code unnecessarily complicated and had no benefit in itself, so this commit changes struct ovsdb_table to have a direct pointer to its ovsdb_txn_table.
* Initial implementation of OVSDB.Ben Pfaff2009-11-041-0/+63