[ovs-dev] [PATCH] ofproto-dpif: add thread-safety annotation to vsp_{remove, add}

2013-08-21 Thread Simon Horman
This corrects an minor oversight in "ofproto-dpif: Make vlan splinters thread safe." which add thread-safety to these functions. Signed-off-by: Simon Horman --- ofproto/ofproto-dpif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 5a64

Re: [ovs-dev] [PATCH V2 2/2] bfd: Implements forwarding_if_rx

2013-08-21 Thread Alex Wang
Hey Ethan, > Basically if the remote endpoint signaled cpath down, and > forwarding_if_rx is enabled, that state should be sticky even if we > lose some of their packets. > We do have a similar issue in BFD. I'm not sure if I fully understand your suggestion. But I have a intuitive fix below:

[ovs-dev] [PATCH V3 2/2] bfd: Implement forwarding_if_rx.

2013-08-21 Thread Alex Wang
This commit adds a new boolean option "forwarding_if_rx" to bfd. When forwarding_if_rx is true the interface will be considered capable of packet I/O as long as there is packet received at interface. This is important in that when link becomes temporarily conjested, consecutive BFD control packet

Re: [ovs-dev] [PATCH V3 2/2] bfd: Implement forwarding_if_rx.

2013-08-21 Thread Alex Wang
Really sorry, this patch does not include all the changes. Please ignore this patch. On Wed, Aug 21, 2013 at 3:24 PM, Alex Wang wrote: > This commit adds a new boolean option "forwarding_if_rx" to bfd. > > When forwarding_if_rx is true the interface will be considered > capabale of packet I/O a

Re: [ovs-dev] [clang 3/4] ofproto-dpif: Mark rule_release() as no_thread_safety_analysis.

2013-08-21 Thread Kais Belgaied
looks good. Kais On Wed, Aug 21, 2013 at 1:01 PM, Ben Pfaff wrote: > Otherwise new Clang complains about this function because it only sometimes > releases the lock (that is, it only does it when there is a lock to > release). > > I first noticed these warnings with Clang 1:3.4~svn188890-1~exp1

Re: [ovs-dev] OpenvSwitch DKMS compatibility with Linux 3.11

2013-08-21 Thread Jesse Gross
On Wed, Aug 21, 2013 at 10:06 AM, James Page wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 21/08/13 18:01, Jesse Gross wrote: On 21/08/13 17:16, Jesse Gross wrote: >> What's the status of OVS 1.12? Is this just a dev >> branch or is it planned for release?

[ovs-dev] [PATCH V3 2/2] bfd: Implement forwarding_if_rx.

2013-08-21 Thread Alex Wang
This commit adds a new boolean option "forwarding_if_rx" to bfd. When forwarding_if_rx is true the interface will be considered capabale of packet I/O as long as there is packet received at interface. This is important in that when link becomes temporarily conjested, consecutive BFD control packe

Re: [ovs-dev] [PATCH] ofp-parse: Silence uninitialized use warnings with optimized gcc.

2013-08-21 Thread Ethan Jackson
Thanks, merged. Ethan On Wed, Aug 21, 2013 at 2:54 PM, Ben Pfaff wrote: > On Wed, Aug 21, 2013 at 02:50:59PM -0700, Ethan Jackson wrote: >> GCC 4.6.3 gets confused by the str_to_*() functions in ofp-parse and >> spits out the following warning. >> >> error: ???priority??? may be used uninitializ

Re: [ovs-dev] [PATCH] ofp-parse: Silence uninitialized use warnings with optimized gcc.

2013-08-21 Thread Ben Pfaff
On Wed, Aug 21, 2013 at 02:50:59PM -0700, Ethan Jackson wrote: > GCC 4.6.3 gets confused by the str_to_*() functions in ofp-parse and > spits out the following warning. > > error: ???priority??? may be used uninitialized in this function > > Signed-off-by: Ethan Jackson Seems reasonable. Acked

[ovs-dev] [PATCH] ofp-parse: Silence uninitialized use warnings with optimized gcc.

2013-08-21 Thread Ethan Jackson
GCC 4.6.3 gets confused by the str_to_*() functions in ofp-parse and spits out the following warning. error: ‘priority’ may be used uninitialized in this function Signed-off-by: Ethan Jackson --- lib/ofp-parse.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [ovs-dev] [clang 1/4] ovs-thread: Mark lock and unlock functions as no_thread_safety_analysis.

2013-08-21 Thread Ethan Jackson
Acked-by: Ethan Jackson On Wed, Aug 21, 2013 at 1:01 PM, Ben Pfaff wrote: > I don't see any other way to make Clang realize that these are the real > mutex implementation functions. > > I first noticed these warnings with Clang 1:3.4~svn188890-1~exp1. > I previously used version 1:3.4~svn187484

Re: [ovs-dev] [PATCH V2 2/2] bfd: Implements forwarding_if_rx

2013-08-21 Thread Alex Wang
On Wed, Aug 21, 2013 at 2:26 PM, Ethan Jackson wrote: > This patch is basically ready, two minor comments and we'll get it merged > today. > > First the title line should be changed to "bfd: Implement > forwarding_if_rx." Note the period. > > Yes, how could I miss that. > > > > -return bf

Re: [ovs-dev] [PATCH V2 2/2] bfd: Implements forwarding_if_rx

2013-08-21 Thread Ethan Jackson
This patch is basically ready, two minor comments and we'll get it merged today. First the title line should be changed to "bfd: Implement forwarding_if_rx." Note the period. > > -return bfd->state == STATE_UP > -&& bfd->rmt_diag != DIAG_PATH_DOWN > -&& bfd->rmt_diag != DIAG_

Re: [ovs-dev] [PATCH] ofproto: Fix typo in comment.

2013-08-21 Thread Kyle Mestery (kmestery)
On Aug 21, 2013, at 4:15 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Looks good. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] ofproto: Fix typo in comment.

2013-08-21 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 1e09c56..7b4ef41 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -5124,7 +5124,7 @@ choose_rule_to_evict(struct oftable *tabl

Re: [ovs-dev] [PATCH] ipfix: implement flow caching and aggregation in exporter

2013-08-21 Thread Ben Pfaff
On Wed, Aug 21, 2013 at 01:47:45PM -0700, Romain Lenglet wrote: > - Original Message - > > From: "Ben Pfaff" > > To: "Romain Lenglet" > > Cc: dev@openvswitch.org > > Sent: Wednesday, August 21, 2013 1:25:59 PM > > Subject: Re: [PATCH] ipfix: implement flow caching and aggregation in > >

[ovs-dev] [PATCH] ipfix: implement flow caching and aggregation in exporter

2013-08-21 Thread Romain Lenglet
Implement a per-exporter flow cache with active timeout expiration. Add columns "cache_active_timeout" and "cache_max_flows" into table "IPFIX" to configure each cache. Add per-flow elements "octetDeltaSumOfSquares", "minimumIpTotalLength", and "maximumIpTotalLength" to replace "ethernetTotalLengt

Re: [ovs-dev] [PATCH] ipfix: implement flow caching and aggregation in exporter

2013-08-21 Thread Romain Lenglet
- Original Message - > From: "Ben Pfaff" > To: "Romain Lenglet" > Cc: dev@openvswitch.org > Sent: Wednesday, August 21, 2013 1:25:59 PM > Subject: Re: [PATCH] ipfix: implement flow caching and aggregation in exporter > > On Tue, Aug 20, 2013 at 05:54:27PM -0700, Romain Lenglet wrote: > >

Re: [ovs-dev] [PATCH] ipfix: implement flow caching and aggregation in exporter

2013-08-21 Thread Ben Pfaff
On Tue, Aug 20, 2013 at 05:54:27PM -0700, Romain Lenglet wrote: > Implement a per-exporter flow cache with active timeout expiration. > Add columns "cache_active_timeout" and "cache_max_flows" into table > "IPFIX" to configure each cache. > > Add per-flow elements "octetDeltaSumOfSquares", > "mini

Re: [ovs-dev] Reinterpret base for meter band types bitmap.

2013-08-21 Thread Ben Pfaff
On Wed, Aug 21, 2013 at 11:26:13AM -0700, Jarno Rajahalme wrote: > On Aug 12, 2013, at 9:57 PM, Ben Pfaff wrote: > > > OpenFlow 1.3 says that the band_types member of struct ofp_meter_features > > is a bitmap of OFPMBT_* values. The OFPMBT_* values are 1-based, so > > until now, to avoid wasting

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-upcall: Increase upcall stub size.

2013-08-21 Thread Ben Pfaff
On Wed, Aug 21, 2013 at 01:00:18PM -0700, Ethan Jackson wrote: > The existing upcall stub size is not large enough even for the > smallest miss upcalls. > > Signed-off-by: Ethan Jackson > Reported-by: Guolin Yang Acked-by: Ben Pfaff ___ dev mailing l

Re: [ovs-dev] [PATCH 2/2] netdev: Make run and wait functions optional as documented.

2013-08-21 Thread Ben Pfaff
On Wed, Aug 21, 2013 at 01:00:19PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson > Reported-by: Guolin Yang Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [clang 4/4] ofproto-dpif-xlate: Refactor xlate_table_action() to avoid Clang warnings.

2013-08-21 Thread Ben Pfaff
I get a bunch of thread-safety warnings with the latest Clang without this patch, because Clang is smart enough to see locking and unlocking but not smart enough to figure out the relationships. This refactoring avoids the warnings. I first noticed these warnings with Clang 1:3.4~svn188890-1~exp1

[ovs-dev] [clang 2/4] ofproto-dpif: Fix thread safety annotation on rule_dpif_lookup_in_table().

2013-08-21 Thread Ben Pfaff
New Clang versions raise warnings about the incorrect old annotation. I first noticed these warnings with Clang 1:3.4~svn188890-1~exp1. I previously used version 1:3.4~svn187484-1~exp1. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c |2 +- ofproto/ofproto-dpif.h |2 +- 2 files chan

[ovs-dev] [clang 0/4] Fix new warnings with most recent Clang

2013-08-21 Thread Ben Pfaff
I upgraded from Clang 1:3.4~svn187484-1~exp1 to 1:3.4~svn188890-1~exp1 this morning and got new thread safety warnings. This series fixes them. All the new warnings appear to be false positives. Ben Pfaff (4): ovs-thread: Mark lock and unlock functions as no_thread_safety_analysis. ofpro

[ovs-dev] [clang 1/4] ovs-thread: Mark lock and unlock functions as no_thread_safety_analysis.

2013-08-21 Thread Ben Pfaff
I don't see any other way to make Clang realize that these are the real mutex implementation functions. I first noticed these warnings with Clang 1:3.4~svn188890-1~exp1. I previously used version 1:3.4~svn187484-1~exp1. Signed-off-by: Ben Pfaff --- lib/compiler.h |3 +++ lib/ovs-thread.c

[ovs-dev] [clang 3/4] ofproto-dpif: Mark rule_release() as no_thread_safety_analysis.

2013-08-21 Thread Ben Pfaff
Otherwise new Clang complains about this function because it only sometimes releases the lock (that is, it only does it when there is a lock to release). I first noticed these warnings with Clang 1:3.4~svn188890-1~exp1. I previously used version 1:3.4~svn187484-1~exp1. Signed-off-by: Ben Pfaff -

[ovs-dev] [PATCH 2/2] netdev: Make run and wait functions optional as documented.

2013-08-21 Thread Ethan Jackson
Signed-off-by: Ethan Jackson Reported-by: Guolin Yang --- lib/netdev.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/netdev.c b/lib/netdev.c index 088aea9..bf942a0 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -126,7 +126,9 @@ netdev_run(void) ovs_rw

[ovs-dev] [PATCH 1/2] ofproto-dpif-upcall: Increase upcall stub size.

2013-08-21 Thread Ethan Jackson
The existing upcall stub size is not large enough even for the smallest miss upcalls. Signed-off-by: Ethan Jackson Reported-by: Guolin Yang --- ofproto/ofproto-dpif-upcall.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-upcall.h b/ofproto/ofproto-dp

Re: [ovs-dev] Reinterpret base for meter band types bitmap.

2013-08-21 Thread Jarno Rajahalme
On Aug 12, 2013, at 9:57 PM, Ben Pfaff wrote: > OpenFlow 1.3 says that the band_types member of struct ofp_meter_features > is a bitmap of OFPMBT_* values. The OFPMBT_* values are 1-based, so > until now, to avoid wasting bit 0, OVS mapped an OFPMBT_* with value 1 to > bit 0, value 2 to bit 1, a

[ovs-dev] [PATCH 2/2] ofproto-dpif: Compute the subfacet add/del rate using coverage counters

2013-08-21 Thread Alex Wang
The subfacet rates (e.g. add rate, del rate) were computed by exponential moving averaging function in ofproto-dpif.c. This patch replaces that logic with coverage counters. And the rates can be checked by running "ovs-appctl coverage/show" command. Signed-off-by: Alex Wang --- ofproto/ofproto

[ovs-dev] [PATCH 1/2] coverage: Reimplement the "ovs-appctl coverage/show" command

2013-08-21 Thread Alex Wang
This commit changes the "ovs-appctl coverage/show" command to show the per-second, per-minute and per-hour rates of function invocation. More importantly, this makes using coverage counter an easy way to monitor the execution of specific functions. Signed-off-by: Alex Wang --- lib/coverage-unix

Re: [ovs-dev] [clang-atomics 4/4] ovs-thread: Work around apparent Clang bug.

2013-08-21 Thread Ben Pfaff
On Tue, Aug 20, 2013 at 03:12:16PM -0700, Ben Pfaff wrote: > On Tue, Aug 20, 2013 at 05:05:26PM -0400, Ed Maste wrote: > > On 20 August 2013 14:10, Ben Pfaff wrote: > > > Without this patch, I get Clang warnings that I don't understand for each > > > of the non-static functions in dirs.c: > > > >

Re: [ovs-dev] OpenvSwitch DKMS compatibility with Linux 3.11

2013-08-21 Thread James Page
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 21/08/13 18:01, Jesse Gross wrote: >>> On 21/08/13 17:16, Jesse Gross wrote: > What's the status of OVS 1.12? Is this just a dev > branch or is it planned for release? > It's actually a dead branch. It looks like we're going to

Re: [ovs-dev] OpenvSwitch DKMS compatibility with Linux 3.11

2013-08-21 Thread Jesse Gross
On Wed, Aug 21, 2013 at 9:54 AM, James Page wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hi Jesse > > On 21/08/13 17:16, Jesse Gross wrote: What's the status of OVS 1.12? Is this just a dev branch or is it planned for release? >> It's actually a dead branch. It looks li

Re: [ovs-dev] [clang-atomics 1/4] ovs-atomic: Fix typo in comment.

2013-08-21 Thread Ben Pfaff
On Wed, Aug 21, 2013 at 05:05:01AM -0400, Ed Maste wrote: > On 20 August 2013 14:10, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > > Acked-by: Ed Maste Thanks, applied. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinf

Re: [ovs-dev] OpenvSwitch DKMS compatibility with Linux 3.11

2013-08-21 Thread James Page
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Jesse On 21/08/13 17:16, Jesse Gross wrote: >>> What's the status of OVS 1.12? Is this just a dev branch or is >>> it planned for release? > It's actually a dead branch. It looks like we're going to get a > few more things in and call the version

Re: [ovs-dev] OpenvSwitch DKMS compatibility with Linux 3.11

2013-08-21 Thread Jesse Gross
On Wed, Aug 21, 2013 at 3:00 AM, James Page wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 21/08/13 10:26, James Page wrote: >>> support and looks at least somewhat related, so it might be a >>> good place to start: https://git.kernel.org/cgit/linux/kernel/git/torvalds

Re: [ovs-dev] OpenvSwitch DKMS compatibility with Linux 3.11

2013-08-21 Thread James Page
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 21/08/13 10:26, James Page wrote: >> support and looks at least somewhat related, so it might be a >> good >>> place to start: >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/net/openvswitch?id=351638e7deeed2ec8ce451b53

Re: [ovs-dev] OpenvSwitch DKMS compatibility with Linux 3.11

2013-08-21 Thread James Page
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 19/08/13 17:23, Jesse Gross wrote: >> Is this the case? Is the delta between DKMS and native kernel >>> disappearing? Can I just ship the userspace tooling for 13.10 >>> of Ubuntu? > It's going away but it's not quite there yet. The 3.11 upstream

Re: [ovs-dev] [clang-atomics 1/4] ovs-atomic: Fix typo in comment.

2013-08-21 Thread Ed Maste
On 20 August 2013 14:10, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Acked-by: Ed Maste ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] Processed: jessie

2013-08-21 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org: > tags 719665 + sid jessie Bug #719665 [src:libterralib] libterralib: FTBFS: Impossible to satisfy Build-Depends Added tag(s) sid and jessie. > tags 719736 + sid jessie Bug #719736 [openvswitch] openvswitch: build FTBFS "make check" failures on mo