aboutsummaryrefslogtreecommitdiff
path: root/vswitchd/vswitch.pic
AgeCommit message (Collapse)Author
2011-05-24ovsdb: Annotate E-R diagram with number of allowed values.Ben Pfaff
This makes the diagram even more informative.
2011-05-23Avoid sparse error or warning for sizeof(_Bool).Ben Pfaff
The sparse checker does not like taking sizeof(_Bool). Older versions of sparse output a hard error ("error: cannot size expression"). Newer versions output a warning ("warning: expression using sizeof bool"). This commit avoids the problem by not using sizeof(_Bool) anywhere. The only place where OVS uses sizeof(_Bool) anyway is in code generated by the OVSDB IDL. It generates it for populating "optional bool" columns in the database, that is, columns that are allowed to contain 0 or 1 instances of a bool. For these columns, it generates code that looks roughly like this: row->column = xmalloc(sizeof *row->column); *row->column = value; This commit changes these columns from type "bool *" to type "const bool *" and changes the generated code to: static const bool true_value = true; static const bool false_value = false; row->column = value ? &true_value : &false_value; which avoids the problem and saves a malloc() call at the same time. The idltest code had a column with a slightly different type ("0, 1, or 2 bools") that didn't fit the revised pattern and is a fairly stupid type anyhow, so I just changed it to "0 or 1 bools".
2011-03-10vswitchd: Regenerate schema diagram.Ben Pfaff
The schema diagram was generated with an intermediate version of the ovsdb-dot tool that put the wrong borders on the non-root nodes. This version is regenerated with the currently checked in version of the ovsdb-dot tool.
2011-03-10ovsdb: Implement garbage collection.Ben Pfaff
2010-12-06docs: Only regenerate vswitch.pic when the schema really changes.Ben Pfaff
Until now, vswitch.pic has been rebuilt whenever the schema changed. This is OK when the E-R diagram would really change, but many changes to the schema don't change the E-R diagram, and it surprises people when vswitch.pic changes in such a situation. This commit fixes the problem. Requested-by: Justin Pettit <jpettit@nicira.com>
2010-11-30vswitch: Update dia-generated diagram.Ben Pfaff
This probably didn't get updated automatically because the last update to vswitch.ovsschema was made by a developer without one of the required tools installed.
2010-11-05Add "Manager" and "manager_options" to allow options for OVSDB connections.Ben Pfaff
I'm retaining the "managers" column in the Open_vSwitch table for now, but I hope that applications transition to using "manager_options" eventually so that we could drop it. CC: Andrew Lambeth <wal@nicira.com> CC: Jeremy Stribling <strib@nicira.com>
2010-06-24vswitchd: Add entity-relationship diagram to ovs-vswitchd.conf.db.5.Ben Pfaff
I've updated http://openvswitch.org/ovs-vswitchd.conf.db.5.pdf with example output.