[ovs-git] Open vSwitch: socket-util: Log the kernel assigned port number when asked. (master)

dev at openvswitch.org dev at openvswitch.org
Wed May 28 16:04:16 UTC 2014


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  b52ecd9610172eeb6baac55047ea4926d6af076c (commit)
       via  5e3ee29da191753d2c5ed72b75d4978f694d0f0a (commit)
       via  eafa7af8c57a01a8c9c4fcc9201e968423d74269 (commit)
       via  10bf2380a198a4fd8292a1252d0ee77ce6e42df4 (commit)
       via  90fd962877deb12b0807382a7ebf894223c5fb7f (commit)
      from  84f0f298298465f9bd6f7e794b671587e4556503 (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 b52ecd9610172eeb6baac55047ea4926d6af076c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b52ecd9610172eeb6baac55047ea4926d6af076c
Author: Gurucharan Shetty <gshetty at nicira.com>
		
socket-util: Log the kernel assigned port number when asked.
		
So far, we log the kernel assigned port number when the port number is
not specified. On Windows, this happens multiple times because "unix"
sockets are implemented internally via TCP ports. This means that many tests,
specially the ovs-ofctl monitor tests, need to filter out the
additional messages. Doing that is not a big deal, but I think it will
keep manifesting in future tests added by Linux developers.

With this commit, we simply don't print the kernel assigned TCP ports
on Windows when done for "unix" sockets.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 5e3ee29da191753d2c5ed72b75d4978f694d0f0a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=5e3ee29da191753d2c5ed72b75d4978f694d0f0a
Author: Gurucharan Shetty <gshetty at nicira.com>
		
ovs-ofctl: Enable the ability to 'detach' on Windows.
		
This is mostly for unit tests that use ovs-ofctl monitor.
service_start() creates a new process and waits till
daemonize_complete() is called by the child.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit eafa7af8c57a01a8c9c4fcc9201e968423d74269
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=eafa7af8c57a01a8c9c4fcc9201e968423d74269
Author: Gurucharan Shetty <gshetty at nicira.com>
		
ovs-ofctl: Flush monitored data.
		
Otherwise, on Windows unit tests, data sometimes is
not seen in output files.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 10bf2380a198a4fd8292a1252d0ee77ce6e42df4
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=10bf2380a198a4fd8292a1252d0ee77ce6e42df4
Author: Gurucharan Shetty <gshetty at nicira.com>
		
bridge: Initialize dscp for mgmt connections.
		
Without it, garbage values make it to set_dscp function
in Windows.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 90fd962877deb12b0807382a7ebf894223c5fb7f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=90fd962877deb12b0807382a7ebf894223c5fb7f
Author: Gurucharan Shetty <gshetty at nicira.com>
		
ovsdb-monitor.at: Changes for Windows.
		
ovsdb-client's 'monitor' command works with --detach such
that the parent detaches after printing initial transactions in
the database. This is a little tricky to implement
in windows. So for windows, send the process to background with
'&' and then sleep for a second to let the intial transactions
printed. (We can do the same for Linux, but it slows down the
test run)

Also let the perl script that looks at the o/p be aware of
CR LF in windows.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 lib/socket-util.c           |   10 +++++++---
 lib/socket-util.h           |    3 ++-
 lib/stream-ssl.c            |    2 +-
 lib/stream-tcp.c            |   19 ++++++++++++++-----
 tests/ofproto-dpif.at       |    8 ++++----
 tests/ofproto-macros.at     |    4 ++--
 tests/ovsdb-idl.at          |    4 ++--
 tests/ovsdb-monitor-sort.pl |    3 +++
 tests/ovsdb-monitor.at      |    8 +++++++-
 tests/ovsdb-server.at       |   12 ++++++------
 tests/test-netflow.c        |    2 +-
 tests/test-sflow.c          |    2 +-
 utilities/ovs-ofctl.c       |    3 +++
 vswitchd/bridge.c           |    1 +
 14 files changed, 54 insertions(+), 27 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list