[ovs-git] Open vSwitch: dpif-netdev: Make port numbers predictable for dummy dpif, for unit tests. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Jan 12 23:23:32 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  247527db0f3530480bde88c59c1fadd5d51505fc (commit)
      from  a1893da130e2bfadcd031476f00a365677a9ff61 (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 247527db0f3530480bde88c59c1fadd5d51505fc
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=247527db0f3530480bde88c59c1fadd5d51505fc
Author: Ben Pfaff <blp at nicira.com>
		
dpif-netdev: Make port numbers predictable for dummy dpif, for unit tests.
		
The unit tests feed a lot of flows through the ofproto-dpif "trace"
command, which means that they need to know the port numbers of the ports
that they create.  Until now, they've had to actually query those port
numbers from the database, which is a bit of unnecessary overhead for unit
tests.

This commit makes dummy dpif port numbers predictable: if the name of a
port contains a number, then the dummy dpif uses that number, if it is
valid and available, as the port number.

This commit also simplifies the unit tests that previously queried port
numbers to depend on the new behavior.

Signed-off-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 lib/dpif-netdev.c     |   44 +++++-
 tests/ofproto-dpif.at |  390 ++++++++++++++++++-------------------------------
 2 files changed, 178 insertions(+), 256 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list