[ovs-dev] [PATCH] signals: don't assume that sys_siglist is an array

2013-10-02 Thread YAMAMOTO Takashi
this was caught by the recent __ARRAY_CHECK stuff. Signed-off-by: YAMAMOTO Takashi --- lib/signals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/signals.c b/lib/signals.c index f11ed05..27da5d6 100644 --- a/lib/signals.c +++ b/lib/signals.c @@ -110,7 +110,7 @@ const c

Re: [ovs-dev] [PATCH] util: use gcc builtins to better check array sizes

2013-10-02 Thread Flavio Leitner
On Wed, Oct 02, 2013 at 04:46:15PM -0700, Ben Pfaff wrote: > On Wed, Oct 02, 2013 at 06:44:44PM -0300, Flavio Leitner wrote: > > On Wed, Oct 02, 2013 at 12:34:53PM -0700, Ben Pfaff wrote: > > > On Wed, Oct 02, 2013 at 02:40:09AM -0300, Flavio Leitner wrote: > > > > GCC provides two useful builtin f

Re: [ovs-dev] [PATCH v2.41 5/5] datapath: Add basic MPLS support to kernel

2013-10-02 Thread Simon Horman
On Wed, Oct 02, 2013 at 11:03:57AM -0700, Pravin Shelar wrote: > On Mon, Sep 30, 2013 at 11:47 PM, Simon Horman wrote: > > Allow datapath to recognize and extract MPLS labels into flow keys > > and execute actions which push, pop, and set labels on packets. > > > > Based heavily on work by Leo Alt

Re: [ovs-dev] [PATCH] util: use gcc builtins to better check array sizes

2013-10-02 Thread Ben Pfaff
On Wed, Oct 02, 2013 at 06:44:44PM -0300, Flavio Leitner wrote: > On Wed, Oct 02, 2013 at 12:34:53PM -0700, Ben Pfaff wrote: > > On Wed, Oct 02, 2013 at 02:40:09AM -0300, Flavio Leitner wrote: > > > GCC provides two useful builtin functions that can help > > > to improve array size checking during

[ovs-dev] [PATCH V2 5/5] ofproto-dpif-monitor: Run ofproto-dpif-monitor in a thread.

2013-10-02 Thread Alex Wang
This commit moves the ofproto-dpif-monitor module into a dedicated thread. This helps eliminate the burden of main thread having to wake up very frequently for periodic interface monitoring (bfd, cfm). Also, this commit greatly increases the number of bfd/cfm sessions that can be supported by ovs

Re: [ovs-dev] [PATCH] util: use gcc builtins to better check array sizes

2013-10-02 Thread Flavio Leitner
On Wed, Oct 02, 2013 at 12:34:53PM -0700, Ben Pfaff wrote: > On Wed, Oct 02, 2013 at 02:40:09AM -0300, Flavio Leitner wrote: > > GCC provides two useful builtin functions that can help > > to improve array size checking during compilation. > > > > This patch contains no functional changes, but it

Re: [ovs-dev] [PATCH V2 4/5] ofproto-dpif-monitor: Add ofproto-dpif-monitor module.

2013-10-02 Thread Alex Wang
As Ethan suggested, I add an optimization with this V2 patch. I use stub in monitor_run() to eliminate the need to resize ofpbuf in bfd_put_packet() and cfm_compose_packet(). >From perf result, the improvement is very small. It is possible that the big cpu consumption of "libc-2.15.so" is caused

[ovs-dev] [PATCH V2 4/5] ofproto-dpif-monitor: Add ofproto-dpif-monitor module.

2013-10-02 Thread Alex Wang
This commit adds a new module ofproto-dpif-monitor in ofproto directory. This module is in charge of executing the periodic functions of monitoring code (e.g. bfd and cfm). Signed-off-by: Alex Wang --- v1 -> v2: - refine the comments. - prevent resizing ofpbuf in monitor_run() by using stub. -

Re: [ovs-dev] [PATCH] util: use gcc builtins to better check array sizes

2013-10-02 Thread Ben Pfaff
On Wed, Oct 02, 2013 at 02:40:09AM -0300, Flavio Leitner wrote: > GCC provides two useful builtin functions that can help > to improve array size checking during compilation. > > This patch contains no functional changes, but it makes > it easier to detect mistakes. > > Signed-off-by: Flavio Leit

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Remove dead code from recv_upcalls().

2013-10-02 Thread Ben Pfaff
Thanks, applied. On Wed, Oct 02, 2013 at 11:30:08AM -0700, Ethan Jackson wrote: > Acked-by: Ethan Jackson > > > On Wed, Oct 2, 2013 at 11:16 AM, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > > --- > > ofproto/ofproto-dpif-upcall.c |4 > > 1 file changed, 4 deletions(-) > > > > dif

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Remove dead code from recv_upcalls().

2013-10-02 Thread Ethan Jackson
Acked-by: Ethan Jackson On Wed, Oct 2, 2013 at 11:16 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > ofproto/ofproto-dpif-upcall.c |4 > 1 file changed, 4 deletions(-) > > diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c > index 07c302f..9ec081a 1006

[ovs-dev] [PATCH V3 3/5] timeval: Wake up all threads when time is warped.

2013-10-02 Thread Alex Wang
This commit makes the main thread wake up all other threads when time is warped. Signed-off-by: Alex Wang --- v2 -> v3: - make timewarp_wait() no-op when timeval_dummy_register() is not called. v1 -> v2: - change the code to make main thread wake up all other threads when time is warped. - ch

Re: [ovs-dev] [PATCH v3] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Gurucharan Shetty
On Wed, Oct 2, 2013 at 10:08 AM, Ben Pfaff wrote: > On Wed, Oct 02, 2013 at 09:32:25AM -0700, Gurucharan Shetty wrote: >> From: Duffie Cooley >> >> commit 46528f78e5c(debian, rhel, xenserver: Ability to collect ovs-ctl logs) >> made changes in the startup scripts such that the o/p of ovs-ctl is l

[ovs-dev] [PATCH] ofproto-dpif-upcall: Remove dead code from recv_upcalls().

2013-10-02 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-upcall.c |4 1 file changed, 4 deletions(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 07c302f..9ec081a 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-dpif-upcall.c @@ -488,7 +488,6

Re: [ovs-dev] [reordering v2 1/2] ofproto-dpif-upcall: Forward packets in order of arrival.

2013-10-02 Thread Ben Pfaff
On Wed, Oct 02, 2013 at 10:15:36AM +0300, Dmitry Fleytman wrote: > > On Sep 19, 2013, at 23:06 PM, Ben Pfaff wrote: > > > On Thu, Sep 19, 2013 at 12:48:05PM -0700, Ben Pfaff wrote: > >> On Thu, Sep 19, 2013 at 12:48:19PM -0700, Jarno Rajahalme wrote: > >>> Small typo on the first line of the new

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: reduce number of wakeup

2013-10-02 Thread Ben Pfaff
On Wed, Sep 25, 2013 at 08:55:21AM -0700, Ben Pfaff wrote: > On Wed, Sep 25, 2013 at 01:38:58PM +0900, YAMAMOTO Takashi wrote: > > if a queue length is long (ie. non-0), the consumer thread should > > already be busy working on the queue. there's no need to wake it > > up repeatedly. > > > > Sign

Re: [ovs-dev] [PATCH v2.41 5/5] datapath: Add basic MPLS support to kernel

2013-10-02 Thread Pravin Shelar
On Mon, Sep 30, 2013 at 11:47 PM, Simon Horman wrote: > Allow datapath to recognize and extract MPLS labels into flow keys > and execute actions which push, pop, and set labels on packets. > > Based heavily on work by Leo Alterman, Ravi K, Isaku Yamahata and Joe > Stringer. > > Cc: Ravi K > Cc:

Re: [ovs-dev] [PATCH V2 3/5] timeval: Wake up all threads when time is warped.

2013-10-02 Thread Alex Wang
sure, I should do that, thanks On Wed, Oct 2, 2013 at 10:20 AM, Ben Pfaff wrote: > On Wed, Oct 02, 2013 at 07:31:49AM -0700, Alex Wang wrote: > > This commit makes the main thread wake up all other threads when time is > > warped. > > > > Signed-off-by: Alex Wang > > I am a little nervous abou

Re: [ovs-dev] [PATCH V2 3/5] timeval: Wake up all threads when time is warped.

2013-10-02 Thread Ben Pfaff
On Wed, Oct 02, 2013 at 07:31:49AM -0700, Alex Wang wrote: > This commit makes the main thread wake up all other threads when time is > warped. > > Signed-off-by: Alex Wang I am a little nervous about adding overhead to the common case to serve only the rare case of a time-warp. I suggest that

[ovs-dev] [PATCH v3] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Gurucharan Shetty
From: Duffie Cooley commit 46528f78e5c(debian, rhel, xenserver: Ability to collect ovs-ctl logs) made changes in the startup scripts such that the o/p of ovs-ctl is logged into ovs-ctl.log. But it had an unintended consequence that the exit status of ovs-ctl was no longer returned. We would alway

Re: [ovs-dev] [PATCH V2 1/5] ofproto-dpif: Move send_packet() to ofproto-dpif-xlate module.

2013-10-02 Thread Ben Pfaff
On Wed, Oct 02, 2013 at 07:17:18AM -0700, Alex Wang wrote: > This commit moves the main logic of send_packet() function into > the ofproto-dpif-xlate module. Also, modification is made to > guarantee the thread safety of ofproto-dpif-xlate module. > > Signed-off-by: Alex Wang Acked-by: Ben Pfaf

Re: [ovs-dev] [PATCH v3] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Ben Pfaff
On Wed, Oct 02, 2013 at 09:32:25AM -0700, Gurucharan Shetty wrote: > From: Duffie Cooley > > commit 46528f78e5c(debian, rhel, xenserver: Ability to collect ovs-ctl logs) > made changes in the startup scripts such that the o/p of ovs-ctl is logged > into ovs-ctl.log. But it had an unintended conse

Re: [ovs-dev] [PATCH] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Gurucharan Shetty
On Wed, Oct 2, 2013 at 9:54 AM, Ben Pfaff wrote: > On Wed, Oct 02, 2013 at 07:20:11AM -0700, Gurucharan Shetty wrote: >> commit 46528f78e5c(debian, rhel, xenserver: Ability to collect ovs-ctl logs) >> made changes in the startup scripts such that the o/p of ovs-ctl is logged >> into ovs-ctl.log. B

[ovs-dev] [PATCH v2] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Gurucharan Shetty
From: Duffie Cooley commit 46528f78e5c(debian, rhel, xenserver: Ability to collect ovs-ctl logs) made changes in the startup scripts such that the o/p of ovs-ctl is logged into ovs-ctl.log. But it had an unintended consequence that the exit status of ovs-ctl was no longer returned. We would alway

Re: [ovs-dev] [PATCH] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Ben Pfaff
On Wed, Oct 02, 2013 at 07:20:11AM -0700, Gurucharan Shetty wrote: > commit 46528f78e5c(debian, rhel, xenserver: Ability to collect ovs-ctl logs) > made changes in the startup scripts such that the o/p of ovs-ctl is logged > into ovs-ctl.log. But it had an unintended consequence that the exit statu

Re: [ovs-dev] [PATCH] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Jesse Gross
On Wed, Oct 2, 2013 at 7:55 AM, Gurucharan Shetty wrote: > Duffie, > I will need a Signed-off-by by you. > (I do not see a Authored-by convention used anywhere. So I put you as > Co-authored-by. If there is such a thing, I will change it.) You can use --author to set the author in the commit and

Re: [ovs-dev] [PATCH] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Duffie Cooley
Signed-off-by: Duffie Cooley Thanks! Duffie On Oct 2, 2013 7:56 AM, "Gurucharan Shetty" wrote: > Duffie, > I will need a Signed-off-by by you. > (I do not see a Authored-by convention used anywhere. So I put you as > Co-authored-by. If there is such a thing, I will change it.) > > On Wed, Oct

Re: [ovs-dev] [PATCH] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Gurucharan Shetty
Duffie, I will need a Signed-off-by by you. (I do not see a Authored-by convention used anywhere. So I put you as Co-authored-by. If there is such a thing, I will change it.) On Wed, Oct 2, 2013 at 7:20 AM, Gurucharan Shetty wrote: > commit 46528f78e5c(debian, rhel, xenserver: Ability to collect

[ovs-dev] [PATCH] ovs-lib: Return the exit status of ovs-ctl in ovs_ctl()

2013-10-02 Thread Gurucharan Shetty
commit 46528f78e5c(debian, rhel, xenserver: Ability to collect ovs-ctl logs) made changes in the startup scripts such that the o/p of ovs-ctl is logged into ovs-ctl.log. But it had an unintended consequence that the exit status of ovs-ctl was no longer returned. We would always return success(the e

[ovs-dev] [PATCH V2 3/5] timeval: Wake up all threads when time is warped.

2013-10-02 Thread Alex Wang
This commit makes the main thread wake up all other threads when time is warped. Signed-off-by: Alex Wang --- v1 -> v2: - change the code to make main thread wake up all other threads when time is warped. - change the commit log. --- lib/poll-loop.c |5 + lib/timeval.c | 21

[ovs-dev] [PATCH V2 2/5] ofproto-dpif: Make stats update thread safe.

2013-10-02 Thread Alex Wang
This commit makes the update of 'stats' member in ofproto_dpif struct thread safe. Signed-off-by: Alex Wang --- v1 -> v2: - add thread-safety tag OVS_GUARDED. --- ofproto/ofproto-dpif.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/o

Re: [ovs-dev] [PATCH] rhel: fix the exit status of the openvswitch init script.

2013-10-02 Thread Gurucharan Shetty
As Paul mentioned, there is a missing descriptor 4 in the code. I will fix it up, test it and send a patch. On Tue, Oct 1, 2013 at 4:17 PM, Paul Ingram wrote: > OK, but I don't see the redirect to descriptor 4 in the real code (it's > obviously there in the example). > > :: psi > > On Oct 1, 2013

[ovs-dev] [PATCH V2 1/5] ofproto-dpif: Move send_packet() to ofproto-dpif-xlate module.

2013-10-02 Thread Alex Wang
This commit moves the main logic of send_packet() function into the ofproto-dpif-xlate module. Also, modification is made to guarantee the thread safety of ofproto-dpif-xlate module. Signed-off-by: Alex Wang --- v1 -> v2: - move dpif_execute inside critical section. - add a blank line before #e

Re: [ovs-dev] [reordering v2 1/2] ofproto-dpif-upcall: Forward packets in order of arrival.

2013-10-02 Thread Dmitry Fleytman
On Sep 19, 2013, at 23:06 PM, Ben Pfaff wrote: > On Thu, Sep 19, 2013 at 12:48:05PM -0700, Ben Pfaff wrote: >> On Thu, Sep 19, 2013 at 12:48:19PM -0700, Jarno Rajahalme wrote: >>> Small typo on the first line of the new comment. >> >> Oops, fixed. >> >>> Acked-by: Jarno Rajahalme >> >> Thank