Re: [ovs-dev] [PATCHv2] revalidator: Fetch stats on revalidation failure.

2014-02-25 Thread Ben Pfaff
Joe, based on Ethan's feedback I'll drop this for now unless you prefer otherwise. On Tue, Feb 25, 2014 at 05:37:05PM -0800, Ethan Jackson wrote: > I'm not sure this patch makes sense in the current code. If a > revalidation failed, that's probably because the rules used to create > the flow chan

Re: [ovs-dev] [PATCHv2] revalidator: Fetch stats on revalidation failure.

2014-02-25 Thread Ethan Jackson
I'm not sure this patch makes sense in the current code. If a revalidation failed, that's probably because the rules used to create the flow changed, in which case we'd be accounting packets to the wrong rules. This is arguable worse than missing the packets all together. Once we change the code

[ovs-dev] [PATCHv2] revalidator: Fetch stats on revalidation failure.

2014-02-25 Thread Joe Stringer
A flow's statistics could be partially lost in the following situation: * A flow is dumped from the datapath * Some traffic hits that flow * Revalidation fails for that flow Previously, we would delete such a flow without fetching the latest statistics for it, causing the intermediate statistics t

Re: [ovs-dev] [PATCH] revalidator: Fetch stats on revalidation failure.

2014-02-25 Thread Joe Stringer
Woops, I had the continue in my git index, so the testsuite passed--but I forgot to squash it onto this patch. You're right, we definitely need the continue. On 25 February 2014 17:06, Ben Pfaff wrote: > On Tue, Feb 25, 2014 at 05:02:02PM -0800, Joe Stringer wrote: > > A flow's statistics could

Re: [ovs-dev] [PATCH] revalidator: Fetch stats on revalidation failure.

2014-02-25 Thread Ben Pfaff
On Tue, Feb 25, 2014 at 05:02:02PM -0800, Joe Stringer wrote: > A flow's statistics could be partially lost in the following situation: > * A flow is dumped from the datapath > * Some traffic hits that flow > * Revalidation fails for that flow > > Previously, we would delete such a flow without fe

[ovs-dev] [PATCH] revalidator: Fetch stats on revalidation failure.

2014-02-25 Thread Joe Stringer
A flow's statistics could be partially lost in the following situation: * A flow is dumped from the datapath * Some traffic hits that flow * Revalidation fails for that flow Previously, we would delete such a flow without fetching the latest statistics for it, causing the intermediate statistics t

Re: [ovs-dev] [PATCH] meta-flow: Remove duplicate break statements.

2014-02-25 Thread Jarno Rajahalme
Yep, will do :-) Jarno > On Feb 24, 2014, at 10:44 AM, Ben Pfaff wrote: > > You want to push it for Joe? > >> On Mon, Feb 24, 2014 at 10:37:04AM -0800, Jarno Rajahalme wrote: >> Acked-by: Jarno Rajahalme >> >>> On Feb 24, 2014, at 10:20 AM, Joe Stringer wrote: >>> >>> Commit 8bfd0fda mis

Re: [ovs-dev] [PATCH 2/2] tests: Sort output from dump-flows to avoid hash order dependency.

2014-02-25 Thread Ben Pfaff
Thanks, I applied both of these to master. (I avoided making these mistakes in the backport, so no change is necessary on branch-2.1.) On Tue, Feb 25, 2014 at 04:39:52PM -0800, Joe Stringer wrote: > Ah, I missed this. Looks good, thanks. > > > On 25 February 2014 16:31, Ben Pfaff wrote: > > >

Re: [ovs-dev] [PATCH 2/2] tests: Sort output from dump-flows to avoid hash order dependency.

2014-02-25 Thread Joe Stringer
Ah, I missed this. Looks good, thanks. On 25 February 2014 16:31, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > tests/ofproto-dpif.at |8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at > index b64ab41..97953d

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-upcall: Fix null dereference in push_dump_ops().

2014-02-25 Thread Joe Stringer
Looks good. On 25 February 2014 16:31, Ben Pfaff wrote: > revalidator_sweep__() does not provide udumps, so push_dump_ops() can't > look them up. > > This is my fault: I introduced it during review. > > Signed-off-by: Ben Pfaff > --- > ofproto/ofproto-dpif-upcall.c | 15 ++- > 1

Re: [ovs-dev] [PATCH 5/5] upcall: Remove datapath flows when setting n-threads.

2014-02-25 Thread Joe Stringer
I'm looking now. On 25 February 2014 16:31, Ben Pfaff wrote: > On Tue, Feb 25, 2014 at 04:18:38PM -0800, Ben Pfaff wrote: > > On Tue, Feb 25, 2014 at 04:17:12PM -0800, Joe Stringer wrote: > > > On 25 February 2014 16:02, Ben Pfaff wrote: > > > > > > > On Tue, Feb 11, 2014 at 01:55:36PM -0800,

Re: [ovs-dev] [PATCH 5/5] upcall: Remove datapath flows when setting n-threads.

2014-02-25 Thread Ben Pfaff
On Tue, Feb 25, 2014 at 04:18:38PM -0800, Ben Pfaff wrote: > On Tue, Feb 25, 2014 at 04:17:12PM -0800, Joe Stringer wrote: > > On 25 February 2014 16:02, Ben Pfaff wrote: > > > > > On Tue, Feb 11, 2014 at 01:55:36PM -0800, Joe Stringer wrote: > > > > Previously, we would delete all ukeys when cha

[ovs-dev] [PATCH 2/2] tests: Sort output from dump-flows to avoid hash order dependency.

2014-02-25 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- tests/ofproto-dpif.at |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index b64ab41..97953d0 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -2793,9 +2793,9 @@ done ovs-app

[ovs-dev] [PATCH 1/2] ofproto-dpif-upcall: Fix null dereference in push_dump_ops().

2014-02-25 Thread Ben Pfaff
revalidator_sweep__() does not provide udumps, so push_dump_ops() can't look them up. This is my fault: I introduced it during review. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-upcall.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ofproto/ofprot

Re: [ovs-dev] [PATCH 5/5] upcall: Remove datapath flows when setting n-threads.

2014-02-25 Thread Ben Pfaff
On Tue, Feb 25, 2014 at 04:17:12PM -0800, Joe Stringer wrote: > On 25 February 2014 16:02, Ben Pfaff wrote: > > > On Tue, Feb 11, 2014 at 01:55:36PM -0800, Joe Stringer wrote: > > > Previously, we would delete all ukeys when changing the number of > > > threads, but leave all flows in the datapat

Re: [ovs-dev] [PATCH 5/5] upcall: Remove datapath flows when setting n-threads.

2014-02-25 Thread Joe Stringer
On 25 February 2014 16:02, Ben Pfaff wrote: > On Tue, Feb 11, 2014 at 01:55:36PM -0800, Joe Stringer wrote: > > Previously, we would delete all ukeys when changing the number of > > threads, but leave all flows in the datapath. This would cause > > double-counting of stats for any flows that rema

[ovs-dev] Kmindg G added you to his circles and invited you to join Google+

2014-02-25 Thread Google+
Kmindg G added you to his circles and invited you to join Google+. Click here to get started with Google+: https://plus.google.com/_/notifications/emlink?emr=15965197021687490520&emid=COjRpKfB6LwCFciJRAodfmEAAA&path=%2F%3Fgpinv%3DAMIXal-yXYuldZBLnxRf9Fz6Z4QWm2EhPwUmrr4w-ZHtolPMtQGd1VPa5UwaGoAf9

Re: [ovs-dev] [PATCH 4/5] upcall: Delete flows that were not recently dumped.

2014-02-25 Thread Joe Stringer
Looks good. On 25 February 2014 15:53, Ben Pfaff wrote: > On Tue, Feb 11, 2014 at 01:55:35PM -0800, Joe Stringer wrote: > > Previously, we would clean up the ukeys whose flow was not seen in the > > most recent dump, while leaving the flow in the datapath. In the > > unlikely case that the data

Re: [ovs-dev] [PATCH 3/5] upcall: Refactor ukey creation and dump handling

2014-02-25 Thread Joe Stringer
Ah, great. The original refactoring was mostly split out from the patchset to get rid of the flow_dumper thread, which made it easier to split these statistics fixes out. I hadn't realised there was a bit more that we could do. On 25 February 2014 15:51, Ben Pfaff wrote: > On Tue, Feb 25, 2014

Re: [ovs-dev] [PATCH 2/5] upcall: Defer ukey deletion until after pushing stats.

2014-02-25 Thread Ben Pfaff
Yes, I moved it out of the function in the next patch. On Tue, Feb 25, 2014 at 04:06:11PM -0800, Joe Stringer wrote: > I suspect you may have found that the later patches make use of this > structure in more locations? > > Either way, fine by me. > > > On 25 February 2014 15:16, Ben Pfaff wrot

Re: [ovs-dev] [PATCH 2/5] upcall: Defer ukey deletion until after pushing stats.

2014-02-25 Thread Joe Stringer
I suspect you may have found that the later patches make use of this structure in more locations? Either way, fine by me. On 25 February 2014 15:16, Ben Pfaff wrote: > On Tue, Feb 11, 2014 at 01:55:33PM -0800, Joe Stringer wrote: > > It is possible for a datapath to dump the same flow twice, f

Re: [ovs-dev] [PATCH 1/5] ofproto-dpif: Test flow stats reporting.

2014-02-25 Thread Ben Pfaff
Yes, I was really satisfied to see that, because I'd spent some time trying to debug that problem myself. The issue is pretty subtle. On Tue, Feb 25, 2014 at 4:04 PM, Joe Stringer wrote: > Thanks! Glad to hear that it fixes the intermittent failures. > > > On 25 February 2014 14:58, Ben Pfaff w

Re: [ovs-dev] [PATCH 1/5] ofproto-dpif: Test flow stats reporting.

2014-02-25 Thread Joe Stringer
Thanks! Glad to hear that it fixes the intermittent failures. On 25 February 2014 14:58, Ben Pfaff wrote: > On Tue, Feb 11, 2014 at 01:55:32PM -0800, Joe Stringer wrote: > > Basic test to check that the datapath reports the correct number of > > packets seen, after a delay of 1 second. > > > >

Re: [ovs-dev] [PATCH 5/5] upcall: Remove datapath flows when setting n-threads.

2014-02-25 Thread Ben Pfaff
On Tue, Feb 11, 2014 at 01:55:36PM -0800, Joe Stringer wrote: > Previously, we would delete all ukeys when changing the number of > threads, but leave all flows in the datapath. This would cause > double-counting of stats for any flows that remain in the datapath. This > patch fixes the issue by en

Re: [ovs-dev] [PATCH 5/5] upcall: Remove datapath flows when setting n-threads.

2014-02-25 Thread Ben Pfaff
On Tue, Feb 25, 2014 at 09:35:46AM -0800, Joe Stringer wrote: > On 25 February 2014 00:01, Zhou, Han wrote: > > > Hi Joe, > > > > On Tue, 2014-02-11 at 13:55 -0800, Joe Stringer wrote: > > > Previously, we would delete all ukeys when changing the number of > > > threads, but leave all flows in th

Re: [ovs-dev] [PATCH 4/5] upcall: Delete flows that were not recently dumped.

2014-02-25 Thread Ben Pfaff
On Tue, Feb 11, 2014 at 01:55:35PM -0800, Joe Stringer wrote: > Previously, we would clean up the ukeys whose flow was not seen in the > most recent dump, while leaving the flow in the datapath. In the > unlikely case that the datapath fails to dump a flow that still exists > in the datapath, this

Re: [ovs-dev] [PATCH 3/5] upcall: Refactor ukey creation and dump handling

2014-02-25 Thread Ben Pfaff
On Tue, Feb 25, 2014 at 03:41:36PM -0800, Ben Pfaff wrote: > On Tue, Feb 25, 2014 at 03:25:35PM -0800, Ben Pfaff wrote: > > On Tue, Feb 11, 2014 at 01:55:34PM -0800, Joe Stringer wrote: > > > This splits out functions for re-use by later patches, and compacts the > > > udump revalidation code. > >

[ovs-dev] [PATCH v2 0/7] nsh: Network Service Header support.

2014-02-25 Thread Pritesh Kothari
Hi Guys, This is version 2 for supporting NSH [1] on vxlan. The changes since last patch set are few and mainly just related to the review earlier. datapath/datapath.c|2 + datapath/flow.h|7 +- datapath/flow_netlink.c

[ovs-dev] [PATCH v2 5/7] nsh: userland support for network service index

2014-02-25 Thread Pritesh Kothari
From: pritesh Support for nsh service index (nsi) is added, mainly incoming nsi in a flow can be matched and appropriate action can be taken on the flow based on it. Signed-off-by: Pritesh Kothari diff --git a/lib/flow.c b/lib/flow.c index 28e96ec..e1b7d74 100644 --- a/lib/flow.c +++ b/lib/flo

[ovs-dev] [PATCH v2 6/7] nsh: support for setting nsi, action set_nsi=

2014-02-25 Thread Pritesh Kothari
Support for setting nsi using an action namely set_nsi. It works similar to set_tunnel in vxlan/gre tunnel and can be used to set the outgoing nsh service index (nsi). Also NXM_NX_NSI is defined here which enables matching NSIs. Signed-off-by: Pritesh Kothari diff --git a/include/openflow/nicira

[ovs-dev] [PATCH v2 7/7] nsh: support nsp/nsi in test cases.

2014-02-25 Thread Pritesh Kothari
From: pritesh Fix for the current test cases which fail due to the nsh changes. Signed-off-by: Pritesh Kothari diff --git a/tests/bfd.at b/tests/bfd.at index 3723d60..23dbf87 100644 --- a/tests/bfd.at +++ b/tests/bfd.at @@ -229,7 +229,7 @@ OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p

[ovs-dev] [PATCH v2 2/7] nsh: userland support for network service headers

2014-02-25 Thread Pritesh Kothari
NSH service path (nsp) can be set/unset while creating the port as well as nsp can be matched on incoming packets. Signed-off-by: Pritesh Kothari diff --git a/lib/flow.c b/lib/flow.c index e7fe4d3..28e96ec 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -563,6 +563,8 @@ flow_tun_flag_to_string(uint3

[ovs-dev] [PATCH v2 4/7] nsh: datapath support for network service index

2014-02-25 Thread Pritesh Kothari
Here, datapath support for setting nsh service index (nsi) is added. nsi can now be set on outgoing packet depending on port settings or set_nsi action. Signed-off-by: Pritesh Kothari diff --git a/datapath/datapath.c b/datapath/datapath.c index b96ad1e..46a4f28 100644 --- a/datapath/datapath.c +

[ovs-dev] [PATCH v2 3/7] nsh: support for setting nsp, action set_nsp=

2014-02-25 Thread Pritesh Kothari
Support for setting nsp using an action namely set_nsp. It works similar to set_tunnel in vxlan/gre tunnel and can be used to set the outgoing nsh service path id. Also NXM_NX_NSP is defined which enables matching NSPs. Signed-off-by: Pritesh Kothari diff --git a/include/openflow/nicira-ext.h b/

[ovs-dev] [PATCH v2 1/7] nsh: datapath support for network service headers

2014-02-25 Thread Pritesh Kothari
This patch adds support for Network Service Headers (nsh) over VXLAN as mentioned in [1]. Here changes are made to datapath to add nsh headers whenever a vxlan port with destination port as 6633 (which is IANA allocated port for nsh over vxlan) is created. [1] http://tools.ietf.org/html/draft-quin

Re: [ovs-dev] [PATCH 3/5] upcall: Refactor ukey creation and dump handling

2014-02-25 Thread Ben Pfaff
On Tue, Feb 25, 2014 at 03:25:35PM -0800, Ben Pfaff wrote: > On Tue, Feb 11, 2014 at 01:55:34PM -0800, Joe Stringer wrote: > > This splits out functions for re-use by later patches, and compacts the > > udump revalidation code. > > > > Co-authored-by: Ethan Jackson > > Signed-off-by: Joe Stringer

Re: [ovs-dev] [PATCH 3/5] upcall: Refactor ukey creation and dump handling

2014-02-25 Thread Ben Pfaff
On Tue, Feb 11, 2014 at 01:55:34PM -0800, Joe Stringer wrote: > This splits out functions for re-use by later patches, and compacts the > udump revalidation code. > > Co-authored-by: Ethan Jackson > Signed-off-by: Joe Stringer I have this queued up to apply, thanks!

Re: [ovs-dev] [PATCH 2/5] upcall: Defer ukey deletion until after pushing stats.

2014-02-25 Thread Ben Pfaff
On Tue, Feb 11, 2014 at 01:55:33PM -0800, Joe Stringer wrote: > It is possible for a datapath to dump the same flow twice, for instance > if the flow is the last in a batch of flows to be dumped, then a new > flow is inserted into the same bucket before the flow dumper fetches > another batch. > >

Re: [ovs-dev] [PATCH] Rapid Spanning Protocol Implementation (IEEE 802.1D) + functional tests

2014-02-25 Thread Ben Pfaff
On Mon, Feb 24, 2014 at 04:11:23PM +0100, Martino Fornasa wrote: > The attached patch is an implementation of the Rapid Spanning Tree Protocol > (RSTP, IEEE 802.1D-2004) on Open vSwitch. > > We have now performed some more in-depth tests on the implementation > (you can find the test documentation

Re: [ovs-dev] [PATCH 1/5] ofproto-dpif: Test flow stats reporting.

2014-02-25 Thread Ben Pfaff
On Tue, Feb 11, 2014 at 01:55:32PM -0800, Joe Stringer wrote: > Basic test to check that the datapath reports the correct number of > packets seen, after a delay of 1 second. > > Signed-off-by: Joe Stringer This series appear to fix the intermittent failure of test 683 "ofproto-dpif - controller

Re: [ovs-dev] [PATCH] Windows implementation of stream-fd.

2014-02-25 Thread Gurucharan Shetty
On Tue, Feb 25, 2014 at 9:45 AM, Linda Sun wrote: > Sounds good to me. Alright. I applied this on master. > > Linda > > > >> On Feb 24, 2014, at 8:34 PM, Gurucharan Shetty wrote: >> >>> On Wed, Feb 12, 2014 at 1:50 PM, Linda Sun wrote: >>> Use send/recv for socket stream instead of read/write.

[ovs-dev] Null Pointer / Kernel Panic

2014-02-25 Thread Sean Swehla
Hello, I'm currently hitting a null pointer dereference and kernel panic that seems to be in ovs. The problem is sporadic. I have one production machine that's hit it four times in the past 24hrs, and one lab machine that I can't get to hit it at all. We rebuilt openvswitch with debugging symbols

[ovs-dev] [PATCH] Makefile.am: Fix build hang when .git and Git are present but don't work.

2014-02-25 Thread Ben Pfaff
If the .git directory is there, and "git --version" works, but "git ls-files" fails to print any file names (e.g. perhaps because .git is a symlink to an inaccessible directory) then the "grep" command in the thread-safety-check rule would hang forever because it had an empty list of files and ther

Re: [ovs-dev] [PATCH 5/5] upcall: Remove datapath flows when setting n-threads.

2014-02-25 Thread Joe Stringer
On 25 February 2014 00:01, Zhou, Han wrote: > Hi Joe, > > On Tue, 2014-02-11 at 13:55 -0800, Joe Stringer wrote: > > Previously, we would delete all ukeys when changing the number of > > threads, but leave all flows in the datapath. This would cause > > double-counting of stats for any flows that

Re: [ovs-dev] [PATCH] Windows implementation of stream-fd.

2014-02-25 Thread Linda Sun
Sounds good to me. Linda > On Feb 24, 2014, at 8:34 PM, Gurucharan Shetty wrote: > >> On Wed, Feb 12, 2014 at 1:50 PM, Linda Sun wrote: >> Use send/recv for socket stream instead of read/write. >> Use event handle for polling on socket stream. >> Check windows specific return code. >> >> S

Re: [ovs-dev] [PATCH] ofproto-dpif: Complete all packet translations before freeing an ofproto.

2014-02-25 Thread Ben Pfaff
Thanks, applied to master, branch-2.0, branch-2.1. On Mon, Feb 24, 2014 at 12:25:41PM -0800, Alex Wang wrote: > Acked-by: Alex Wang > > > > On Mon, Feb 24, 2014 at 11:10 AM, Ben Pfaff wrote: > > > The following scenario can occur: > > > >1. Handler thread grabs a pointer to an ofproto in

[ovs-dev] VMware Community

2014-02-25 Thread Michelle Hernandez
Hi Edwin, As a leading database provider, I was inquisitive to check if you would be interested in owning a list of companies using VMware that can be used for your marketing campaigns? These lists can be customized based on application, geography, titles and more. Some of the other Virtual

Re: [ovs-dev] [PATCH 5/5] upcall: Remove datapath flows when setting n-threads.

2014-02-25 Thread Zhou, Han
Hi Joe, On Tue, 2014-02-11 at 13:55 -0800, Joe Stringer wrote: > Previously, we would delete all ukeys when changing the number of > threads, but leave all flows in the datapath. This would cause > double-counting of stats for any flows that remain in the datapath. This > patch fixes the issue by