Re: [ovs-dev] [PATCH] bridge: Fix the command matching.

2013-12-19 Thread Jarno Rajahalme
LGTM Acked-by: Jarno Rajahalme > On Dec 19, 2013, at 1:50 PM, Alex Wang wrote: > > This commit fixes a command matching error introduced by commit > 7155fa52f (ofproto-dpif: Add 'force-miss-model' configuration). > > Signed-off-by: Alex Wang > --- > vswitchd/bridge.c |4 ++-- > 1 file cha

Re: [ovs-dev] [PATCH v2] rhel: Fix build failures because of libraries in /usr/lib.

2013-12-19 Thread Gurucharan Shetty
> > Thanks for looking into this. Does that also work on x86_64? Yes. The errors were seen in x86_64 machines. > The libraries would be installed to lib64 instead, thus not getting > deleted and thus maybe triggering "unpackaged files found"? Looking at "./configure --help", I see: --libdir=DIR

Re: [ovs-dev] [PATCH] ofp-print: Print durations with at least three decimals.

2013-12-19 Thread Andy Zhou
On Thu, Dec 19, 2013 at 10:11 AM, Ben Pfaff wrote: > Occasionally I run a command like this: > watch -n.1 ovs-ofctl dump-flows br0 > to see how flows change over time. Until now, it has been more difficult > than necessary to spot real changes, because flows "jump around" as the > number of

[ovs-dev] [PATCH] netdev-dummy: Add support for active stream

2013-12-19 Thread Andy Zhou
The netdev-dummy thus far only support passive connection. It will listen for incoming connections requests. This patch allows active stream to be configured as well. This patch effectively allows a netdev-dummy port make point-to-point connection to another, without being a patch port. This featu

Re: [ovs-dev] [PATCH v2] util: New wrapper function ovs_vsnprintf().

2013-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2013 at 03:02:55PM -0800, Saurabh Shah wrote: > > On Thu, Dec 19, 2013 at 11:44:54AM -0800, Saurabh Shah wrote: > So that vsnprintf on windows has C99 like semantics. > Signed-off-by: Saurabh Shah mailto:ssaur...@nicira.com>> > > Doesn't snprintf() need the same treatment? Is the

Re: [ovs-dev] [PATCH v2] util: New wrapper function ovs_vsnprintf().

2013-12-19 Thread Saurabh Shah
On Thu, Dec 19, 2013 at 11:44:54AM -0800, Saurabh Shah wrote: So that vsnprintf on windows has C99 like semantics. Signed-off-by: Saurabh Shah mailto:ssaur...@nicira.com>> Doesn't snprintf() need the same treatment? Is there a reason not to handle it in the same patch? Ah, thanks, I missed this

Re: [ovs-dev] [PATCH v2] util: New wrapper function ovs_vsnprintf().

2013-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2013 at 11:44:54AM -0800, Saurabh Shah wrote: > So that vsnprintf on windows has C99 like semantics. > > Signed-off-by: Saurabh Shah Doesn't snprintf() need the same treatment? Is there a reason not to handle it in the same patch? With this patch applied, if I add a file lib/st

[ovs-dev] [PATCH] bridge: Fix the command matching.

2013-12-19 Thread Alex Wang
This commit fixes a command matching error introduced by commit 7155fa52f (ofproto-dpif: Add 'force-miss-model' configuration). Signed-off-by: Alex Wang --- vswitchd/bridge.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 92

Re: [ovs-dev] [PATCH v2] lib/flow: Skip minimask value checks.

2013-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2013 at 01:02:42PM -0800, Jarno Rajahalme wrote: > We allow zero 'values' in a miniflow for it to have the same map > as the corresponding minimask. Minimasks themselves never have > zero data values, though. Document this and optimize the code > accordingly. > > v2: > - Made min

Re: [ovs-dev] [threaded reval 2/2] ofproto: Handle flow installation and eviction in upcall.

2013-12-19 Thread Ethan Jackson
Thanks I'll merge in a second. Ethan On Thu, Dec 19, 2013 at 3:17 PM, Ben Pfaff wrote: > On Thu, Dec 19, 2013 at 12:51:04PM -0800, Ethan Jackson wrote: >> This patch moves flow installation and eviction from ofproto-dpif and >> the main thread, into ofproto-dpif-upcall. This performs >> signifi

Re: [ovs-dev] [threaded reval 2/2] ofproto: Handle flow installation and eviction in upcall.

2013-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2013 at 12:51:04PM -0800, Ethan Jackson wrote: > This patch moves flow installation and eviction from ofproto-dpif and > the main thread, into ofproto-dpif-upcall. This performs > significantly better (approximately 2x TCP_CRR improvement), and > allows ovs-vswitchd to maintain sig

[ovs-dev] [PATCH v2] lib/flow: Skip minimask value checks.

2013-12-19 Thread Jarno Rajahalme
We allow zero 'values' in a miniflow for it to have the same map as the corresponding minimask. Minimasks themselves never have zero data values, though. Document this and optimize the code accordingly. v2: - Made miniflow_get_map_in_range() to return data offset instead of a pointer via the l

Re: [ovs-dev] [PATCH] lib/flow: Skip minimask value checks.

2013-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2013 at 01:01:39PM -0800, Jarno Rajahalme wrote: > > On Dec 18, 2013, at 9:42 AM, Ben Pfaff wrote: > > > On Fri, Dec 13, 2013 at 02:37:56PM -0800, Jarno Rajahalme wrote: > >> We allow zero 'values' in a miniflow for it to have the same map > >> as the corresponding minimask. Min

Re: [ovs-dev] [PATCH] lib/flow: Skip minimask value checks.

2013-12-19 Thread Jarno Rajahalme
On Dec 18, 2013, at 9:42 AM, Ben Pfaff wrote: > On Fri, Dec 13, 2013 at 02:37:56PM -0800, Jarno Rajahalme wrote: >> We allow zero 'values' in a miniflow for it to have the same map >> as the corresponding minimask. Minimasks themselves never have >> zero data values, though. Document this and

Re: [ovs-dev] [threaded reval 2/2] ofproto: Handle flow installation and eviction in upcall.

2013-12-19 Thread Ethan Jackson
> Why does udpif_set_threads() destroy each revalidator thread's ukeys? > Can't the thread itself do that before it exits? I actually like that udpif_set_threads() handles the teardown because we can be absolutely sure that there aren't any threads running when it happens. This means we dont' hav

[ovs-dev] [PATCH v2] util: New wrapper function ovs_vsnprintf().

2013-12-19 Thread Saurabh Shah
So that vsnprintf on windows has C99 like semantics. Signed-off-by: Saurabh Shah --- lib/command-line.c |2 +- lib/dynamic-string.c |4 ++-- lib/util.c | 18 -- lib/util.h |1 + 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/li

[ovs-dev] [PATCH] util: New wrapper function ovs_vsnprintf().

2013-12-19 Thread Saurabh Shah
So that vsnprintf on windows has C99 like semantics. Signed-off-by: Saurabh Shah --- lib/command-line.c |2 +- lib/dynamic-string.c |4 ++-- lib/util.c | 18 -- lib/util.h |1 + 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/li

Re: [ovs-dev] [PATCH v3 2/3] ofproto: Add table config to struct ofproto

2013-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2013 at 10:03:16AM +0900, Simon Horman wrote: > thanks for applying this patch. > > Although it doesn't really do much without > "[PATCH v3 3/3] ofproto: Honour Table Mod settings for table-miss handling" > does depend on "[PATCH v3 1/3] ofproto: Make check_table_id() generic". I

Re: [ovs-dev] ovs-vswitchd start order on debian

2013-12-19 Thread Dietmar Maurer
> That was my understanding the first time around too. All I see you trying to > do is > creating a bridge with a single port and assigning IP address to it. So I am > not > sure why it matters if ovs-vswitchd starts late. because we want to have working network devices early in the boot proces

Re: [ovs-dev] [PATCH] V2 windefs: common include for MSVC

2013-12-19 Thread Alin Serdean
I made the modifications and sent in a new patch: http://openvswitch.org/pipermail/dev/2013-December/035377.html I dropped WCOREDUMP* and __u* for the moment until(and if) we need them. Kind Regards, Alin. From: Ben Pfaff [b...@nicira.com] Sent: Wednesday

Re: [ovs-dev] [PATCH V3] windefs: common include for MSVC

2013-12-19 Thread Alin Serdean
Signed-off-by: Alin Serdean --- diff --git a/Makefile.am b/Makefile.am index 0faed67..558bf63 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,6 +10,11 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = datapath AM_CPPFLAGS = $(SSL_CFLAGS) + +if WIN32 +AM_CPPFLAGS += -I $(top_srcdir)/include/windows +endif

Re: [ovs-dev] [PATCH v3] linux: Report supported user features to the kernel

2013-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2013 at 04:20:42PM +0100, Thomas Graf wrote: > Following commit (''netlink: Do not enforce alignment of last Netlink > attribute''), signal the ability to receive unaligned Netlink messages > to the datapath to enable utilization of zerocopy optimizations. > > Opening a datapath is

[ovs-dev] [PATCH] ofp-print: Print durations with at least three decimals.

2013-12-19 Thread Ben Pfaff
Occasionally I run a command like this: watch -n.1 ovs-ofctl dump-flows br0 to see how flows change over time. Until now, it has been more difficult than necessary to spot real changes, because flows "jump around" as the number of decimals printed for duration changes from moment to moment. Th

Re: [ovs-dev] [PATCH] sFlow LAG and Tunnel export

2013-12-19 Thread Ben Pfaff
On Thu, Nov 28, 2013 at 06:20:26AM -0700, Neil McKee wrote: > I rebased and cleaned up this patch, and included a longer description > to capture the reasons why it's OK to leave some fields unpopulated. This got posted word-wrapped, can you try it again? __

Re: [ovs-dev] [PATCH] sFlow: clear the padding

2013-12-19 Thread Ben Pfaff
Hi Francesco. Thanks for the patch. The sFlow code comes almost unmodified from InMon. I'm adding Neil McKee from InMon to the thread to review this change. Neil, can you take a look? (And that reminds me, I need to review your patch too. I'll do that now.) Thanks, Ben. On Thu, Dec 19, 2013

Re: [ovs-dev] ovs-vswitchd start order on debian

2013-12-19 Thread Gurucharan Shetty
> You totally missed the problem, so I try to explain again. > > The problem is that the ovs-vswitchd is started much too late in the boot > process (in runlevel 2), > so it is not available when debian starts the networking setup at boot time > (started early in rulevel S). > > is that more clea

Re: [ovs-dev] [PATCH] windows pseudorandom number generator V2

2013-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2013 at 01:05:02AM +, Alin Serdean wrote: > Signed-off-by: Alin Serdean Applied as follows. I adjusted indentation, which looked odd. Thanks, Ben. --8<--cut here-->8-- From: Alin Serdean Date: Thu, 19 Dec 2013 09:20:17 -080

[ovs-dev] [PATCH] sFlow: clear the padding

2013-12-19 Thread Francesco Fusco
putString pads the string to the 4-byte boundary without clearing the "padded" memory. This patch simply set the padding to zero. Signed-off-by: Francesco Fusco --- lib/sflow_receiver.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/sflow_receiver.c b/lib/sflow_receiver.c index 3e5a

Re: [ovs-dev] ovs-vswitchd start order on debian

2013-12-19 Thread Dietmar Maurer
> Can you tell the version with: > ovs-vsctl --version # ovs-vsctl --version ovs-vsctl (Open vSwitch) 2.0.90 Compiled Dec 19 2013 10:25:22 > > auto vmbr0 > I don't think the above line will help you. > > > > That works, but it does not work when I boot the host. Simply because > > ovs-vswitchd

[ovs-dev] openvswitch 1.9.3+git20131029-1.1 MIGRATED to testing

2013-12-19 Thread Debian testing watch
FYI: The status of the openvswitch source package in Debian's testing distribution has changed. Previous version: 1.9.3+git20131029-1 Current version: 1.9.3+git20131029-1.1 -- This email is automatically generated once a day. As the installation of new packages into testing happens multipl

Re: [ovs-dev] ovs-vswitchd start order on debian

2013-12-19 Thread Gurucharan Shetty
On Wed, Dec 18, 2013 at 10:49 PM, Dietmar Maurer wrote: > I am testing latest ovs code on debian, using the following > /etc/network/interfaces Can you tell the version with: ovs-vsctl --version > auto vmbr0 I don't think the above line will help you. > That works, but it does not work when

[ovs-dev] [PATCH v3] linux: Report supported user features to the kernel

2013-12-19 Thread Thomas Graf
Following commit (''netlink: Do not enforce alignment of last Netlink attribute''), signal the ability to receive unaligned Netlink messages to the datapath to enable utilization of zerocopy optimizations. Opening a datapath is now done by issueing a OVS_DP_CMD_SET in order to overwrite previously

Re: [ovs-dev] [PATCH v2] rhel: Fix build failures because of libraries in /usr/lib.

2013-12-19 Thread Helmut Schaa
On Wed, Dec 18, 2013 at 10:25 PM, Gurucharan Shetty wrote: > Reported-by: Igor Sever > Signed-off-by: Gurucharan Shetty > --- > AUTHORS |1 + > rhel/openvswitch-fedora.spec.in |2 +- > rhel/openvswitch.spec.in|2 +- > 3 files changed, 3 insertions(+),