mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
lib: Utilize smaps in the idl.
String to string maps are used all over the Open vSwitch database. Before this patch, they were implemented in the idl as parallel string arrays. This strategy has proven a bit cumbersome. With this patch, string to string maps are implemented using the smap library. Signed-off-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -906,6 +906,7 @@ static struct ovsdb_idl_row *
|
||||
ovsdb_idl_row_create__(const struct ovsdb_idl_table_class *class)
|
||||
{
|
||||
struct ovsdb_idl_row *row = xzalloc(class->allocation_size);
|
||||
class->row_init(row);
|
||||
list_init(&row->src_arcs);
|
||||
list_init(&row->dst_arcs);
|
||||
hmap_node_nullify(&row->txn_node);
|
||||
|
Reference in New Issue
Block a user