Re: [ovs-dev] [PATCH V2 1/4] bfd: Implement BFD decay.

2013-08-12 Thread Ethan Jackson
Thanks this version is much closer. Just some minor points which should be pretty easy to clean up. Ben, so we don't have a 12 hour review cycle on this, would you mind looking at the next version of this patch (which should be pretty much there) and applying it if it's ready? >>> +/* Al

Re: [ovs-dev] [PATCH V2 1/4] bfd: Implement BFD decay.

2013-08-12 Thread Ethan Jackson
> This is the newest version, > > I think I address most of issues, mentioned in your comments, Ah ok I'll have a look at this one. Thanks. Ethan > > > On Tue, Aug 6, 2013 at 8:51 AM, Alex Wang wrote: >> >> When there is no incoming data traffic at the interface for a period, >> BFD decay allo

Re: [ovs-dev] [PATCH V2 1/4] bfd: Implement BFD decay.

2013-08-12 Thread Alex Wang
Hey Ethan, This is the newest version, I think I address most of issues, mentioned in your comments, Kind Regards, Alex Wang, On Tue, Aug 6, 2013 at 8:51 AM, Alex Wang wrote: > When there is no incoming data traffic at the interface for a period, > BFD decay allows the bfd session to increas

Re: [ovs-dev] [PATCH V4 1/2] bfd: Implement BFD decay.

2013-08-12 Thread Ethan Jackson
Sorry for such a delayed review of this patch. I have bit more time now that multithreading is in, so let's try to get this merged this week. Is this v4 the most recent version? Since I was so delayed reviewing it, it no longer applies to master. There's one major problem with this patch which

Re: [ovs-dev] [sparse 2/3] sparse: Remove support for thread-safety annotations.

2013-08-12 Thread Ethan Jackson
Acked-by: Ethan Jackson Agreed thank you. Ethan On Tue, Aug 13, 2013 at 6:54 AM, Ben Pfaff wrote: > The Clang support for thread-safety annotations is much more effective > than "sparse" support. I found that I was unable to make the annotations > warning-free under sparse. > > Signed-off-by:

Re: [ovs-dev] [sparse 3/3] ovs-thread: Use mutex instead of its address in thread-safety annotation.

2013-08-12 Thread Ethan Jackson
Acked-by: Ethan Jackson On Tue, Aug 13, 2013 at 6:54 AM, Ben Pfaff wrote: > CodingStyle says that this is preferred. > > Signed-off-by: Ben Pfaff > --- > lib/ovs-thread.h |6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/ovs-thread.h b/lib/ovs-thread.h > in

Re: [ovs-dev] [sparse 1/3] ofproto-dpif-upcall: Fix sparse warning.

2013-08-12 Thread Ethan Jackson
Acked-by: Ethan Jackson We've really got to get sparse to work with clang, this sort of thing is going to get annoying. C'est la vie. Ethan On Tue, Aug 13, 2013 at 6:54 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > ofproto/ofproto-dpif-upcall.c |2 +- > 1 file changed, 1 inser

Re: [ovs-dev] [debian 2/2] ovs-ofctl: Avoid groff warning due to too-long line.

2013-08-12 Thread Alex Wang
This change looks good to me, During my run of "fakeroot debian/rules binary", there is no warning. Could you hint me how to reproduce it? On Mon, Aug 12, 2013 at 3:13 PM, Ben Pfaff wrote: > Avoids these warnings from groff: > > :1037: warning [p 14, 6.0i]: cannot adjust line > :1037: warning

Re: [ovs-dev] [debian 1/2] debian: Apply hardening options to build.

2013-08-12 Thread Alex Wang
Looks good to me, I ran the "fakeroot debian/rules binary" and saw the change of CFLAGS attribute in "_debian/Makefile" ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [rule evict v2] ofproto-dpif: Lock rules to prevent eviction.

2013-08-12 Thread Ethan Jackson
At any rate this isn't an issue. I have simply unlocked and destroyed the rule after it's been removed from the classifier. Ethan On Tue, Aug 13, 2013 at 7:48 AM, Ben Pfaff wrote: > On Mon, Aug 12, 2013 at 01:23:38PM +0900, YAMAMOTO Takashi wrote: >> > This patch uses a read-write lock to preve

Re: [ovs-dev] [PATCH] ofproto: Include classifier wildcards in trace output.

2013-08-12 Thread Jesse Gross
On Mon, Aug 12, 2013 at 4:59 PM, Ben Pfaff wrote: > On Mon, Aug 05, 2013 at 04:00:03PM -0700, Jesse Gross wrote: >> When tracing a flow, it shows the "relevant fields" that were used >> to determine the results. However, this currently only includes fields >> that are used for computing the action

Re: [ovs-dev] [PATCH] ofproto: Include classifier wildcards in trace output.

2013-08-12 Thread Ben Pfaff
On Mon, Aug 05, 2013 at 04:00:03PM -0700, Jesse Gross wrote: > When tracing a flow, it shows the "relevant fields" that were used > to determine the results. However, this currently only includes fields > that are used for computing the actions but not the flow lookup. This > can be confusing so th

Re: [ovs-dev] [netdev]Internal interface 'br0' can't be created

2013-08-12 Thread Ben Pfaff
On Mon, Aug 12, 2013 at 11:04:39AM +0800, ZhengLingyun wrote: > I only know 'br0' can be used as an interface to linux host. Can someone > explain me the function of 'br0'? In fact I don't understand how 'br0' works > and why this bug does't affect me at all. If you're not putting an IP address on

Re: [ovs-dev] [rule evict v2] ofproto-dpif: Lock rules to prevent eviction.

2013-08-12 Thread Ben Pfaff
On Mon, Aug 12, 2013 at 01:23:38PM +0900, YAMAMOTO Takashi wrote: > > This patch uses a read-write lock to prevent rules from being evicted > > while they're used by child threads. It also changes the prototypes > > of the various rule lookup functions so that the thread safety > > analysis can be

Re: [ovs-dev] [PATCH] ofproto: make oftable_remove_rule__ release evict lock

2013-08-12 Thread Ben Pfaff
On Tue, Aug 13, 2013 at 08:00:05AM +0900, y...@mwd.biglobe.ne.jp wrote: > From: YAMAMOTO Takashi > > according to the OVS_RELEASES annotation, oftable_remove_rule__ is > expected to release rule->evict lock. make it actually do so. > > this fixes pthread_rwlock_destroy failures observed on NetB

Re: [ovs-dev] [PATCH] Adds way to determine db changes from Idl.run()

2013-08-12 Thread Aaron Rosen
Hi, I believe I've addressed the corner case in this patch set by returning a dict() that represents the current state of the database on connection reset/initial sync, otherwise a list of changes. This should allow the user to have a consistent view of the database. I've also changed the response

Re: [ovs-dev] [PATCH] Adds way to determine db changes from Idl.run()

2013-08-12 Thread Reid Price
I am also a bit concerned by issues that might arise from a user thinking that this is always accurate, rather than hints. Aaron, I think you had said something regarding this when we chatted off-list, but I don't recall the details. -Reid On Fri, Aug 9, 2013 at 2:50 PM, Reid Price wrote: >

[ovs-dev] [PATCH] ofproto: make oftable_remove_rule__ release evict lock

2013-08-12 Thread yamt
From: YAMAMOTO Takashi according to the OVS_RELEASES annotation, oftable_remove_rule__ is expected to release rule->evict lock. make it actually do so. this fixes pthread_rwlock_destroy failures observed on NetBSD, where destroying a held lock, which is specwise undefined behaviour, actually fa

Re: [ovs-dev] [PATCH v2] datapath: Do not set dev->master for XEN.

2013-08-12 Thread Pravin Shelar
On Mon, Aug 12, 2013 at 3:46 PM, Jesse Gross wrote: > On Mon, Aug 12, 2013 at 1:28 PM, Pravin B Shelar wrote: >> XEN dom0 networking assumes dev->master is bond device >> and it tries to access bond private structure from dev->master >> ptr on receive path. This causes panic. >> Following patch r

[ovs-dev] [sparse 3/3] ovs-thread: Use mutex instead of its address in thread-safety annotation.

2013-08-12 Thread Ben Pfaff
CodingStyle says that this is preferred. Signed-off-by: Ben Pfaff --- lib/ovs-thread.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ovs-thread.h b/lib/ovs-thread.h index 5d3964a..b7bc5d1 100644 --- a/lib/ovs-thread.h +++ b/lib/ovs-thread.h @@ -467,12 +467,12 @

[ovs-dev] [sparse 1/3] ofproto-dpif-upcall: Fix sparse warning.

2013-08-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-upcall.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 55ada89..b451f1d 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-dpif-upcall.c @@

[ovs-dev] [sparse 2/3] sparse: Remove support for thread-safety annotations.

2013-08-12 Thread Ben Pfaff
The Clang support for thread-safety annotations is much more effective than "sparse" support. I found that I was unable to make the annotations warning-free under sparse. Signed-off-by: Ben Pfaff --- include/sparse/pthread.h | 38 -- lib/compiler.h

[ovs-dev] [sparse 0/3] Bring sparse annotations up to date.

2013-08-12 Thread Ben Pfaff
I've been building with Clang lately and didn't notice that the sparse annotations had bit-rotted. The first two patches bring them up to date. The final patch is a style update. Ben Pfaff (3): ofproto-dpif-upcall: Fix sparse warning. sparse: Remove support for thread-safety annotations. o

Re: [ovs-dev] [PATCH v2] datapath: Do not set dev->master for XEN.

2013-08-12 Thread Jesse Gross
On Mon, Aug 12, 2013 at 1:28 PM, Pravin B Shelar wrote: > XEN dom0 networking assumes dev->master is bond device > and it tries to access bond private structure from dev->master > ptr on receive path. This causes panic. > Following patch removes compat code that is setting master > device. > > Sig

Re: [ovs-dev] [PATCH 2/2] netdev-bsd: ioctl "cmd" is unsigned long, not int

2013-08-12 Thread Ben Pfaff
On Tue, Aug 13, 2013 at 07:20:22AM +0900, y...@mwd.biglobe.ne.jp wrote: > From: YAMAMOTO Takashi > > Signed-off-by: YAMAMOTO Takashi Both patch applied, thank you. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH 2/2] netdev-bsd: ioctl "cmd" is unsigned long, not int

2013-08-12 Thread yamt
From: YAMAMOTO Takashi Signed-off-by: YAMAMOTO Takashi --- lib/netdev-bsd.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index f6d066b..50fb520 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -133,7 +133,7 @@ static voi

[ovs-dev] [PATCH 1/2] ofproto-dpif-upcall: don't forget to initialize mutexes

2013-08-12 Thread yamt
From: YAMAMOTO Takashi Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif-upcall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 54d3c21..55ada89 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-d

[ovs-dev] [debian 1/2] debian: Apply hardening options to build.

2013-08-12 Thread Ben Pfaff
Debian now encourages building every program with various GCC hardening options. This commit implements that recommendation for Open vSwitch. See https://wiki.debian.org/Hardening for details. Found by lintian. Signed-off-by: Ben Pfaff --- debian/rules |1 + 1 file changed, 1 insertion(+)

[ovs-dev] [debian 2/2] ovs-ofctl: Avoid groff warning due to too-long line.

2013-08-12 Thread Ben Pfaff
Avoids these warnings from groff: :1037: warning [p 14, 6.0i]: cannot adjust line :1037: warning [p 14, 6.2i]: can't break line Found by lintian. Signed-off-by: Ben Pfaff --- utilities/ovs-ofctl.8.in |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-ofctl.8.i

[ovs-dev] [debian 0/2] Fix lintian warnings

2013-08-12 Thread Ben Pfaff
These patches fix some lintian warnings for the Debian packaging. I intend to apply them both to master and branch-1.9 for upload of that branch to Debian. Thanks, Ben. Ben Pfaff (2): debian: Apply hardening options to build. ovs-ofctl: Avoid groff warning due to too-long line. debian/rule

[ovs-dev] Bug#701760: Bug#701760: openvswitch-switch: problem interacting with libvirt

2013-08-12 Thread Lukasz Szotek
Dear Ernesto, I had the same problem. Just add this line to /etc/init.d/openvswitch-switch: # X-Stop-After: libvirt-guests and reconfigure boot/shutdown order: update-rc.d -f openvswitch-switch remove insserv openvswitch-switch Now openvswitch-switch waits to libvirt-guests shutdown all VM

Re: [ovs-dev] [PATCH] band.c: Fix error in bond_choose_output_slave() function.

2013-08-12 Thread Ben Pfaff
On Mon, Aug 12, 2013 at 02:06:54PM -0700, Alex Wang wrote: > On Mon, Aug 12, 2013 at 2:04 PM, Ben Pfaff wrote: > > > > > I am nervous about accessing anything in 'slave' outside the lock. > > What do you think of this variant? > > > > Thanks, > > > > Ben. > > > Thanks Ben, for pointing this out

Re: [ovs-dev] [PATCH] Adds way to determine db changes from Idl.run()

2013-08-12 Thread Ben Pfaff
This is pretty crude (nothing else in the IDL interface requires the caller to understand the JSON-RPC protocol) and seems difficult for the callers to use. The changes that it returns can also be incomplete, at least in one corner case: if the database connection drops and reconnects, then the re

Re: [ovs-dev] [PATCH] band.c: Fix error in bond_choose_output_slave() function.

2013-08-12 Thread Alex Wang
On Mon, Aug 12, 2013 at 2:04 PM, Ben Pfaff wrote: > > I am nervous about accessing anything in 'slave' outside the lock. > What do you think of this variant? > > Thanks, > > Ben. Thanks Ben, for pointing this out, Yours looks good and safer! ___ dev

Re: [ovs-dev] [PATCH] band.c: Fix error in bond_choose_output_slave() function.

2013-08-12 Thread Ben Pfaff
On Mon, Aug 12, 2013 at 02:14:52PM -0700, Alex Wang wrote: > This commit fixes the error introduced by commit 4a1b8f30e59 (bond: > Stop using tags.). The error is caused by mistakenly returning 'slave' > where 'slave->aux' should be returned. > > Signed-off-by: Alex Wang I am nervous about acces

Re: [ovs-dev] [PATCH] seq: Add some comments.

2013-08-12 Thread Andy Zhou
Make sense. This may be most reasonable solution. On Mon, Aug 12, 2013 at 1:59 PM, Ben Pfaff wrote: > On Mon, Aug 12, 2013 at 01:56:02PM -0700, Andy Zhou wrote: > > Thanks for the added comments. Looks good. > > Thanks. I applied this to master. > > > Coding style says we should not use "//",

Re: [ovs-dev] [PATCH] seq: Add some comments.

2013-08-12 Thread Ben Pfaff
On Mon, Aug 12, 2013 at 01:56:02PM -0700, Andy Zhou wrote: > Thanks for the added comments. Looks good. Thanks. I applied this to master. > Coding style says we should not use "//", but not sure if this applies to > comments. Well, you can't use a /**/ comment inside a comment because that ends

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

2013-08-12 Thread Ben Pfaff
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, and so on. However, according to http://openvswitch.org/

Re: [ovs-dev] [PATCH] seq: Add some comments.

2013-08-12 Thread Andy Zhou
Thanks for the added comments. Looks good. Coding style says we should not use "//", but not sure if this applies to comments. On Mon, Aug 12, 2013 at 1:45 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/seq.c | 12 ++-- > lib/seq.h | 40

[ovs-dev] [PATCH] band.c: Fix error in bond_choose_output_slave() function.

2013-08-12 Thread Alex Wang
This commit fixes the error introduced by commit 4a1b8f30e59 (bond: Stop using tags.). The error is caused by mistakenly returning 'slave' where 'slave->aux' should be returned. Signed-off-by: Alex Wang --- lib/bond.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bon

Re: [ovs-dev] [PATCH 1/3] netdev-dummy: Include all dummy classes in iterations.

2013-08-12 Thread Ben Pfaff
Thanks, applied. On Mon, Aug 12, 2013 at 01:46:15PM -0700, Andy Zhou wrote: > Acked-by: Andy Zhou > > > > On Mon, Aug 12, 2013 at 12:54 PM, Ben Pfaff wrote: > > > Commit 86f1d0326bd0 (netdev-dummy: Use netdev_get_devices() instead of a > > local shash.) caused netdev-dummy functions that ite

Re: [ovs-dev] [PATCH 1/3] netdev-dummy: Include all dummy classes in iterations.

2013-08-12 Thread Andy Zhou
Acked-by: Andy Zhou On Mon, Aug 12, 2013 at 12:54 PM, Ben Pfaff wrote: > Commit 86f1d0326bd0 (netdev-dummy: Use netdev_get_devices() instead of a > local shash.) caused netdev-dummy functions that iterate over all dummy > devices to iterate only over the ones that have class 'dummy_class'. T

[ovs-dev] [PATCH] seq: Add some comments.

2013-08-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/seq.c | 12 ++-- lib/seq.h | 40 +++- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/lib/seq.c b/lib/seq.c index abe1ad8..36e5065 100644 --- a/lib/seq.c +++ b/lib/seq.c @@ -106,7 +106,11 @@ seq_chang

[ovs-dev] [PATCH v2] datapath: Do not set dev->master for XEN.

2013-08-12 Thread Pravin B Shelar
XEN dom0 networking assumes dev->master is bond device and it tries to access bond private structure from dev->master ptr on receive path. This causes panic. Following patch removes compat code that is setting master device. Signed-off-by: Pravin B Shelar Bug #18920 --- v1-v2: Fixed according to

Re: [ovs-dev] [PATCH 5/5 v2] dpif-netdev: Avoid races on queue and port changes using seq objects.

2013-08-12 Thread Andy Zhou
I was thinking of the first case. You are right, it is covered by find_nonempty_queue(). Then this patch looks good to me. On Mon, Aug 12, 2013 at 1:06 PM, Ben Pfaff wrote: > To be specific, I guess we are talking about > dp_netdev_output_userspace() calling seq_change() and > dpif_netdev_recv

Re: [ovs-dev] [PATCH 5/5 v2] dpif-netdev: Avoid races on queue and port changes using seq objects.

2013-08-12 Thread Ben Pfaff
To be specific, I guess we are talking about dp_netdev_output_userspace() calling seq_change() and dpif_netdev_recv_wait() calling seq_wait(). As you say, they are serialized by dp_netdev_mutex, so there are two possible orders: - If dp_netdev_output_userspace() runs first, then queue_seq doe

Re: [ovs-dev] [PATCH] bond.c: Fix a type.

2013-08-12 Thread Ben Pfaff
On Mon, Aug 12, 2013 at 12:01:46PM -0700, Alex Wang wrote: > This commit fixes a typo in "lib/bond.c" which causes the high CPU > utilization after adding bond. > > Signed-off-by: Alex Wang Applied, thanks. ___ dev mailing list dev@openvswitch.org http

[ovs-dev] [PATCH 2/3] netdev-dummy: Fix synchronization error in netdev_dummy_get_config().

2013-08-12 Thread Ben Pfaff
Found by Clang. Signed-off-by: Ben Pfaff --- lib/netdev-dummy.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c index 5c31210..32b0943 100644 --- a/lib/netdev-dummy.c +++ b/lib/netdev-dummy.c @@ -327,12 +327,15 @@ netdev_dummy_get_config(const st

[ovs-dev] [PATCH 3/3] netdev-dummy: Add Clang lock annotations.

2013-08-12 Thread Ben Pfaff
The locks and unlocks added in this commit are superfluous but should not hurt performance and make Clang happy. Signed-off-by: Ben Pfaff --- lib/netdev-dummy.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/lib/netdev-dummy.c b/lib/netdev

[ovs-dev] [PATCH 1/3] netdev-dummy: Include all dummy classes in iterations.

2013-08-12 Thread Ben Pfaff
Commit 86f1d0326bd0 (netdev-dummy: Use netdev_get_devices() instead of a local shash.) caused netdev-dummy functions that iterate over all dummy devices to iterate only over the ones that have class 'dummy_class'. This seemed to obviously include all the ones that we want, but in fact when ovs-vsw

Re: [ovs-dev] [PATCH] Adds way to determine db changes from Idl.run()

2013-08-12 Thread Aaron Rosen
On Fri, Aug 9, 2013 at 2:50 PM, Reid Price wrote: > Or you could keep the original function behavior the same and expose this > as a separate function > > def foo(...): > > > def run(...): > return self.foo(...)[0] > > where foo is a better function name - update? run_details? > run

[ovs-dev] [PATCH] bond.c: Fix a type.

2013-08-12 Thread Alex Wang
This commit fixes a typo in "lib/bond.c" which causes the high CPU utilization after adding bond. Signed-off-by: Alex Wang --- lib/bond.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bond.c b/lib/bond.c index 06dd362..a9278db 100644 --- a/lib/bond.c +++ b/lib/bond.c

Re: [ovs-dev] [PATCH 4/5] datapath lisp: use iptunnel_pull_header().

2013-08-12 Thread Pravin Shelar
On Wed, Aug 7, 2013 at 1:54 PM, Lori Jakab wrote: > On 7/30/13 1:47 AM, Pravin B Shelar wrote: >> >> CC: Lori Jakab >> Signed-off-by: Pravin B Shelar >> --- >> datapath/vport-lisp.c | 48 >> ++-- >> 1 files changed, 2 insertions(+), 46 deletions(-

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

2013-08-12 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

[ovs-dev] added locking to IPFIX exporter cache

2013-08-12 Thread Romain Lenglet
Hi, I updated my IPFIX caching patch to add mutex locking to the run() and wait() functions. Thanks, -- Romain Lenglet ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] datapath: Use parallel_ops genl.

2013-08-12 Thread Pravin Shelar
On Tue, Aug 6, 2013 at 7:44 PM, Jesse Gross wrote: > On Thu, Aug 1, 2013 at 3:36 PM, Pravin B Shelar wrote: >> OVS locking was recently changed to have private OVS lock which >> simplified overall locking. Therefore there is no need to have >> another global genl lock to protect OVS data structu

Re: [ovs-dev] [PATCH v2] datapath: Support for Linux kernel 3.10

2013-08-12 Thread Pravin Shelar
On Tue, Aug 6, 2013 at 7:42 PM, Jesse Gross wrote: > On Fri, Aug 2, 2013 at 11:38 AM, Pravin B Shelar wrote: >> Changes are mostly related API changes in vlan, GRE >> restructuring. >> >> Signed-off-by: Pravin B Shelar > > Acked-by: Jesse Gross > > I agree with Kyle's comment about the FAQ and

[ovs-dev] [PATCH] datapath: Do not set dev->master for XEN.

2013-08-12 Thread Pravin B Shelar
XEN dom0 networking assumes dev->master is bond device and it tries to access bond private structure from dev->master ptr on receive path. This causes panic, Therefore do not set dev->master for XEN. Signed-off-by: Pravin B Shelar Bug #18920 --- datapath/linux/compat/include/linux/netdevice.h |

Re: [ovs-dev] [seq 4/5] seq: New module for race-free, pollable, thread-safe sequence number.

2013-08-12 Thread Andy Zhou
On Sat, Aug 10, 2013 at 8:51 PM, Ben Pfaff wrote: > On Sat, Aug 10, 2013 at 04:32:11PM -0700, Andy Zhou wrote: > > Sorry for the delay in review. It took me a while to understand the > design > > intent to be able to understand the logic. > > Thanks for the review. > > If the design intent is un

Re: [ovs-dev] [PATCH 5/5 v2] dpif-netdev: Avoid races on queue and port changes using seq objects.

2013-08-12 Thread Andy Zhou
Here is an example I can think of: Thread A wants to do a seq_change(), Thread B wants to do seq_wait(), they both compete for dp_netdev_mutex at the same time. Assume Thread A wins, seq_change changed the seq->value to +1 and releases the dp_netdev_mutex. Thread B now waits for the +1 value to c

Re: [ovs-dev] [PATCH v4 1/4] lib: Add CRC32C Implementation

2013-08-12 Thread Joe Stringer
Thanks, didn't know about that. I'll use that link instead. On Mon, Aug 12, 2013 at 11:08 PM, Ed Maste wrote: > On 30 July 2013 20:31, Joe Stringer wrote: > > This implementation was derived from FreeBSD: > > http://code.google.com/p/freebsd-head/source/browse/sys/libkern/crc32.c > > The canon

Re: [ovs-dev] [PATCH v4 1/4] lib: Add CRC32C Implementation

2013-08-12 Thread Ed Maste
On 30 July 2013 20:31, Joe Stringer wrote: > This implementation was derived from FreeBSD: > http://code.google.com/p/freebsd-head/source/browse/sys/libkern/crc32.c The canonical FreeBSD web repo location for this file would be: http://svnweb.freebsd.org/base/head/sys/libkern/crc32.c (It doesn't