[ovs-git] Open vSwitch: lib: Utilize smaps in the idl. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Jun 14 23:50:12 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  a699f6143e09b1d63ea284b7d8180c74f27dea60 (commit)
       via  79f1cbe9f86ddfb1b5d92b80d85e09cd44768d6c (commit)
       via  37344ffa58cdc6c057ef06c6822528c8fe08bb93 (commit)
      from  71edb750fe3870d4663105bc364f05e02a3bf1eb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a699f6143e09b1d63ea284b7d8180c74f27dea60
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=a699f6143e09b1d63ea284b7d8180c74f27dea60
Author: Ethan Jackson <ethan at nicira.com>
		
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 at nicira.com>


commit 79f1cbe9f86ddfb1b5d92b80d85e09cd44768d6c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=79f1cbe9f86ddfb1b5d92b80d85e09cd44768d6c
Author: Ethan Jackson <ethan at nicira.com>
		
lib: New data structure - smap.
		
A smap is a string to string hash map.  It has a cleaner interface
than shash's which were traditionally used for the same purpose.
This patch implements the data structure, and changes netdev and
its providers to use it.

Signed-off-by: Ethan Jackson <ethan at nicira.com>


commit 37344ffa58cdc6c057ef06c6822528c8fe08bb93
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=37344ffa58cdc6c057ef06c6822528c8fe08bb93
Author: Ethan Jackson <ethan at nicira.com>
		
bridge: Simplify VLAN splinter memory management.
		
Before this patch, the VLAN splinter memory management operated on
blocks of memory instead of ovsrec_ports.  This strategy is
problematic in future patches when more than simply calling
'free()' needs to be done to destroy splinter ports.  This patch
solves the problem by keeping track of entire ovsrec_ports instead
of just the memory allocated to create them.

Signed-off-by: Ethan Jackson <ethan at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/automake.mk          |    2 +
 lib/netdev-linux.c       |  101 +++++-----
 lib/netdev-provider.h    |   22 +-
 lib/netdev-vport.c       |  117 ++++++------
 lib/netdev.c             |   56 +++---
 lib/netdev.h             |   18 +-
 lib/ovsdb-idl-provider.h |    1 +
 lib/ovsdb-idl.c          |    1 +
 lib/shash.c              |   55 ------
 lib/shash.h              |    6 -
 lib/smap.c               |  269 ++++++++++++++++++++++++++
 lib/smap.h               |   63 ++++++
 ovsdb/ovsdb-idlc.in      |  158 +++++++++------
 python/ovs/db/types.py   |    5 +
 utilities/ovs-dpctl.c    |   33 ++--
 utilities/ovs-vsctl.c    |  138 +++++---------
 vswitchd/bridge.c        |  472 ++++++++++++++++------------------------------
 17 files changed, 820 insertions(+), 697 deletions(-)
 create mode 100644 lib/smap.c
 create mode 100644 lib/smap.h


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list