[ovs-dev] [dpif 4/5] dpif-netdev: Make internally thread-safe by introducing a global mutex.

2013-07-23 Thread Ben Pfaff
This can be improved later but it is the simple thing to do for now. I marked a couple of races with XXX. I don't have a really good solution for these, but I hope to find one. They may be harmless in practice. Signed-off-by: Ben Pfaff --- lib/dpif-netdev.c | 203

[ovs-dev] [dpif 3/5] dpif-linux: Make use of channels thread-safe.

2013-07-23 Thread Ben Pfaff
This seems to be the last remaining thread-unsafe code in dpif-linux. Signed-off-by: Ben Pfaff --- lib/dpif-linux.c | 123 ++ 1 files changed, 96 insertions(+), 27 deletions(-) diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index 3935eff..a

[ovs-dev] [dpif 5/5] dpif: Make dpifs thread-safe, and document it.

2013-07-23 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/dpif.c | 108 +-- 1 files changed, 82 insertions(+), 26 deletions(-) diff --git a/lib/dpif.c b/lib/dpif.c index 4878aac..0d8dd9d 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -70,6 +70,9 @@ struct registered_

[ovs-dev] [dpif 2/5] dpif-linux: Make port change notification thread-safe.

2013-07-23 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/dpif-linux.c | 154 ++--- 1 files changed, 76 insertions(+), 78 deletions(-) diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index c972197..3935eff 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -148,26 +

[ovs-dev] [dpif 1/5] ovs-thread: Add wrappers for "destroy" functions too.

2013-07-23 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/ovs-thread.c |3 +++ lib/ovs-thread.h |3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/ovs-thread.c b/lib/ovs-thread.c index 4776587..91bb3d9 100644 --- a/lib/ovs-thread.c +++ b/lib/ovs-thread.c @@ -73,6 +73,7 @@ static bool multi

[ovs-dev] [dpif 0/5] make dpif library thread-safe

2013-07-23 Thread Ben Pfaff
This series makes the dpif library thread-safe. I have not checked yet whether the netdev library, which is not yet thread-safe, screws up this property of the dpif changes yet. Ben Pfaff (5): ovs-thread: Add wrappers for "destroy" functions too. dpif-linux: Make port change notification thre

Re: [ovs-dev] [PATCH 2/2] Prepare for post-1.12.0 (1.12.90).

2013-07-23 Thread Justin Pettit
On Jul 23, 2013, at 3:08 PM, Ben Pfaff wrote: > On Tue, Jul 23, 2013 at 03:07:03PM -0700, Justin Pettit wrote: >> Signed-off-by: Justin Pettit > > On both: > Acked-by: Ben Pfaff Thanks. I pushed the changes and created branch "branch-1.12". --Justin __

Re: [ovs-dev] [PATCH 3/5] ovs-bugtool: Compact the database before collecting.

2013-07-23 Thread Gurucharan Shetty
On Tue, Jul 23, 2013 at 11:31 AM, Ben Pfaff wrote: > On Mon, Jul 22, 2013 at 12:17:07PM -0700, Gurucharan Shetty wrote: > > Currently the openvswitch database is being collected with > > CAP_NETWORK_CONFIG which has a max size of 50 KB. This is > > quite low as the database can easily be larger t

[ovs-dev] [PATCH 3/5 v2] ovs-bugtool: Collect database through CAP_NETWORK_STATUS.

2013-07-23 Thread Gurucharan Shetty
Currently the openvswitch database is being collected with CAP_NETWORK_CONFIG which has a max size of 50 KB. This is quite low as the database can easily be larger than 50 KB. Move database collection to CAP_NETWORK_STATUS which does not have a max size. If database size exceeds 10 MB, create a co

[ovs-dev] [PATCH] clang: Use -Wthread-safety warning flag.

2013-07-23 Thread Alex Wang
The '-Wthread-safety' warning flag of 'clang' compiler can be useful to the compilation of multi-threading code. This commit enables this flag whenever 'CC=clang'. Signed-off-by: Alex Wang --- configure.ac |1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 1

Re: [ovs-dev] [PATCH 2/2] Prepare for post-1.12.0 (1.12.90).

2013-07-23 Thread Ben Pfaff
On Tue, Jul 23, 2013 at 03:07:03PM -0700, Justin Pettit wrote: > Signed-off-by: Justin Pettit On both: Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH 2/2] Prepare for post-1.12.0 (1.12.90).

2013-07-23 Thread Justin Pettit
Signed-off-by: Justin Pettit --- NEWS |4 configure.ac |2 +- debian/changelog |7 +++ 3 files changed, 12 insertions(+), 1 deletions(-) diff --git a/NEWS b/NEWS index f422bf8..3bf4421 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +post-v1.12.0 +--

[ovs-dev] [PATCH 1/2] Prepare for 1.12.0.

2013-07-23 Thread Justin Pettit
Signed-off-by: Justin Pettit --- NEWS |4 ++-- configure.ac |2 +- debian/changelog | 31 --- 3 files changed, 31 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index b46fc43..f422bf8 100644 --- a/NEWS +++ b/NEWS @@ -1,11 +1,11 @@ -po

Re: [ovs-dev] [PATCH 3/5] ovs-bugtool: Compact the database before collecting.

2013-07-23 Thread Reid Price
> > Compacting the database loses tons of information that I often find > valuable. +1 ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 4/5] ovs-bugtool: Add config files to the debug bundle.

2013-07-23 Thread Ben Pfaff
On Tue, Jul 23, 2013 at 12:29:40PM -0700, Gurucharan Shetty wrote: > On Tue, Jul 23, 2013 at 11:33 AM, Ben Pfaff wrote: > > > On Mon, Jul 22, 2013 at 12:17:08PM -0700, Gurucharan Shetty wrote: > > > The previously defined config files were never included in > > > the debug bundle. This will inclu

Re: [ovs-dev] [PATCH 2/5] ovs-bugtool: Separate capability for general network info.

2013-07-23 Thread Ben Pfaff
On Tue, Jul 23, 2013 at 11:39:38AM -0700, Gurucharan Shetty wrote: > On Tue, Jul 23, 2013 at 11:27 AM, Ben Pfaff wrote: > > > On Mon, Jul 22, 2013 at 12:17:06PM -0700, Gurucharan Shetty wrote: > > > Current situation is that CAP_NETWORK_STATUS has a max size of 50 MB. > > > When we have around 10

Re: [ovs-dev] [PATCH V2 3/3] clang: Fix the alignment warning.

2013-07-23 Thread Alex Wang
Thanks Ben, On Tue, Jul 23, 2013 at 12:34 PM, Ben Pfaff wrote: > On Mon, Jul 22, 2013 at 03:47:19PM -0700, Alex Wang wrote: > > This commit fixes the warning issued by 'clang' when pointer is casted > > to one with greater alignment. > > > > Signed-off-by: Alex Wang > > Thanks, I applied this.

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Fix invalid memory read on port removal.

2013-07-23 Thread Ben Pfaff
On Mon, Jul 22, 2013 at 12:55:56PM -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] [PATCH V2 3/3] clang: Fix the alignment warning.

2013-07-23 Thread Ben Pfaff
On Mon, Jul 22, 2013 at 03:47:19PM -0700, Alex Wang wrote: > This commit fixes the warning issued by 'clang' when pointer is casted > to one with greater alignment. > > Signed-off-by: Alex Wang Thanks, I applied this. I noticed one place with an unnecessary cast, so I folded this in: diff --gi

Re: [ovs-dev] [PATCH 4/5] ovs-bugtool: Add config files to the debug bundle.

2013-07-23 Thread Gurucharan Shetty
On Tue, Jul 23, 2013 at 11:33 AM, Ben Pfaff wrote: > On Mon, Jul 22, 2013 at 12:17:08PM -0700, Gurucharan Shetty wrote: > > The previously defined config files were never included in > > the debug bundle. This will include them. > > > > Also increase the max size for CAP_NETWORK_CONFIG to 5 MB. >

Re: [ovs-dev] [threads 23/23] vlog: Mark vlog_module_ptr_* as const.

2013-07-23 Thread Ben Pfaff
Thanks, I applied all of these. On Tue, Jul 23, 2013 at 11:28:12AM -0700, Alex Wang wrote: > Thanks, > > patches 21/23-23/23 all looks good to me, > > > On Tue, Jul 23, 2013 at 11:24 AM, Ben Pfaff wrote: > > > On Tue, Jul 23, 2013 at 08:07:55AM -0700, Alex Wang wrote: > > > Want to ask, the "

Re: [ovs-dev] [threads 20/23] netdev-vport: Make pid checking in set_tunnel_config() thread-safe

2013-07-23 Thread Ben Pfaff
Thanks, I applied all of these. On Tue, Jul 23, 2013 at 11:28:58AM -0700, Andy Zhou wrote: > patch 11-20, > acked-by: Andy Zhou > > > > On Thu, Jul 18, 2013 at 4:15 PM, Ben Pfaff wrote: > > > Signed-off-by: Ben Pfaff > > --- > > lib/netdev-vport.c |4 > > 1 files changed, 4 insert

Re: [ovs-dev] [PATCH 2/5] ovs-bugtool: Separate capability for general network info.

2013-07-23 Thread Gurucharan Shetty
On Tue, Jul 23, 2013 at 11:27 AM, Ben Pfaff wrote: > On Mon, Jul 22, 2013 at 12:17:06PM -0700, Gurucharan Shetty wrote: > > Current situation is that CAP_NETWORK_STATUS has a max size of 50 MB. > > When we have around 100,000 openflow flows, we over-run that size > > by just running the "ovs-ofct

Re: [ovs-dev] [PATCH 5/5] ovs-bugtool: Increase max size of CAP_HARDWARE_INFO.

2013-07-23 Thread Ben Pfaff
On Mon, Jul 22, 2013 at 12:17:09PM -0700, Gurucharan Shetty wrote: > Current size feels very low when we are collecting o/p of > 'dmidecode' and 'lspci -vv' > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.

Re: [ovs-dev] [PATCH 4/5] ovs-bugtool: Add config files to the debug bundle.

2013-07-23 Thread Ben Pfaff
On Mon, Jul 22, 2013 at 12:17:08PM -0700, Gurucharan Shetty wrote: > The previously defined config files were never included in > the debug bundle. This will include them. > > Also increase the max size for CAP_NETWORK_CONFIG to 5 MB. > A pre-compressed size of 5 MB does not amount to much after >

Re: [ovs-dev] [PATCH 3/5] ovs-bugtool: Compact the database before collecting.

2013-07-23 Thread Ben Pfaff
On Mon, Jul 22, 2013 at 12:17:07PM -0700, Gurucharan Shetty wrote: > Currently the openvswitch database is being collected with > CAP_NETWORK_CONFIG which has a max size of 50 KB. This is > quite low as the database can easily be larger than 50 KB. > > Move database collection to CAP_NETWORK_STATU

Re: [ovs-dev] [threads 20/23] netdev-vport: Make pid checking in set_tunnel_config() thread-safe

2013-07-23 Thread Andy Zhou
patch 11-20, acked-by: Andy Zhou On Thu, Jul 18, 2013 at 4:15 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/netdev-vport.c |4 > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c > index 885bf5e..4214b38 100644 >

Re: [ovs-dev] [threads 23/23] vlog: Mark vlog_module_ptr_* as const.

2013-07-23 Thread Alex Wang
Thanks, patches 21/23-23/23 all looks good to me, On Tue, Jul 23, 2013 at 11:24 AM, Ben Pfaff wrote: > On Tue, Jul 23, 2013 at 08:07:55AM -0700, Alex Wang wrote: > > Want to ask, the "section" attribute specifies that the pointer is placed > > in "vlog_modules"" section. And this section is au

Re: [ovs-dev] [PATCH 2/5] ovs-bugtool: Separate capability for general network info.

2013-07-23 Thread Ben Pfaff
On Mon, Jul 22, 2013 at 12:17:06PM -0700, Gurucharan Shetty wrote: > Current situation is that CAP_NETWORK_STATUS has a max size of 50 MB. > When we have around 100,000 openflow flows, we over-run that size > by just running the "ovs-ofctl dump-flows" command. All the openvswitch > commands run thr

Re: [ovs-dev] [PATCH 1/5] ovs-bugtool: Remove duplicate bond/show command.

2013-07-23 Thread Ben Pfaff
On Mon, Jul 22, 2013 at 12:17:05PM -0700, Gurucharan Shetty wrote: > ovs-appctl bond/show is being run through the plugin by > calling the script ovs-bugtool-bond-show. > > So remove the redundant code. > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff __

Re: [ovs-dev] [threads 23/23] vlog: Mark vlog_module_ptr_* as const.

2013-07-23 Thread Ben Pfaff
On Tue, Jul 23, 2013 at 08:07:55AM -0700, Alex Wang wrote: > Want to ask, the "section" attribute specifies that the pointer is placed > in "vlog_modules"" section. And this section is automatically created by > compiler, right? Yes. ___ dev mailing list

Re: [ovs-dev] [PATCH] vlan-splinter: Fix a bug.

2013-07-23 Thread Ben Pfaff
On Mon, Jul 22, 2013 at 06:15:49PM -0700, Alex Wang wrote: > When "other-config:enable-vlan-splinters=true" is set, the existing > vlans with ip address must be retained. The bug actually does the > opposite and retains the vlans without ip address. This commit fixes > it. > > Reported-by: Roman S

[ovs-dev] [PATCH] ovs-ofctl: Add "ofp-parse" command for printing OpenFlow from a file.

2013-07-23 Thread Ben Pfaff
Signed-off-by: Ben Pfaff length); +if (length < sizeof *oh) { +ovs_fatal(0, "%s: %zu-byte message is too short for OpenFlow", + filename, length); +} + +tail_len = length - sizeof *oh; +tail = ofpbuf_put_uninit(&b, tail_len); +

Re: [ovs-dev] [threads 22/23] fatal-signal: Make thread-safe.

2013-07-23 Thread Alex Wang
Looks good to me, thanks, On Thu, Jul 18, 2013 at 4:15 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/fatal-signal.c | 56 > +++ > lib/fatal-signal.h |3 +- > lib/ovs-thread.c |5 > lib/ovs-thread.h |6 + >

Re: [ovs-dev] [threads 23/23] vlog: Mark vlog_module_ptr_* as const.

2013-07-23 Thread Alex Wang
Looks good to me, Want to ask, the "section" attribute specifies that the pointer is placed in "vlog_modules"" section. And this section is automatically created by compiler, right? Thanks, On Thu, Jul 18, 2013 at 4:15 PM, Ben Pfaff wrote: > This makes them more obviously thread-safe. > > Sig

Re: [ovs-dev] [threads 21/23] command-line: Make proctitle changing commands thread-safe.

2013-07-23 Thread Alex Wang
Looks good to me, thanks, On Thu, Jul 18, 2013 at 4:15 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/command-line.c |5 + > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/lib/command-line.c b/lib/command-line.c > index 7800c0b..39b26da 100644 > --- a/l

Re: [ovs-dev] [mptcp-dev] MPTCP v0.87 - Release Candidate

2013-07-23 Thread Christoph Paasch
On 23/07/13 - 13:46:37, Vasiliy Tolstov wrote: > 2013/7/23 Christoph Paasch : > > I do not know the technical details of bridging with vswitch, but from an > > MPTCP point-of-view this would work. > > > > You just have to set the sysctl ndiffports to 2, so that MPTCP creates two > > subflows and le

Re: [ovs-dev] [mptcp-dev] MPTCP v0.87 - Release Candidate

2013-07-23 Thread Vasiliy Tolstov
2013/7/23 Christoph Paasch : > I do not know the technical details of bridging with vswitch, but from an > MPTCP point-of-view this would work. > > You just have to set the sysctl ndiffports to 2, so that MPTCP creates two > subflows and let the openflow-controller route the subflows accordingly.

Re: [ovs-dev] [mptcp-dev] MPTCP v0.87 - Release Candidate

2013-07-23 Thread Vasiliy Tolstov
2013/7/23 Christoph Paasch : > I do not know the technical details of bridging with vswitch, but from an > MPTCP point-of-view this would work. > > You just have to set the sysctl ndiffports to 2, so that MPTCP creates two > subflows and let the openflow-controller route the subflows accordingly.

Re: [ovs-dev] [mptcp-dev] MPTCP v0.87 - Release Candidate

2013-07-23 Thread Christoph Paasch
On 23/07/13 - 12:09:12, Vasiliy Tolstov wrote: > 2013/7/23 Christoph Paasch : > > yes this is possible. You just need to make MPTCP create two subflows, e.g., > > by using the sysctl mptcp_ndiffports [1] or by adding a second IP-address to > > the interface. > > > Thanks for response. If i don't

Re: [ovs-dev] [mptcp-dev] MPTCP v0.87 - Release Candidate

2013-07-23 Thread Vasiliy Tolstov
2013/7/23 Christoph Paasch : > yes this is possible. You just need to make MPTCP create two subflows, e.g., > by using the sysctl mptcp_ndiffports [1] or by adding a second IP-address to > the interface. Thanks for response. If i don't want to use 2 ip adress and use vSwitch bridge on top of two

Re: [ovs-dev] [mptcp-dev] MPTCP v0.87 - Release Candidate

2013-07-23 Thread Christoph Paasch
Hello, yes this is possible. You just need to make MPTCP create two subflows, e.g., by using the sysctl mptcp_ndiffports [1] or by adding a second IP-address to the interface. Cheers, Christoph [1]: http://multipath-tcp.org/pmwiki.php/Users/ConfigureMPTCP On 23/07/13 - 08:56:56, Vasiliy Tolsto