Re: [ovs-dev] [PATCH] fedora-build: Remove %{build_number} from the configure line

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 09:53:25PM -0500, Kyle Mestery wrote: > Fixes the OVS builds on Fedora, which are currently broken upstream. > > Signed-off-by: Kyle Mestery Guru, will you review this (and apply it if you're happy with it)? Thanks, Ben. ___ d

[ovs-dev] [PATCH] fedora-build: Remove %{build_number} from the configure line

2013-12-13 Thread Kyle Mestery
Fixes the OVS builds on Fedora, which are currently broken upstream. Signed-off-by: Kyle Mestery --- rhel/openvswitch-fedora.spec.in | 2 +- rhel/openvswitch-kmod-fedora.spec.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/ope

[ovs-dev] [PATCHv5] monitor: Replace monitor_seq with periodic wakeup

2013-12-13 Thread Joe Stringer
Currently, every time a monitoring port is added or reconfigured, the main thread notifies the monitoring thread to wake up immediately using monitor_seq. When adding a large number of ports at once, this causes contention as the threads fight over access to the monitor heap---one thread adding new

Re: [ovs-dev] [PATCHv4] monitor: Replace monitor_seq with periodic wakeup

2013-12-13 Thread Joe Stringer
I realised that this no longer applies on master. I'll send a rebased version. On 13 December 2013 15:00, Alex Wang wrote: > Hey Ben, > > Could you help review and push it? > > Thanks, > Alex Wang, > > > On Fri, Dec 13, 2013 at 11:29 AM, Alex Wang wrote: >> >> Looks good to me, ran the cfm flap_

Re: [ovs-dev] [PATCH] windows pseudorandom number generator

2013-12-13 Thread Alin Serdean
This patch is to add for secure pseudorandom number generator on windows. Signed-off-by: Alin Serdean --- lib/entropy.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) --- diff --git a/lib/entropy.c b/lib/entropy.c index 02f56e0..45e83ec 100644 --- a/lib/entropy.c +++ b/

Re: [ovs-dev] [PATCH] Release Open vSwitch 2.0.1.

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 04:20:42PM -0800, Justin Pettit wrote: > Signed-off-by: Justin Pettit Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] Release Open vSwitch 2.0.1.

2013-12-13 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 e0fafd0..35a9cd0 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +v2.0.1 - 13 Dec 2013 +--

Re: [ovs-dev] [PATCH 1/3] dpif: Allow execute to modify the packet.

2013-12-13 Thread Ben Pfaff
On Fri, Nov 15, 2013 at 03:12:18PM -0800, Jarno Rajahalme wrote: > Allowing the packet to be modified by execution allows less data > copying for userspace action execution. Some users of the > dpif_execute already expect that the packet may be modified. This > patch makes this behavior uniform a

Re: [ovs-dev] [PATCH] cfm: Add test for fault_override

2013-12-13 Thread Alex Wang
Looks good to me, tested on bare metal and vm, Could you add commit message to summarize the test? (especially that it checks the cfm_fault_status update in database) On Fri, Dec 13, 2013 at 2:46 PM, Joe Stringer wrote: > Signed-off-by: Joe Stringer > --- > tests/cfm.at | 38 ++

Re: [ovs-dev] [PATCH] ovs-thread: Fix crash by making count_cpu_count() return type a signed int.

2013-12-13 Thread Ben Pfaff
Thanks, I fixed the commit message and pushed. On Fri, Dec 13, 2013 at 02:48:48PM -0800, Alex Wang wrote: > In the commit message, 's/UINT_MAX_1/UINT_MAX-1', > > Looks good to me, > > > > On Fri, Dec 13, 2013 at 2:31 PM, Ben Pfaff wrote: > > > ofproto_set_threads() uses the calculation MAX(c

Re: [ovs-dev] [PATCH] vconn: Reply with OFPBRC_BAD_VERSION for bad version.

2013-12-13 Thread Ben Pfaff
On Fri, Dec 06, 2013 at 03:36:04PM -0800, Joe Stringer wrote: > Looks good to me. Thanks, I'll apply this soon. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCHv4] monitor: Replace monitor_seq with periodic wakeup

2013-12-13 Thread Alex Wang
Hey Ben, Could you help review and push it? Thanks, Alex Wang, On Fri, Dec 13, 2013 at 11:29 AM, Alex Wang wrote: > Looks good to me, ran the cfm flap_count test 300 (clang and sparse) times > on my vm > and didn't see the failure any more, > > > On Fri, Dec 13, 2013 at 10:52 AM, Joe Stringer

Re: [ovs-dev] [PATCH] ovs-ofctl: Allow for downgrade of usable protocols on flow-mod

2013-12-13 Thread Ben Pfaff
On Tue, Nov 05, 2013 at 05:35:03PM +0900, Simon Horman wrote: > ovs-ofctl needs to mask the allowed protocols with the usable protocols > after calling parse_ofp_str() so that only usable protocols will be > negotiated. > > This problem became apparent to me after 8621547cc94ad910 > ("lib/ofp-acti

Re: [ovs-dev] [fd leak v2 3/3] dpif-linux: Fix fd leak for vports that disappear from the datapath.

2013-12-13 Thread Alex Wang
Thanks for the update, On Fri, Dec 13, 2013 at 2:52 PM, Ben Pfaff wrote: > On Mon, Nov 25, 2013 at 12:49:45PM -0800, Alex Wang wrote: > > LGTM, only one thing, > > > > I did the following test: > > > > """ > > root@server329:~/ben-reviews# ovs-vsctl --version > > ovs-vsctl (Open vSwitch) 2.0.90

Re: [ovs-dev] [fd leak v2 3/3] dpif-linux: Fix fd leak for vports that disappear from the datapath.

2013-12-13 Thread Ben Pfaff
On Mon, Nov 25, 2013 at 12:49:45PM -0800, Alex Wang wrote: > LGTM, only one thing, > > I did the following test: > > """ > root@server329:~/ben-reviews# ovs-vsctl --version > ovs-vsctl (Open vSwitch) 2.0.90 > Compiled Nov 25 2013 11:44:29 > root@server329:~/ben-reviews# lsof -p `pidof ovs-vswitch

Re: [ovs-dev] [PATCH] ovs-thread: Fix crash by making count_cpu_count() return type a signed int.

2013-12-13 Thread Alex Wang
In the commit message, 's/UINT_MAX_1/UINT_MAX-1/', Looks good to me, On Fri, Dec 13, 2013 at 2:31 PM, Ben Pfaff wrote: > ofproto_set_threads() uses the calculation MAX(count_cpu_cores() - 2, 1) > to decide on the default thread count. However, count_cpu_cores() returns > 0 if it can't count

Re: [ovs-dev] [PATCH] ovs-thread: Fix crash by making count_cpu_count() return type a signed int.

2013-12-13 Thread Alex Wang
In the commit message, 's/UINT_MAX_1/UINT_MAX-1', Looks good to me, On Fri, Dec 13, 2013 at 2:31 PM, Ben Pfaff wrote: > ofproto_set_threads() uses the calculation MAX(count_cpu_cores() - 2, 1) > to decide on the default thread count. However, count_cpu_cores() returns > 0 if it can't count t

[ovs-dev] [PATCH] cfm: Add test for fault_override

2013-12-13 Thread Joe Stringer
Signed-off-by: Joe Stringer --- tests/cfm.at | 38 ++ 1 file changed, 38 insertions(+) diff --git a/tests/cfm.at b/tests/cfm.at index 9e351d0..8e5917d 100644 --- a/tests/cfm.at +++ b/tests/cfm.at @@ -96,4 +96,42 @@ CFM_VSCTL_LIST_IFACE([p0], [cfm_flap_count]

[ovs-dev] [PATCH] lib/flow: Skip minimask value checks.

2013-12-13 Thread Jarno Rajahalme
We allow zero 'values' in a miniflow for it to have the same map as the corresponding minimask. Minimasks themselves never have zero data values, though. Document this and optimize the code accordingly. Signed-off-by: Jarno Rajahalme --- lib/flow.c | 16 +++- lib/flow.h |9

[ovs-dev] [PATCH] ovs-thread: Fix crash by making count_cpu_count() return type a signed int.

2013-12-13 Thread Ben Pfaff
ofproto_set_threads() uses the calculation MAX(count_cpu_cores() - 2, 1) to decide on the default thread count. However, count_cpu_cores() returns 0 if it can't count the number of cores, or 1 if there's only one core, and that causes the calculation to come out as UINT_MAX-2 or UINT_MAX_1, respec

Re: [ovs-dev] [bug15637 v2 1/2] ovsdb-client: Make "monitor" command able to monitor all tables.

2013-12-13 Thread Alex Wang
Thanks for the explanation, I'm good with the patch, ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [bug15637 v2 2/2] jsonrpc-server: Add test for disconnecting connections with too long queues.

2013-12-13 Thread Ben Pfaff
Thanks, I applied these patches. On Mon, Dec 02, 2013 at 10:16:28AM -0800, Alex Wang wrote: > LGTM, thx > > > On Sat, Nov 2, 2013 at 10:02 PM, Ben Pfaff wrote: > > > Signed-off-by: Ben Pfaff > > --- > > tests/ovsdb-server.at | 85 > > + > > 1

Re: [ovs-dev] [bug15637 v2 1/2] ovsdb-client: Make "monitor" command able to monitor all tables.

2013-12-13 Thread Ben Pfaff
On Wed, Nov 27, 2013 at 02:58:13PM -0800, Alex Wang wrote: > +if (get_detach()) { > > +int error; > > + > > +error = unixctl_server_create(NULL, &unixctl); > > +if (error) { > > +ovs_fatal(error, "failed to create unixctl server"); > > +} > > + > > +

Re: [ovs-dev] [PATCH 2/3] bfd: Send FINAL immediately after receiving POLL.

2013-12-13 Thread Alex Wang
This patch depends on http://openvswitch.org/pipermail/dev/2013-December/035103.html I'll rebase and resend it later, other two patches are unaffected, ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] cfm: Refine the cfm_extended manual.

2013-12-13 Thread Ben Pfaff
On Fri, Oct 25, 2013 at 05:18:02PM -0700, Alex Wang wrote: > Commit 348f01e3e3 (cfm: Eight byte MPIDs in extended mode.) allows > eight byte MPIDs when running in extended mode. This commit explains > this change in the vswitch.conf.db. > > Signed-off-by: Alex Wang Applied, thanks.

Re: [ovs-dev] [PATCH net-next v2 2/2] net: ovs: use CRC32 accelerated flow hash if available

2013-12-13 Thread Jesse Gross
On Fri, Dec 13, 2013 at 1:55 AM, Francesco Fusco wrote: > On 12/12/2013 09:20 PM, Jesse Gross wrote: >> >> Out of curiosity, did you try using crc32q? OVS data structures are >> already aligned to 8 bytes. It would also be interesting to know if a >> parallelized implementation is worthwhile, alth

[ovs-dev] [PATCHv2 0/2] Fix some intermittent test failures

2013-12-13 Thread Ben Pfaff
I first sent these fixes on September 30. This version is rebased, with conflicts fixed. Ben Pfaff (2): bridge: Let ofprotos run once before reporting configuration complete. lacp: Give LACP a moment to initialize before testing its state, in tests. AUTHORS |1 + tests

[ovs-dev] [PATCHv2 1/2] bridge: Let ofprotos run once before reporting configuration complete.

2013-12-13 Thread Ben Pfaff
Occasionally in the unit tests the following race can happen: 1. ovs-vsctl updates database 2. ovs-vswitchd reconfigures, notifies ovs-vsctl that it is complete 3. ovs-appctl ofproto/trace fails to see newly added port 4. ovs-vswitchd main loop calls ofproto's ->type_run(), making the

[ovs-dev] [PATCHv2 2/2] lacp: Give LACP a moment to initialize before testing its state, in tests.

2013-12-13 Thread Ben Pfaff
These tests configured LACP and then immediately dumped out its state. Most of the time, this worked, but there was a brief race window in which the "negotiated" flag could be missing because this took one pass through the main loop. This fixes the problem. This race may be seen in the failures o

Re: [ovs-dev] [Windows thread 2]

2013-12-13 Thread Alin Serdean
Not at all. I want to do a quick review myself over them before I send it in though. Thanks for the explanation, I am quite new to this "world" :-). Kind Regards, Alin. From: Gurucharan Shetty [shet...@nicira.com] Sent: Friday, December 13, 2013 8:40 PM T

Re: [ovs-dev] [PATCHv4] monitor: Replace monitor_seq with periodic wakeup

2013-12-13 Thread Alex Wang
Looks good to me, ran the cfm flap_count test 300 (clang and sparse) times on my vm and didn't see the failure any more, On Fri, Dec 13, 2013 at 10:52 AM, Joe Stringer wrote: > Currently, every time a monitoring port is added or reconfigured, the > main thread notifies the monitoring thread to w

[ovs-dev] [PATCH 3/3] bfd: Make bfd decay test robust.

2013-12-13 Thread Alex Wang
With ovs multithreading implementation, the bfd decay test becomes fragile due to its high dependency on timing sequence. This commit removes these dependencies and makes the test robust. Signed-off-by: Alex Wang --- tests/bfd.at | 141 --

[ovs-dev] [PATCH 1/3] ofproto-dpif-monitor: Acquire write lock in monitor_run().

2013-12-13 Thread Alex Wang
Commit 307464a1 (ofproto-dpif-monitor: Use heap to order the mport wakeup time.) re-heapifies the heap in monitor_run(). So the monitor_run() should be protected by the write lock, rather than the read lock. This commit fixes the issue. Signed-off-by: Alex Wang --- ofproto/ofproto-dpif-monitor

[ovs-dev] [PATCH 2/3] bfd: Send FINAL immediately after receiving POLL.

2013-12-13 Thread Alex Wang
Commit 307464a11 (ofproto-dpif-monitor: Use heap to order the mport wakeup time.) makes bfd only send packet at specified periodic instant. This fails to meet the RFC5880 requirement, which requires bfd send FINAL immediately after receiving POLL. This commit fixes the above issue by scheduling bf

Re: [ovs-dev] [Windows thread 3]

2013-12-13 Thread Saurabh Shah
I don't have a strong preference about the structuring. Anything that is intuitive is fine with me. With regards to keeping all pragma comments separate, I actually like keeping them close to the files that use them. However, since these are DLLs, I don't see any major downside in declaring them

[ovs-dev] [PATCHv4] monitor: Replace monitor_seq with periodic wakeup

2013-12-13 Thread Joe Stringer
Currently, every time a monitoring port is added or reconfigured, the main thread notifies the monitoring thread to wake up immediately using monitor_seq. When adding a large number of ports at once, this causes contention as the threads fight over access to the monitor heap---one thread adding new

Re: [ovs-dev] [PATCHv3] monitor: Replace monitor_seq with periodic wakeup

2013-12-13 Thread Alex Wang
yeah, I can only reproduce it on my VM setup by running command like this: for i in `seq 1 1000`; do make check TESTSUITEFLAGS=12 1>/dev/null 2>file_make_check; if cat file_make_check | grep "ERROR: 1 test was run"; then echo FAIL; break; fi; done and wait a long time. But the issue is valid. L

Re: [ovs-dev] [Windows thread 2]

2013-12-13 Thread Gurucharan Shetty
Would you mind sending in a proper patch which includes your changes added to the mentioned patch for a review with a commit message and rationale. (The reviewers usually do a "git am 'patch.txt' and then review. And if there is a review comment, you re-spin the patch with the subject edited with a

Re: [ovs-dev] [PATCHv2] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Helmut Schaa
Ben Pfaff schrieb: >On Fri, Dec 13, 2013 at 10:30:56AM -0800, Ben Pfaff wrote: >> On Fri, Dec 13, 2013 at 06:54:27PM +0100, Helmut Schaa wrote: >> > Reduces binary size. Use a static inline function instead of >> > a macro to not get "unused variable" warnings everywhere. >> > >> > Making ovs

Re: [ovs-dev] [PATCHv2] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 10:30:56AM -0800, Ben Pfaff wrote: > On Fri, Dec 13, 2013 at 06:54:27PM +0100, Helmut Schaa wrote: > > Reduces binary size. Use a static inline function instead of > > a macro to not get "unused variable" warnings everywhere. > > > > Making ovs_assert an empty inline in the

Re: [ovs-dev] [PATCHv3] monitor: Replace monitor_seq with periodic wakeup

2013-12-13 Thread Joe Stringer
Curious. I can't seem to reproduce the occasional fault in my VM setup. I'm happy to fold in the change that you suggested though Alex. (Incremental below) diff --git a/tests/cfm.at b/tests/cfm.at index 620e3e0..fe6778a 100644 --- a/tests/cfm.at +++ b/tests/cfm.at @@ -90,12 +90,9 @@ CFM_VSCTL_LIST

Re: [ovs-dev] [PATCHv2] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 06:54:27PM +0100, Helmut Schaa wrote: > Reduces binary size. Use a static inline function instead of > a macro to not get "unused variable" warnings everywhere. > > Making ovs_assert an empty inline in the header file effectively > optimizes out all calls to ovs_assert. >

Re: [ovs-dev] [Windows thread 3]

2013-12-13 Thread Alin Serdean
I was thinking to include all pragmas and other needed defines in a common header used through all of the source files(http://openvswitch.org/pipermail/dev/2013-December/034983.html), but this is just my thought. The way you want to structure it is up too you :-). Alin. ___

Re: [ovs-dev] [PATCH] ovs-thread: Break recursion for coverage counters.

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 10:11:41AM -0800, Gurucharan Shetty wrote: > On Fri, Dec 13, 2013 at 9:43 AM, Ben Pfaff wrote: > > On Wed, Dec 11, 2013 at 04:11:24PM -0800, Gurucharan Shetty wrote: > >> For systems that do not use linker sections and also do not > >> have either HAVE_THREAD_LOCAL or HAVE_

[ovs-dev] [PATCH] datapath: Add packet metadata support.

2013-12-13 Thread Pravin B Shelar
In case of flow-miss kernel sends skb to userspace and then userspace sends execute netlink msg to switch the packet. But in this process skb rxhash is not restored. skb rxhash is used for calculating tunnel source port for vxlan. If rxhash is not restored packet which is sent to miss call handler

Re: [ovs-dev] [PATCH 4/5] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 06:45:14PM +0100, Helmut Schaa wrote: > On Fri, Dec 13, 2013 at 6:08 PM, Ben Pfaff wrote: > > On Fri, Dec 13, 2013 at 02:17:16PM +0100, Helmut Schaa wrote: > >> Reduces binary size. Use a static inline function instead of > >> a macro to not get "unused variable" warning ev

[ovs-dev] [PATCH] cfm: Notify connectivity_seq on cfm_set_fault

2013-12-13 Thread Joe Stringer
Commit f23d157c ("ofproto-dpif: Don't poll ports when nothing changes" changed how cfm information is propagated to ovsdb, but did not ensure that this happened when users made "appctl cfm/set_fault" calls. This patch fixes this case. Signed-off-by: Joe Stringer --- lib/cfm.c |1 + 1 file ch

Re: [ovs-dev] [PATCH] ovs-thread: Break recursion for coverage counters.

2013-12-13 Thread Gurucharan Shetty
On Fri, Dec 13, 2013 at 9:43 AM, Ben Pfaff wrote: > On Wed, Dec 11, 2013 at 04:11:24PM -0800, Gurucharan Shetty wrote: >> For systems that do not use linker sections and also do not >> have either HAVE_THREAD_LOCAL or HAVE___THREAD (ex: windows >> using MSVC), a COVERAGE_INC() calls xmalloc which

Re: [ovs-dev] [PATCH] coverage: Use size_t for coverage counter array lengths.

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 09:59:36AM -0800, Ethan Jackson wrote: > Fixes the following warning on my system. > > ../lib/coverage.c:54:40: error: incompatible pointer types passing > 'unsigned int *' to parameter of type 'size_t *' (aka 'unsigned long > *') > > Signed-off-by: Ethan Jackson Acked-b

[ovs-dev] [PATCH] coverage: Use size_t for coverage counter array lengths.

2013-12-13 Thread Ethan Jackson
Fixes the following warning on my system. ../lib/coverage.c:54:40: error: incompatible pointer types passing 'unsigned int *' to parameter of type 'size_t *' (aka 'unsigned long *') Signed-off-by: Ethan Jackson --- lib/coverage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -

Re: [ovs-dev] [PATCH 2/2] string: Use workaround for #include_next when it is not available.

2013-12-13 Thread Ben Pfaff
Thanks Guru and Alin, I applied these. On Thu, Dec 12, 2013 at 08:38:48PM +, Alin Serdean wrote: > I applied the patches and everything seems in order. > > The same remark about adding string.h to lib/.gitignore > > Thanks, > Alin. > > From: dev-boun.

[ovs-dev] [PATCHv4] openvswitch: Use libtool and allow building shared libs

2013-12-13 Thread Helmut Schaa
Currently openvswitch builds all libraries static only. However, libopenvswitch is linked into nearly all openvswitch executables making it hardly possible to run openvswitch on embedded devices (for example running OpenWrt). Convert openvswitch to use libtool for building its internal libs. This

[ovs-dev] [PATCHv2] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Helmut Schaa
Reduces binary size. Use a static inline function instead of a macro to not get "unused variable" warnings everywhere. Making ovs_assert an empty inline in the header file effectively optimizes out all calls to ovs_assert. Signed-off-by: Helmut Schaa --- lib/util.h | 7 ++- 1 file changed,

Re: [ovs-dev] [PATCH 1/2] configure: Add macros to check for #include_next and add a workaround.

2013-12-13 Thread Ben Pfaff
On Thu, Dec 12, 2013 at 11:30:49AM -0800, Gurucharan Shetty wrote: > Between, what is the difference between NOTICE and COPYING? COPYING is the original file we had when we started the project. NOTICE is required by the Apache 2.0 license. I'm not sure we need both, and the distinction isn't cle

[ovs-dev] Bug#732070: marked as done (openvswitch-switch: installation fails)

2013-12-13 Thread Debian Bug Tracking System
Your message dated Fri, 13 Dec 2013 17:48:48 + with message-id and subject line Bug#732070: fixed in openvswitch 1.9.3+git20131029-1.1 has caused the Debian Bug report #732070, regarding openvswitch-switch: installation fails to be marked as done. This means that you claim that the problem ha

Re: [ovs-dev] [PATCH 1/2] configure: Add macros to check for #include_next and add a workaround.

2013-12-13 Thread Ben Pfaff
On Thu, Dec 12, 2013 at 11:27:03AM -0800, Gurucharan Shetty wrote: > On Wed, Dec 11, 2013 at 3:04 PM, Ben Pfaff wrote: > > This will be used for the #include_next in string.h in the following > > commit. > > > > Signed-off-by: Ben Pfaff > > --- > > NOTICE|5 +- > > build-aux/

[ovs-dev] openvswitch_1.9.3+git20131029-1.1_amd64.changes ACCEPTED into unstable

2013-12-13 Thread Debian FTP Masters
Accepted: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Format: 1.8 Date: Fri, 13 Dec 2013 16:53:41 + Source: openvswitch Binary: openvswitch-datapath-source openvswitch-datapath-dkms openvswitch-common openvswitch-switch openvswitch-ipsec openvswitch-pki openvswitch-controller openvswi

[ovs-dev] Processing of openvswitch_1.9.3+git20131029-1.1_amd64.changes

2013-12-13 Thread Debian FTP Masters
openvswitch_1.9.3+git20131029-1.1_amd64.changes uploaded successfully to localhost along with the files: openvswitch_1.9.3+git20131029-1.1.dsc openvswitch_1.9.3+git20131029-1.1.debian.tar.gz openvswitch-common_1.9.3+git20131029-1.1_amd64.deb openvswitch-switch_1.9.3+git20131029-1.1_amd64.d

Re: [ovs-dev] [PATCH 4/5] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Helmut Schaa
On Fri, Dec 13, 2013 at 6:08 PM, Ben Pfaff wrote: > On Fri, Dec 13, 2013 at 02:17:16PM +0100, Helmut Schaa wrote: >> Reduces binary size. Use a static inline function instead of >> a macro to not get "unused variable" warning everywhere. >> >> Signed-off-by: Helmut Schaa >> --- >> >> Not sure if

Re: [ovs-dev] [PATCH] ovs-thread: Break recursion for coverage counters.

2013-12-13 Thread Ben Pfaff
On Wed, Dec 11, 2013 at 04:11:24PM -0800, Gurucharan Shetty wrote: > For systems that do not use linker sections and also do not > have either HAVE_THREAD_LOCAL or HAVE___THREAD (ex: windows > using MSVC), a COVERAGE_INC() calls xmalloc which inturn calls > COVERAGE_INC() creating a recursion that

Re: [ovs-dev] [PATCH 1/5] lib/ofp: Consolidate some struct field orders

2013-12-13 Thread Helmut Schaa
On Fri, Dec 13, 2013 at 5:35 PM, Ben Pfaff wrote: > On Fri, Dec 13, 2013 at 02:17:13PM +0100, Helmut Schaa wrote: >> Avoid "holes" in structs by moving "small" members together. >> >> Signed-off-by: Helmut Schaa > > I don't think any of these is particularly useful. Most notably, the > two "ofpu

Re: [ovs-dev] [PATCH 5/6] openvswitch: Use libtool and allow building shared libs

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 06:35:27PM +0100, Helmut Schaa wrote: > On Fri, Dec 13, 2013 at 6:27 PM, Ben Pfaff wrote: > > On Fri, Dec 13, 2013 at 02:05:04PM +0100, Helmut Schaa wrote: > >> Currently openvswitch builds all libraries static only. However, > >> libopenvswitch is linked into nearly all op

Re: [ovs-dev] [PATCH 5/6] openvswitch: Use libtool and allow building shared libs

2013-12-13 Thread Helmut Schaa
On Fri, Dec 13, 2013 at 6:27 PM, Ben Pfaff wrote: > On Fri, Dec 13, 2013 at 02:05:04PM +0100, Helmut Schaa wrote: >> Currently openvswitch builds all libraries static only. However, >> libopenvswitch is linked into nearly all openvswitch executables >> making it hardly possible to run openvswitch

Re: [ovs-dev] [threaded-put v2 3/3] ofproto: Simplify thread creation API.

2013-12-13 Thread Ethan Jackson
Yep, you didn't give me an acked on the last round so I resent it. Thanks for the reviews. Ethan On Thu, Dec 12, 2013 at 11:07 PM, Ben Pfaff wrote: > On Thu, Dec 12, 2013 at 08:24:56PM -0800, Ethan Jackson wrote: >> There's no particular reason for the function controlling the number >> of thre

Re: [ovs-dev] [PATCH 4/6] Remove unused USE_LINKER_SECTIONS and OVS_LINK2_IFELSE

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 02:05:03PM +0100, Helmut Schaa wrote: > They are unused and can be removed. > > Signed-off-by: Helmut Schaa Thanks. I applied patches 1 through 4. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo

Re: [ovs-dev] [PATCH 6/6] rhel, fedora: Remove *.a and *.la from rpms

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 02:05:05PM +0100, Helmut Schaa wrote: > Signed-off-by: Helmut Schaa I'd fold this into patch 5. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 5/6] openvswitch: Use libtool and allow building shared libs

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 02:05:04PM +0100, Helmut Schaa wrote: > Currently openvswitch builds all libraries static only. However, > libopenvswitch is linked into nearly all openvswitch executables > making it hardly possible to run openvswitch on embedded devices > (for example running OpenWrt). >

Re: [ovs-dev] [PATCH 5/5] lib/util: Make some functions in util.c inline

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 02:17:17PM +0100, Helmut Schaa wrote: > str_to_uint, str_to_ulong and str_to_ullong are just wrappers > around the corresponding signed functions. Move these to util.h > and make them inline saving some library exports and letting > the compiler do some more magic. > > Sign

Re: [ovs-dev] [PATCH 4/5] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 02:17:16PM +0100, Helmut Schaa wrote: > Reduces binary size. Use a static inline function instead of > a macro to not get "unused variable" warning everywhere. > > Signed-off-by: Helmut Schaa > --- > > Not sure if this is the best idea but in my builds it reduces libopenv

Re: [ovs-dev] [PATCH 3/5] lib/mac-learning: Add missing semicolon

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 02:17:15PM +0100, Helmut Schaa wrote: > Does not matter as long as ovs_assert is a simple macro but if ovs_assert > is converted to a function this will fail. > > Signed-off-by: Helmut Schaa Good catch. ___ dev mailing list dev@

Re: [ovs-dev] [PATCHv3] monitor: Replace monitor_seq with periodic wakeup

2013-12-13 Thread Joe Stringer
Thanks for the detail, I'll look into it. On 12 December 2013 21:50, Alex Wang wrote: > Yes, I could reproduce it on my VM setup, > > It is the timing issue again, if the p1 starts sending ccm first, it will > have flap count = 0. > > If p1 receives ccm from p0 first, it will go to [rdi] and then

Re: [ovs-dev] [PATCH 4/5] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Jarno Rajahalme
On Dec 13, 2013, at 5:17 AM, Helmut Schaa wrote: > Reduces binary size. Use a static inline function instead of > a macro to not get "unused variable" warning everywhere. > > Signed-off-by: Helmut Schaa > --- > > Not sure if this is the best idea but in my builds it reduces libopenvswitch > b

[ovs-dev] Bug#732070: Will NMU soon

2013-12-13 Thread Thomas Goirand
Hi Ben, it's always a pleasure to see that you are ok with help. I will NMU shortly. Thomas ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/5] lib/ofp: Consolidate some struct field orders

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 02:17:13PM +0100, Helmut Schaa wrote: > Avoid "holes" in structs by moving "small" members together. > > Signed-off-by: Helmut Schaa I don't think any of these is particularly useful. Most notably, the two "ofputil_*" structures are only ever allocated one at a time, on

[ovs-dev] Bug#732070: Switched severity to grave

2013-12-13 Thread Ben Pfaff
On Sat, Dec 14, 2013 at 12:22:46AM +0800, Thomas Goirand wrote: > Since this completely blocks the apt-get install process, and makes it > impossible to install openvswitch-switch without manual intervention, I > have set this bug severity to "grave", because it fits this definition: > > "makes th

[ovs-dev] Bug#732070: Switched severity to grave

2013-12-13 Thread Thomas Goirand
Hi, Since this completely blocks the apt-get install process, and makes it impossible to install openvswitch-switch without manual intervention, I have set this bug severity to "grave", because it fits this definition: "makes the package in question unusable by most or all users." By the way, it

[ovs-dev] Processed: Switch to RC bug

2013-12-13 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org: > severity 732070 grave Bug #732070 [openvswitch-switch] openvswitch-switch: installation fails Severity set to 'grave' from 'important' > End of message, stopping processing here. Please contact me if you need assistance. -- 732070: http://bugs.d

[ovs-dev] Bug#732070: openvswitch-switch: installation fails

2013-12-13 Thread Gonéri Le Bouder
Package: openvswitch-switch Version: 1.9.3+git20131029-1 Severity: important Dear Maintainer, root@t430gone:/home/goneri# apt-get install openvswitch-switch Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically in

Re: [ovs-dev] [PATCH net-next v2 2/2] net: ovs: use CRC32 accelerated flow hash if available

2013-12-13 Thread Francesco Fusco
On 12/13/2013 11:01 AM, David Laight wrote: My thoughts exactly. Given this is a hash it could crc alternate words into separate accumulators and the combine the values at the end. That way you are still doing sequential accesses to the data. (The crc instruction might be better than an xor for t

[ovs-dev] [PATCH net-next 1/6] net: Export skb_zerocopy() to zerocopy from one skb to another

2013-12-13 Thread Thomas Graf
Make the skb zerocopy logic written for nfnetlink queue available for use by other modules. Signed-off-by: Thomas Graf Reviewed-by: Daniel Borkmann --- include/linux/skbuff.h | 3 ++ net/core/skbuff.c| 85 net/netfilter/nfn

[ovs-dev] [PATCH net-next 4/6] openvswitch: Pass datapath into userspace queue functions

2013-12-13 Thread Thomas Graf
Allows removing the net and dp_ifindex argument and simplify the code. Signed-off-by: Thomas Graf --- net/openvswitch/datapath.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index

[ovs-dev] [PATCH net-next 5/6] openvswitch: Use skb_zerocopy() for upcall

2013-12-13 Thread Thomas Graf
Use of skb_zerocopy() can avoid the expensive call to memcpy() when copying the packet data into the Netlink skb. Completes checksum through skb_checksum_help() if not already done in GSO segmentation. Zerocopy is only performed if user space supported unaligned Netlink messages. memory mapped net

[ovs-dev] [PATCH net-next 2/6] openvswitch: Allow user space to announce ability to accept unaligned Netlink messages

2013-12-13 Thread Thomas Graf
Signed-off-by: Thomas Graf Reviewed-by: Daniel Borkmann --- include/uapi/linux/openvswitch.h | 4 net/openvswitch/datapath.c | 14 ++ net/openvswitch/datapath.h | 2 ++ 3 files changed, 20 insertions(+) diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/

[ovs-dev] [PATCH net-next 6/6] openvswitch: Compute checksum in skb_gso_segment() if needed

2013-12-13 Thread Thomas Graf
The copy & csum optimization is no longer present with zerocopy enabled. Compute the checksum in skb_gso_segment() directly by dropping the HW CSUM capability from the features passed in. Signed-off-by: Thomas Graf --- net/openvswitch/datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[ovs-dev] [PATCH net-next 3/6] openvswitch: Drop user features if old user space attempted to create datapath

2013-12-13 Thread Thomas Graf
Drop user features if an outdated user space instance that does not understand the concept of user_features attempted to create a new datapath. Signed-off-by: Thomas Graf --- include/uapi/linux/openvswitch.h | 10 +- net/openvswitch/datapath.c | 21 + 2 files ch

[ovs-dev] [PATCH net-next 0/6 v9] Open vSwitch zercopy upcall optimiziation

2013-12-13 Thread Thomas Graf
Series implementing a zerocopy method for OVS upcall messages. Based on top of commit: (''openvswitch: Enable memory mapped Netlink i/o'') Thomas Graf (6): net: Export skb_zerocopy() to zerocopy from one skb to another openvswitch: Allow user space to announce ability to accept unaligned N

[ovs-dev] [PATCH 0/5] Minor size reduction patch set

2013-12-13 Thread Helmut Schaa
Helmut Schaa (5): lib/ofp: Consolidate some struct field orders lib/random: Make some functions in random.c inline lib/mac-learning: Add missing semicolon lib/util.h: Disable ovs_assert when build with NDEBUG lib/util: Make some functions in util.c inline lib/mac-learning.c | 2 +- lib

[ovs-dev] [PATCH 3/5] lib/mac-learning: Add missing semicolon

2013-12-13 Thread Helmut Schaa
Does not matter as long as ovs_assert is a simple macro but if ovs_assert is converted to a function this will fail. Signed-off-by: Helmut Schaa --- lib/mac-learning.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mac-learning.c b/lib/mac-learning.c index fe06744..c9c1a

[ovs-dev] [PATCH 1/5] lib/ofp: Consolidate some struct field orders

2013-12-13 Thread Helmut Schaa
Avoid "holes" in structs by moving "small" members together. Signed-off-by: Helmut Schaa --- lib/ofp-actions.h | 2 +- lib/ofp-util.h| 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ofp-actions.h b/lib/ofp-actions.h index 470a371..00cba6a 100644 --- a/lib/ofp-

[ovs-dev] [PATCH 2/5] lib/random: Make some functions in random.c inline

2013-12-13 Thread Helmut Schaa
random_range, random_uint8 and random_uint16 are basically just wrappers around random_uint32. Hence, don't export these functions so the compiler can be smarter when it comes to optimizations. Signed-off-by: Helmut Schaa --- lib/random.c | 17 - lib/random.h | 21 +++

[ovs-dev] [PATCH 5/5] lib/util: Make some functions in util.c inline

2013-12-13 Thread Helmut Schaa
str_to_uint, str_to_ulong and str_to_ullong are just wrappers around the corresponding signed functions. Move these to util.h and make them inline saving some library exports and letting the compiler do some more magic. Signed-off-by: Helmut Schaa --- lib/util.c | 18 -- lib/util

[ovs-dev] [PATCH 4/5] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Helmut Schaa
Reduces binary size. Use a static inline function instead of a macro to not get "unused variable" warning everywhere. Signed-off-by: Helmut Schaa --- Not sure if this is the best idea but in my builds it reduces libopenvswitch by around 10%. Thoughts? Thanks, Helmut lib/util.h | 5 + 1 f

[ovs-dev] [PATCH 3/6] coverage: Use OVS_CONSTRUCTOR to initialize the coverage counter array

2013-12-13 Thread Helmut Schaa
Use a static array in coverage.c that gets initialized by constructor functions per coverage definition. Signed-off-by: Helmut Schaa --- lib/coverage.c | 46 +++--- lib/coverage.h | 20 ++-- 2 files changed, 21 insertions(+), 45 deletions(-

[ovs-dev] [PATCH 4/6] Remove unused USE_LINKER_SECTIONS and OVS_LINK2_IFELSE

2013-12-13 Thread Helmut Schaa
They are unused and can be removed. Signed-off-by: Helmut Schaa --- configure.ac | 1 - lib/automake.mk | 22 m4/openvswitch.m4 | 77 --- 3 files changed, 100 deletions(-) diff --git a/configure.ac b/configure.ac index

[ovs-dev] [PATCH 6/6] rhel, fedora: Remove *.a and *.la from rpms

2013-12-13 Thread Helmut Schaa
Signed-off-by: Helmut Schaa --- This is untested since I don't use/have RHEL or Fedora. I'd be glad if anyone could give that change a try. Thanks, Helmut rhel/openvswitch-fedora.spec.in | 3 +++ rhel/openvswitch.spec.in| 1 + 2 files changed, 4 insertions(+) diff --git a/rhel/openvsw

[ovs-dev] [PATCH 2/6] vlog: Use OVS_CONSTRUCTOR for vlog initialization

2013-12-13 Thread Helmut Schaa
This allows to get rid of some special segment handling to allow distributed registering of vlog modules. Instead use a global list and vlog module constructor functions to build up the list. That means vlog modules reside within the compilation unit they are defined in and can be iterated upon by

[ovs-dev] [PATCH 5/6] openvswitch: Use libtool and allow building shared libs

2013-12-13 Thread Helmut Schaa
Currently openvswitch builds all libraries static only. However, libopenvswitch is linked into nearly all openvswitch executables making it hardly possible to run openvswitch on embedded devices (for example running OpenWrt). Convert openvswitch to use libtool for building its internal libs. This

[ovs-dev] [PATCH 0/6] Reduce binary size of OVS by using shared libs

2013-12-13 Thread Helmut Schaa
This series converts OVS to use shared libs for its internal stuff instead of linking everything static. Helmut Schaa (6): compiler: Add OVS_CONSTRUCTOR to mark functions as init functions vlog: Use OVS_CONSTRUCTOR for vlog initialization coverage: Use OVS_CONSTRUCTOR to initialize the cover

[ovs-dev] [PATCH 1/6] compiler: Add OVS_CONSTRUCTOR to mark functions as init functions

2013-12-13 Thread Helmut Schaa
Functions marked with OVS_CONSTRUCTOR are called unconditionally before main. Tested with GCC. Untested with MSVC. Signed-off-by: Helmut Schaa --- lib/compiler.h | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/compiler.h b/lib/compiler.h index 0dbacbf..daca32d 100644 ---

Re: [ovs-dev] [PATCH net-next v2 2/2] net: ovs: use CRC32 accelerated flow hash if available

2013-12-13 Thread David Laight
> From: Jesse Gross ... > Out of curiosity, did you try using crc32q? OVS data structures are > already aligned to 8 bytes. It would also be interesting to know if a > parallelized implementation is worthwhile, although my guess is that > the OVS flow key is not quite long enough. My thoughts exac

  1   2   >