[ovs-dev] [PATCHv13] ofproto-dpif-upcall: Remove the flow_dumper thread.

2014-04-21 Thread Joe Stringer
From: Ethan Jackson Previously, we had a separate flow_dumper thread that fetched flows from the datapath to distribute to revalidator threads. This patch takes the logic for dumping and pushes it into the revalidator threads, resulting in simpler code with similar performance to the current code

[ovs-dev] [PATCH] hmap_random_node: Improve distribution

2014-04-21 Thread YAMAMOTO Takashi
Improve random distribution for an hmap with a small number of nodes with the expense of the increased cpu cost. It would be a fair trade-off because the situation is rather common for bond, which is currently the only consumer of this API in tree. Signed-off-by: YAMAMOTO Takashi --- lib/hmap.c

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix logic error in handler/revalidator threads creation and deletion.

2014-04-21 Thread Alex Wang
Applied, thx very much for the review. On Mon, Apr 21, 2014 at 9:10 PM, Ethan Jackson wrote: > LGTM as well > > On Mon, Apr 21, 2014 at 9:09 PM, Alex Wang wrote: > > Commit 1f8675481e (ofproto-dpif-upcall: Fix ovs-vswitchd crash.) > > directly copied the udpif_set_threads() logic to udpif_stop

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix logic error in handler/revalidator threads creation and deletion.

2014-04-21 Thread Ethan Jackson
LGTM as well On Mon, Apr 21, 2014 at 9:09 PM, Alex Wang wrote: > Commit 1f8675481e (ofproto-dpif-upcall: Fix ovs-vswitchd crash.) > directly copied the udpif_set_threads() logic to udpif_stop_threads() > and udpif_start_threads(). In fact, this was erroneous and caused > unittest failures. > > T

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix logic error in handler/revalidator threads creation and deletion.

2014-04-21 Thread Alex Wang
Commit 1f8675481e (ofproto-dpif-upcall: Fix ovs-vswitchd crash.) directly copied the udpif_set_threads() logic to udpif_stop_threads() and udpif_start_threads(). In fact, this was erroneous and caused unittest failures. This commit fixes the above issue by correcting the checks in udpif_stop_thre

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix logic error in handler/revalidator threads creation and deletion.

2014-04-21 Thread Joe Stringer
Thanks for patching this. I'll hold off on rebasing until this is pushed. On 22 April 2014 15:28, Ethan Jackson wrote: > Acked-by: Ethan Jackson > > > On Mon, Apr 21, 2014 at 8:25 PM, Alex Wang wrote: > > Commit 1f8675481e (ofproto-dpif-upcall: Fix ovs-vswitchd crash.) > > directly copied the

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix logic error in handler/revalidator threads creation and deletion.

2014-04-21 Thread Ethan Jackson
Acked-by: Ethan Jackson On Mon, Apr 21, 2014 at 8:25 PM, Alex Wang wrote: > Commit 1f8675481e (ofproto-dpif-upcall: Fix ovs-vswitchd crash.) > directly copied the udpif_set_threads() logic to udpif_stop_threads() > and udpif_start_threads(). In fact, this was erroneous and caused > unittest fa

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix logic error in handler/revalidator threads creation and deletion.

2014-04-21 Thread Alex Wang
Commit 1f8675481e (ofproto-dpif-upcall: Fix ovs-vswitchd crash.) directly copied the udpif_set_threads() logic to udpif_stop_threads() and udpif_start_threads(). In fact, this was erroneous and caused unittest failures. This commit fixes the above issue by correcting the checks in udpif_stop_thre

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix ovs-vswitchd crash.

2014-04-21 Thread Alex Wang
Sorry, seemed my patch caused more issues, There is a typo in the udpif_stop_threads() function, There are also unit test failures, I'm addressing it, On Mon, Apr 21, 2014 at 6:19 PM, Ethan Jackson wrote: > Acked-by: Ethan Jackson > > > On Mon, Apr 21, 2014 at 6:13 PM, Alex Wang wrote: >

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix ovs-vswitchd crash.

2014-04-21 Thread Ethan Jackson
Acked-by: Ethan Jackson On Mon, Apr 21, 2014 at 6:13 PM, Alex Wang wrote: > On current master, caller of udpif_set_threads() can pass 0 value > on n_handlers and n_revalidators to delete all handler and revalidator > threads. > > After commit 9a159f748866 (ofproto-dpif-upcall: Remove the dispat

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix ovs-vswitchd crash.

2014-04-21 Thread Alex Wang
On current master, caller of udpif_set_threads() can pass 0 value on n_handlers and n_revalidators to delete all handler and revalidator threads. After commit 9a159f748866 (ofproto-dpif-upcall: Remove the dispatcher thread.), udpif_set_threads() also calls the dpif_handlers_set() with the 0 value

Re: [ovs-dev] [PATCH 01/10] lib/flow: Simplify miniflow accessors, add ipv6 support.

2014-04-21 Thread YAMAMOTO Takashi
> > On Apr 20, 2014, at 7:49 PM, YAMAMOTO Takashi wrote: > >>> +hash = mhash_finish(hash, 13); /* No need to match byte length >>> here. */ >> >> is it worth being special? >> > > I知 not exactly sure what you ask here, but in general, the length parameter > is used to distinguish be

Re: [ovs-dev] [ovs-discuss] Bug version 2.1.90 - failed to set upcall pid on port: Numerical result out of range

2014-04-21 Thread Ben Pfaff
Thanks! On Apr 21, 2014 5:08 PM, "Alex Wang" wrote: > Hey Ben, > > Yeah, this is introduced by my changes. I'm working on a fix. > > Alex Wang, > Thx, > > > On Mon, Apr 21, 2014 at 4:48 PM, Ben Pfaff wrote: > >> Yes, I'm seeing these too on current master. I bisected it to the >> following com

Re: [ovs-dev] [ovs-discuss] Bug version 2.1.90 - failed to set upcall pid on port: Numerical result out of range

2014-04-21 Thread Alex Wang
Hey Ben, Yeah, this is introduced by my changes. I'm working on a fix. Alex Wang, Thx, On Mon, Apr 21, 2014 at 4:48 PM, Ben Pfaff wrote: > Yes, I'm seeing these too on current master. I bisected it to the > following commit: > > commit 9a159f748866136a126474137604b2b020bd3574 > Auth

Re: [ovs-dev] [ovs-discuss] Bug version 2.1.90 - failed to set upcall pid on port: Numerical result out of range

2014-04-21 Thread Ben Pfaff
Yes, I'm seeing these too on current master. I bisected it to the following commit: commit 9a159f748866136a126474137604b2b020bd3574 Author: Alex Wang Date: Wed Feb 26 23:03:24 2014 -0800 ofproto-dpif-upcall: Remove the dispatcher thread. With the foundation laid i

[ovs-dev] [PATCHv12] ofproto-dpif-upcall: Remove the flow_dumper thread.

2014-04-21 Thread Joe Stringer
From: Ethan Jackson Previously, we had a separate flow_dumper thread that fetched flows from the datapath to distribute to revalidator threads. This patch takes the logic for dumping and pushes it into the revalidator threads, resulting in simpler code with similar performance to the current code

[ovs-dev] [PATCH] dpif-linux: Fix ovs-vswitchd crash.

2014-04-21 Thread Alex Wang
Commits 1579cf677fc (dpif-linux: Implement the API functions to allow multiple handler threads read upcall.) causes the ovs-vswitchd crash in the following scenario: - when udpif_flush() is called, it sets both n-handlers and n-revalidators to zero. and it calls the dpif_handlers_set() to refre

Re: [ovs-dev] [PATCH] dpif-linux: Fix a NULL pointer refernce in vport_del_channels()

2014-04-21 Thread Alex Wang
Thx Andy for providing the core file. It is very helpful! The root cause is that: 1. when udpif_flush() is called, it sets both n-handlers and n-revalidators to 0 2. in refresh_channels() (dpif-linux.c), though the new 'n_handlers = 0', we still try dpif->handlers = xzalloc(n_handlers * size

Re: [ovs-dev] [PATCH 1/2] datapath: add hash action

2014-04-21 Thread Andy Zhou
Thanks a lot for great reviews from Jesse and Pravin. Pushed both patches with the typos fixed. On Mon, Apr 21, 2014 at 9:13 AM, Jesse Gross wrote: > On Sun, Apr 20, 2014 at 11:05 PM, Andy Zhou wrote: >> diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h >> index 1aa9158..dd2

Re: [ovs-dev] [PATCH] dpif-linux: Fix a NULL pointer refernce in vport_del_channels()

2014-04-21 Thread Alex Wang
Hey Andy, Thx for the fix. Could you provide more info on how to reproduce it? maybe the backtrace? I expect vport_del_channels() to be called only when 'port_idx >= dpif->uc_array_size' or dpif->handlers[0].channels is non-NULL. I want to know more about the context. Thx Alex Wang, On Sun,

Re: [ovs-dev] [PATCH 08/11] netdev: Initialize netdev_class_mutex.

2014-04-21 Thread Gurucharan Shetty
On Sat, Apr 19, 2014 at 8:30 PM, YAMAMOTO Takashi wrote: >> ovsdb-server on windows crashes without it. >> >> Signed-off-by: Gurucharan Shetty > > why is it necessary on windows? I see why this patch is not correct. There is a dynamic initialization of the mutex in netdev_initialize(). For the

Re: [ovs-dev] [PATCH] datapath: remove unneeded declaration of new_vport().

2014-04-21 Thread Jesse Gross
On Sun, Apr 20, 2014 at 2:19 AM, Rami Rosen wrote: > This patch removes the new_vport() forward declaration in datapath.c > as it is not needed. > > Signed-off-by: Rami Rosen Applied. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mail

Re: [ovs-dev] [PATCH 2/2] datapath: add recirc action

2014-04-21 Thread Jesse Gross
On Sun, Apr 20, 2014 at 11:06 PM, Andy Zhou wrote: > Recirculation implementation for Linux kernel data path. > > Signed-off-by: Andy Zhou Acked-by: Jesse Gross ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] datapath: add hash action

2014-04-21 Thread Jesse Gross
On Sun, Apr 20, 2014 at 11:05 PM, Andy Zhou wrote: > diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h > index 1aa9158..dd2cceb 100644 > --- a/include/linux/openvswitch.h > +++ b/include/linux/openvswitch.h > @@ -312,7 +312,8 @@ enum ovs_key_attr { > OVS_KEY_ATTR_TUNNE

Re: [ovs-dev] [PATCH 02/10] lib: Inline functions used in classifier_lookup

2014-04-21 Thread Jarno Rajahalme
On Apr 20, 2014, at 7:54 PM, YAMAMOTO Takashi wrote: > do these inlining yield measurable improvements? > I have not measured this recently, but I’ll report back with later on this. > YAMAMOTO Takashi Jarno ___ dev mailing list dev@openvswitch.o

Re: [ovs-dev] [PATCH 01/10] lib/flow: Simplify miniflow accessors, add ipv6 support.

2014-04-21 Thread Jarno Rajahalme
On Apr 20, 2014, at 7:49 PM, YAMAMOTO Takashi wrote: >> +hash = mhash_finish(hash, 13); /* No need to match byte length >> here. */ > > is it worth being special? > I’m not exactly sure what you ask here, but in general, the length parameter is used to distinguish between inputs tha

Re: [ovs-dev] [PATCH v5] core, nfqueue, openvswitch: Orphan frags in skb_zerocopy and handle errors

2014-04-21 Thread Luis Henriques
Hi David, On Thu, Mar 27, 2014 at 03:29:56PM -0400, David Miller wrote: > From: Zoltan Kiss > Date: Wed, 26 Mar 2014 22:37:45 + > > > skb_zerocopy can copy elements of the frags array between skbs, but it > > doesn't > > orphan them. Also, it doesn't handle errors, so this patch takes care

[ovs-dev] SHIP CRUISE EMPLOYMENT 2014

2014-04-21 Thread mareen black
JOB ID:  EU/DCL/00867-13   ATTN:   Complements of the season; We want to inform you that we are hiring candidates that will work with Disney Cruise Line [Australia] under the job Identification Number EU/DCL/00867-13. The total recruitment will be 205 applicants. Minimum Age requirements is 18-y