Re: [ovs-dev] [PATCH V2 01/11] clang: Add annotations for thread safety check.

2013-07-30 Thread Alex Wang
Thanks Ben for your review, very glad to see this applied. On Tue, Jul 30, 2013 at 9:40 PM, Ben Pfaff wrote: > On Tue, Jul 30, 2013 at 03:31:48PM -0700, Alex Wang wrote: > > From: Ethan Jackson > > > > This commit adds annotations for thread safety check. And the > > check can be conducted by u

Re: [ovs-dev] [PATCH 2/2] odp-util: always export priority and skb_mark in netlink

2013-07-30 Thread Simon Horman
Hi Andy, I think your plan to remove ambiguity is a good one. On Tue, Jul 30, 2013 at 09:09:35PM -0700, Andy Zhou wrote: > Simon, Thanks for the review. > The intention of my patch is to always export those attributes to remove > the ambiguity associated with interpreting missing attributes. Glad

Re: [ovs-dev] [PATCH V2 01/11] clang: Add annotations for thread safety check.

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 03:31:48PM -0700, Alex Wang wrote: > From: Ethan Jackson > > This commit adds annotations for thread safety check. And the > check can be conducted by using -Wthread-safety flag in clang. > > Co-authored-by: Alex Wang > Signed-off-by: Alex Wang > Signed-off-by: Ethan Ja

Re: [ovs-dev] [PATCH 2/2] odp-util: always export priority and skb_mark in netlink

2013-07-30 Thread Andy Zhou
Simon, Thanks for the review. The intention of my patch is to always export those attributes to remove the ambiguity associated with interpreting missing attributes. Glad to hear this patch would work well with recirculation. On Tue, Jul 30, 2013 at 8:54 PM, Simon Horman wrote: > On Tue, Jul 30

Re: [ovs-dev] [PATCH v2.35 0/6] MPLS actions and matches

2013-07-30 Thread Simon Horman
On Mon, Jul 22, 2013 at 11:30:14AM -0700, Jesse Gross wrote: > On Mon, Jul 22, 2013 at 11:13 AM, Ben Pfaff wrote: > > Jesse, I'm leaving this series alone until you give some feedback on > > the kernel side of things. Then I'm happy to review (and commit when > > appropriate) user space patches.

Re: [ovs-dev] [PATCH 2/2] odp-util: always export priority and skb_mark in netlink

2013-07-30 Thread Simon Horman
On Tue, Jul 30, 2013 at 07:49:13PM -0700, Andy Zhou wrote: > Handling of missing attributes in netlink can be tricky and turns out > to be error prone. The value (savings in netlink bandwidth) does not > seem to be significant enough to justify allowing them. This patch > series make both kernel an

Re: [ovs-dev] [PATCH] Makefile: Add ovsdb-doc to distribution tar ball.

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 07:31:48PM -0700, Gurucharan Shetty wrote: > Certain platforms like xenserver do not have the latest > python libraries that are needed by ovsdb-doc (which in-turn > creates ovs-vswitchd.conf.db.5). When we run 'make dist' and > copy over the tar ball to xenserver ddk enviro

Re: [ovs-dev] [PATCH 1/2] datapath: always export priority and skb_mark in netlink message

2013-07-30 Thread Simon Horman
On Tue, Jul 30, 2013 at 07:49:12PM -0700, Andy Zhou wrote: > Handling of missing attributes in netlink can be tricky and turns out > to be error prone. The value (savings in netlink bandwidth) does not > seem to be significant enough to justify allowing them. This patch > series make both kernel an

[ovs-dev] [PATCH] Makefile: Add ovsdb-doc to distribution tar ball.

2013-07-30 Thread Gurucharan Shetty
Certain platforms like xenserver do not have the latest python libraries that are needed by ovsdb-doc (which in-turn creates ovs-vswitchd.conf.db.5). When we run 'make dist' and copy over the tar ball to xenserver ddk environemt, we already include ovs-vswitchd.conf.db.5. But the absence of ovsdb-d

[ovs-dev] [PATCH 2/2] odp-util: always export priority and skb_mark in netlink

2013-07-30 Thread Andy Zhou
Handling of missing attributes in netlink can be tricky and turns out to be error prone. The value (savings in netlink bandwidth) does not seem to be significant enough to justify allowing them. This patch series make both kernel and userspace always export priority and skb_mark attribute. There wi

[ovs-dev] [PATCH 1/2] datapath: always export priority and skb_mark in netlink message

2013-07-30 Thread Andy Zhou
Handling of missing attributes in netlink can be tricky and turns out to be error prone. The value (savings in netlink bandwidth) does not seem to be significant enough to justify allowing them. This patch series make both kernel and userspace always export priority and skb_mark attribute. There wi

Re: [ovs-dev] [PATCH 2/2] test-atomic: Re-enable atomic read-write-modify tests.

2013-07-30 Thread Ethan Jackson
Acked-by: Ethan Jackson On Thu, Jul 18, 2013 at 2:26 PM, Ben Pfaff wrote: > This reverts commit 05d299e0ccca80736cd4438c3224540c5448a7d4 (test-atomic: > Drop atomic read-modify-write tests for the moment.) because the > test for detecting whether GCC support atomic operation built-ins has > bee

Re: [ovs-dev] [PATCH 1/2] configure: Add configure-time check for GCC 4.0+ atomic built-ins.

2013-07-30 Thread Ethan Jackson
Acked-by: Ethan Jackson On Thu, Jul 18, 2013 at 2:26 PM, Ben Pfaff wrote: > We found out earlier that GCC sometimes produces an error only at link time > for atomic built-ins that are not supported on a platform. This actually > tries the link at configure time and should thus reliably detect

[ovs-dev] [PATCH] datapath: Support for Linux kernel 3.9.

2013-07-30 Thread Kyle Mestery
Ensure that in tunnel.c:handle_offloads() we save off skb->cb before calling __skb_gso_segment() and restore it after the return. Signed-off-by: Pravin B Shelar Signed-off-by: Kyle Mestery --- Changes in v2: * No longer save skb->sb in vport_netdev.c:netdev_send(). --- datapath/datapath.c | 4 +

Re: [ovs-dev] [thread-safety 10/11] ofproto-dpif-sflow: Make the ofproto-dpif-sflow module thread safe.

2013-07-30 Thread Ethan Jackson
> Here's an incremental which fixes a couple of deadlocks. Ah getting tired, this doesn't actually fix deadlocks as the mutex is recursive. Still, I think it's better style to annotate these things, so I've folded it in. Ethan > > --- > ofproto/ofproto-dpif-sflow.c | 41 +

Re: [ovs-dev] [thread-safety 10/11] ofproto-dpif-sflow: Make the ofproto-dpif-sflow module thread safe.

2013-07-30 Thread Ethan Jackson
Here's an incremental which fixes a couple of deadlocks. --- ofproto/ofproto-dpif-sflow.c | 41 ++--- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/ofproto/ofproto-dpif-sflow.c b/ofproto/ofproto-dpif-sflow.c index fc9a836..1176b30 100644 ---

Re: [ovs-dev] [thread-safety 10/11] ofproto-dpif-sflow: Make the ofproto-dpif-sflow module thread safe.

2013-07-30 Thread Ethan Jackson
Thanks for the review. I'm going through and systematically annotating the functions, in this file, and already found a deadlock. I'll send out an incremental. Ethan On Tue, Jul 30, 2013 at 10:28 AM, Ben Pfaff wrote: > On Fri, Jul 26, 2013 at 06:07:11PM -0700, Ethan Jackson wrote: >> Signed-off

[ovs-dev] [PATCH] fix compilation on FreeBSD/NetBSD

2013-07-30 Thread YAMAMOTO Takashi
probably this should be an autoconf magic but 1) i'm not familiar with autoconf and 2) _np functions are inheretly non-portable anyway. Signed-off-by: YAMAMOTO Takashi --- lib/util.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/util.c b/lib/util.c index 6a72107..d719cd3 100644 --

Re: [ovs-dev] [PATCH] datapath: Support for Linux kernel 3.9.

2013-07-30 Thread Kyle Mestery (kmestery)
On Jul 30, 2013, at 7:17 PM, Jesse Gross wrote: > On Fri, Jul 26, 2013 at 2:21 PM, Kyle Mestery wrote: >> Add support for Linux kernel 3.9. >> >> Signed-off-by: Kyle Mestery >> CC: Pravin B Shelar > > I think it's not strictly required to do the restoration here since > the only user of skb

Re: [ovs-dev] [thread-safety 09/11] tunnel: Make the ofproto-dpif tunnel module thread safe.

2013-07-30 Thread Ethan Jackson
> GCC says: > ../ofproto/tunnel.c: In function ‘tnl_port_del’: > ../ofproto/tunnel.c:191: error: unused variable ‘tnl_port’ Thanks, due to a series of unfortunate events, for a while I had -Wno-unused on in my compiler and missed this. > The logging code in tnl_port_receive() is really fu

Re: [ovs-dev] [thread-safety 07/11] bond: Make the bond module thread safe.

2013-07-30 Thread Ethan Jackson
Perhaps it's premature optimization, but I think bonding is a pretty important use case, and I didn't want to require an exclusive lock when running bond_choose_output_slave(). Ethan On Mon, Jul 29, 2013 at 3:50 PM, Ben Pfaff wrote: > On Fri, Jul 26, 2013 at 06:07:08PM -0700, Ethan Jackson wrote

[ovs-dev] [thread-safety 03/11 v2] cfm: Make the CFM module thread safe.

2013-07-30 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- lib/cfm.c | 210 - lib/cfm.h |3 +- ofproto/ofproto.c |3 +- ofproto/ofproto.h |2 +- vswitchd/bridge.c |2 + 5 files changed, 150 insertions(+), 70 deletions(-) diff --git a/lib

[ovs-dev] [thread-safety 02/11 v2] stp: Make the STP module thread safe.

2013-07-30 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- This version makes the "all_stps" pointer const. Adds a comment explaining why we're using a recursive mutex. And systematically marks the helper functions as requireing a lock. --- lib/stp.c | 426 +++-

Re: [ovs-dev] [thread-safety 02/11] stp: Make the STP module thread safe.

2013-07-30 Thread Ethan Jackson
> There are definitely ways around the thread safety analysis. My > feeling is that we should be pretty strict about it except in modules > where contention is a real problem. > >> Why does stp need a recursive mutex? I don't see any natural >> recursion here. So looking back at this, I'd like t

[ovs-dev] [PATCH v4 3/4] ofproto-dpif: Add SCTP support

2013-07-30 Thread Joe Stringer
Reviewed-by: Simon Horman Signed-off-by: Joe Stringer --- v4: Rebase against megaflow Move openvswitch.h header changes to datapath patch v3: Rebase v2: Fix broken test Use the correct packet pointer Calculate checksums as delta from incoming checksum --- include/sparse/netinet/in.h

[ovs-dev] [PATCH v4 4/4] ofp-util: Add SCTP support

2013-07-30 Thread Joe Stringer
Reviewed-by: Simon Horman Signed-off-by: Joe Stringer --- v4: No change v3: Rebase v2: Add flowmod parse tests Add set-field tests Add NEWS item Add sctp to ovs-ofctl.8 --- NEWS |2 ++ OPENFLOW-1.1+|4 --- lib/match.c |4 +++ l

[ovs-dev] [PATCH v4 2/4] datapath: Add SCTP support

2013-07-30 Thread Joe Stringer
This patch adds support for rewriting SCTP src,dst ports similar to the functionality already available for TCP/UDP. Rewriting SCTP ports is expensive due to double-recalculation of the SCTP checksums; this is performed to ensure that packets traversing OVS with invalid checksums will continue to

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

2013-07-30 Thread Joe Stringer
This implementation was derived from FreeBSD: http://code.google.com/p/freebsd-head/source/browse/sys/libkern/crc32.c Reviewed-by: Simon Horman Signed-off-by: Joe Stringer --- v4: Fold in debian license modification Suppress checksum test sparse warning v3: Rebase Return crc32c checksum

[ovs-dev] [PATCH v4 0/4] SCTP Support

2013-07-30 Thread Joe Stringer
This patchset introduces matching and rewriting support for sctp src,dst ports. Round four does a rebase against the megaflow changes, and shuffles compat code around a bit. Functionally, we no longer have any code for Xen compatibility and the skb->ip_summed is no longer modified on port-rewrite.

Re: [ovs-dev] [thread-safety 06/11] netdev-vport: Make statistics thread safe.

2013-07-30 Thread Ethan Jackson
I'm happy with that, I'll drop this for now. Ethan On Mon, Jul 29, 2013 at 2:57 PM, Ben Pfaff wrote: > On Fri, Jul 26, 2013 at 06:07:07PM -0700, Ethan Jackson wrote: >> Statistics are the only part of netdev-vport which need to be >> manipulated by multiple threads. This patch makes them thread

[ovs-dev] [PATCH] ofproto-dpif-xlate: Don't try to optimize goto table.

2013-07-30 Thread Ethan Jackson
This patch reverts commit 5559942 (ofproto-dpif: GOTO_TABLE recursion removal.) by reintroducing the recursion through xlate_table_action(). The main reason to do this is the introduction of new rule locking in future patches. The code before this patch was relatively difficult to lock in a clean

Re: [ovs-dev] [PATCH] datapath: Support for Linux kernel 3.9.

2013-07-30 Thread Jesse Gross
On Fri, Jul 26, 2013 at 2:21 PM, Kyle Mestery wrote: > Add support for Linux kernel 3.9. > > Signed-off-by: Kyle Mestery > CC: Pravin B Shelar I think it's not strictly required to do the restoration here since the only user of skb->cb in this function block is vlans, which isn't a problem on t

Re: [ovs-dev] [PATCH net-next 2/2] openvswitch: Use skb_zerocopy() to prepare skb for upcall

2013-07-30 Thread Jesse Gross
On Fri, Jul 26, 2013 at 3:15 AM, Thomas Graf wrote: > On 07/25/13 at 06:39pm, Jesse Gross wrote: >> On Thu, Jul 25, 2013 at 5:43 AM, Thomas Graf wrote: >> > From: Thomas Graf > > The question is, can we move checksum completion to user space? We only > need to complete the checksum if the packet

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Don't try to optimize goto table.

2013-07-30 Thread Ethan Jackson
Doh, please ignore this version of the patch. Doesn't pass the unit tests. Ethan On Tue, Jul 30, 2013 at 3:31 PM, Ethan Jackson wrote: > This optimization makes reference counting rules unnecessarily hard in > future patches. I doubt it makes much performance difference, so this > patch drops

Re: [ovs-dev] [patch net-next] openvswitch:: link upper device for port devices

2013-07-30 Thread Jesse Gross
On Fri, Jul 26, 2013 at 5:01 AM, Jiri Pirko wrote: > Link upper device properly. That will make IFLA_MASTER filled up. > Set the master to port 0 of the datapath under which the port belongs. > > Signed-off-by: Jiri Pirko Applied, thanks. Sorry about the delay - I was waiting to see if the vxla

Re: [ovs-dev] [thread-safety 05/11] bfd: Make the BFD module thread safe.

2013-07-30 Thread Ethan Jackson
There was actually a second potential deadlock. I fixed both of them and systematically annotated the functions, hopefully preventing the problem in the future. --- lib/bfd.c | 66 +++-- 1 file changed, 38 insertions(+), 28 deletions(-)

[ovs-dev] [PATCH] ofproto-dpif-xlate: Don't try to optimize goto table.

2013-07-30 Thread Ethan Jackson
This optimization makes reference counting rules unnecessarily hard in future patches. I doubt it makes much performance difference, so this patch drops it for now. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-xlate.c | 30 ++ 1 file changed, 2 insertions(

Re: [ovs-dev] [thread-safety 04/11] lacp: Make the LACP module thread safe.

2013-07-30 Thread Ethan Jackson
> In lacp_unref(), I think we need to move list_remove(&lacp->node); > inside the lock/unlock. Otherwise we have a race here where > lacp_find() can grab an entry that is being destroyed. Good catch. I fixed this, and also systematically added lock annotations to all of the function definitions

Re: [ovs-dev] [PATCH v2] ovs-vswitchd.conf.db: Correct the header and footer lines.

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 02:37:18PM -0700, Gurucharan Shetty wrote: > Right now, the following 2 lines are how the header and footer > looks like for ovs-vswitchd.conf.db > > @VERSION@(5) Open vSwitch Manual@VERSION@(5) > Open vSwitch Open_vSwitch @VERSION@(5) > > After this comm

[ovs-dev] [PATCH v2] ovs-vswitchd.conf.db: Correct the header and footer lines.

2013-07-30 Thread Gurucharan Shetty
Right now, the following 2 lines are how the header and footer looks like for ovs-vswitchd.conf.db @VERSION@(5) Open vSwitch Manual@VERSION@(5) Open vSwitch Open_vSwitch @VERSION@(5) After this commit, they look like this: ovs-vswitchd.conf.db(5) Open vSwitch Manual ovs-vswi

Re: [ovs-dev] [PATCH] ovs-vswitchd.conf.db: Correct the header and footer lines.

2013-07-30 Thread Gurucharan Shetty
On Tue, Jul 30, 2013 at 11:41 AM, Ben Pfaff wrote: > On Tue, Jul 30, 2013 at 11:10:44AM -0700, Gurucharan Shetty wrote: > > diff --git a/ovsdb/automake.mk b/ovsdb/automake.mk > > index d2e3f9a..8823ecf 100644 > > --- a/ovsdb/automake.mk > > +++ b/ovsdb/automake.mk > > @@ -92,7 +92,7 @@ $(OVSIDL_B

Re: [ovs-dev] [thread-safety 08/11] mac-learning: Make the mac-learning module thread safe.

2013-07-30 Thread Ethan Jackson
> Why does the client do the locking? In a couple of places we iterate over each mac_entry by directly accessing its LRU node. I tried hiding the locking internally, but believe it or not this turned out to be cleaner. If we could hide the iteration inside the mac-learning module that would be i

Re: [ovs-dev] [creat/modify v2 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Andy Zhou
Thanks a lot. On Tue, Jul 30, 2013 at 11:42 AM, Ben Pfaff wrote: > On Tue, Jul 30, 2013 at 11:29:19AM -0700, Justin Pettit wrote: > > > > On Jul 30, 2013, at 11:17 AM, Ben Pfaff wrote: > > > > > On Tue, Jul 30, 2013 at 10:52:34AM -0700, Andy Zhou wrote: > > >> Remove the DPIF_FP_MODIFY flag wh

Re: [ovs-dev] [creat/modify v2 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 11:29:19AM -0700, Justin Pettit wrote: > > On Jul 30, 2013, at 11:17 AM, Ben Pfaff wrote: > > > On Tue, Jul 30, 2013 at 10:52:34AM -0700, Andy Zhou wrote: > >> Remove the DPIF_FP_MODIFY flag when creating a new flow. When flows arrive > >> in > >> a batch, userspace may

Re: [ovs-dev] [PATCH] ovs-vswitchd.conf.db: Correct the header and footer lines.

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 11:10:44AM -0700, Gurucharan Shetty wrote: > diff --git a/ovsdb/automake.mk b/ovsdb/automake.mk > index d2e3f9a..8823ecf 100644 > --- a/ovsdb/automake.mk > +++ b/ovsdb/automake.mk > @@ -92,7 +92,7 @@ $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in > EXTRA_DIST += ovsdb/ovsdb-doc.in >

[ovs-dev] [PATCH] ovs-vswitchd.conf.db: Correct the header and footer lines.

2013-07-30 Thread Gurucharan Shetty
Right now, the following 2 lines are how the header and footer looks like for ovs-vswitchd.conf.db @VERSION@(5) Open vSwitch Manual@VERSION@(5) Open vSwitch Open_vSwitch @VERSION@(5) After this commit, they look like this: ovs-vswitchd.conf.db(5) Open vSwitch Manual ovs-vswi

Re: [ovs-dev] [creat/modify v2 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Justin Pettit
On Jul 30, 2013, at 11:17 AM, Ben Pfaff wrote: > On Tue, Jul 30, 2013 at 10:52:34AM -0700, Andy Zhou wrote: >> Remove the DPIF_FP_MODIFY flag when creating a new flow. When flows arrive in >> a batch, userspace may push down multiple unique flow definitions that >> overlap when wildcards are app

Re: [ovs-dev] [creat/modify v2 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 10:52:34AM -0700, Andy Zhou wrote: > Remove the DPIF_FP_MODIFY flag when creating a new flow. When flows arrive in > a batch, userspace may push down multiple unique flow definitions that > overlap when wildcards are applied. Kernels support flow wildcarding > will reject th

Re: [ovs-dev] [thread-safety 00/11] Thread safety.

2013-07-30 Thread Alex Wang
Thanks Ben, I'll adjust accordingly in 01/11. On Tue, Jul 30, 2013 at 10:33 AM, Ben Pfaff wrote: > After looking over this series, I think that we should make > ovs_mutex_init() take the type of mutex to create. This would save > most of the callers creating and destroying their own > pthread

[ovs-dev] [creat/modify v2 2/2] ofproto-dpif: Only track drop flows that are installed

2013-07-30 Thread Andy Zhou
Signed-off-by: Andy Zhou --- ofproto/ofproto-dpif.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 8c7164b..839de69 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -3799,15 +

[ovs-dev] [creat/modify v2 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Andy Zhou
Remove the DPIF_FP_MODIFY flag when creating a new flow. When flows arrive in a batch, userspace may push down multiple unique flow definitions that overlap when wildcards are applied. Kernels support flow wildcarding will reject these flow as duplicates (EEXIST), which will be logged at a lower lo

Re: [ovs-dev] [thread-safety 01/11] clang: Add annotations for thread safety check.

2013-07-30 Thread Alex Wang
Sorry should send notice, I figured it out later yesterday. Thanks Ben, On Tue, Jul 30, 2013 at 10:48 AM, Ben Pfaff wrote: > On Mon, Jul 29, 2013 at 05:19:04PM -0700, Alex Wang wrote: > > On Mon, Jul 29, 2013 at 10:47 AM, Ben Pfaff wrote: > > > > > @@ -22,59 +22,55 @@ > > > #include > > >

Re: [ovs-dev] [thread-safety 01/11] clang: Add annotations for thread safety check.

2013-07-30 Thread Ben Pfaff
On Mon, Jul 29, 2013 at 05:19:04PM -0700, Alex Wang wrote: > On Mon, Jul 29, 2013 at 10:47 AM, Ben Pfaff wrote: > > > @@ -22,59 +22,55 @@ > > #include > > #include "ovs-atomic.h" > > #include "util.h" > > + > > +/* Mutex. */ > > > > struct OVS_LOCKABLE ovs_mutex { > > pthread_mutex_t lo

Re: [ovs-dev] [thread-safety 11/11] ofproto-dpif-ipfix: Make the ofproto-dpif-ipfix module thread safe.

2013-07-30 Thread Ben Pfaff
On Fri, Jul 26, 2013 at 06:07:12PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [thread-safety 00/11] Thread safety.

2013-07-30 Thread Ben Pfaff
After looking over this series, I think that we should make ovs_mutex_init() take the type of mutex to create. This would save most of the callers creating and destroying their own pthread_mutexattr_t. ___ dev mailing list dev@openvswitch.org http://open

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Andy Zhou
This is a good idea. I will send out another patch implementing this. On Tue, Jul 30, 2013 at 10:20 AM, Ben Pfaff wrote: > On Tue, Jul 30, 2013 at 12:24:43AM -0700, Andy Zhou wrote: > > Remove the DPIF_FP_MODIFY flag when creating a new flow. When flows > arrive in > > a batch, userspace may p

Re: [ovs-dev] [thread-safety 10/11] ofproto-dpif-sflow: Make the ofproto-dpif-sflow module thread safe.

2013-07-30 Thread Ben Pfaff
On Fri, Jul 26, 2013 at 06:07:11PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson The change dpif_sflow_run() adds a gratuitous blank line. Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinf

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif: Only track drop flows that are installed

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 12:24:44AM -0700, Andy Zhou wrote: > > Signed-off-by: Andy Zhou Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 12:24:43AM -0700, Andy Zhou wrote: > Remove the DPIF_FP_MODIFY flag when creating a new flow. When flows arrive in > a batch, userspace may push down multiple unique flow definitions that > overlap when wildcards are applied. Kernels support flow wildcarding > will reject th

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Andy Zhou
They are simple changes, It would be great if you can review them soon. Justin and Jesse have more background information about the first patch, but Justin will be busy till this afternoon. On Tue, Jul 30, 2013 at 9:36 AM, Ben Pfaff wrote: > On Tue, Jul 30, 2013 at 12:24:43AM -0700, Andy Zhou

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Ben Pfaff
On Tue, Jul 30, 2013 at 12:24:43AM -0700, Andy Zhou wrote: > Remove the DPIF_FP_MODIFY flag when creating a new flow. When flows arrive in > a batch, userspace may push down multiple unique flow definitions that > overlap when wildcards are applied. Kernels support flow wildcarding > will reject th

Re: [ovs-dev] creation new message

2013-07-30 Thread Ben Pfaff
Dropping CC to dev-owner, which makes no sense. On Tue, Jul 30, 2013 at 10:11:26AM +0200, Alessandra Agosta wrote: > I have created a new kind of message in ofp-msgs.h file. After that, if I > would like to sent this message from openvswitch to controller, how can I > do it? I sensed that I should

[ovs-dev] creation new message

2013-07-30 Thread Alessandra Agosta
I have created a new kind of message in ofp-msgs.h file. After that, if I would like to sent this message from openvswitch to controller, how can I do it? I sensed that I should modify this files below: / lib / poll-loop / lib / rconn / lib / vconn I should to implemented a new method in vconn.h/v

[ovs-dev] [PATCH 2/2] ofproto-dpif: Only track drop flows that are installed

2013-07-30 Thread Andy Zhou
Signed-off-by: Andy Zhou --- ofproto/ofproto-dpif.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 03393cf..f569add 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -3799,15 +

[ovs-dev] [PATCH 1/2] ofproto-dpif: Unset DPIF_FP_MODIFY flag when creating a new flo

2013-07-30 Thread Andy Zhou
Remove the DPIF_FP_MODIFY flag when creating a new flow. When flows arrive in a batch, userspace may push down multiple unique flow definitions that overlap when wildcards are applied. Kernels support flow wildcarding will reject these flow as duplicates (EEXIST), which will be logged at a lower lo

Re: [ovs-dev] [patch net-next] openvswitch:: link upper device for port devices

2013-07-30 Thread David Miller
From: Jiri Pirko Date: Fri, 26 Jul 2013 14:01:54 +0200 > Link upper device properly. That will make IFLA_MASTER filled up. > Set the master to port 0 of the datapath under which the port belongs. > > Signed-off-by: Jiri Pirko Jesse you got this? ___