[ovs-dev] [PATCH 1/2] dpif-linux: Fix a bug in creating port.

2014-04-28 Thread Alex Wang
Based on the policy of 'OVS_VPORT_ATTR_UPCALL_PID', if upcall should not be sent to userspace (i.e. the number of handler threads is zero), the netlink message for creating vport should be an one-element array of value 0. However, dpif_linux_port_add__() fails to obey it and generates zero-payload

[ovs-dev] [PATCH 2/2] netdev: Fix an use of uninitialized mutex.

2014-04-28 Thread Alex Wang
Commit 05bf6d3c62e1d (ovs-thread: Add checking for mutex and rwlock initialization.) helps find an use of uninitialized mutex (netdev_class_mutex) during upgrade. The assertion check aborts the ovs. This commit fixes the issue by adding the proper initialization. Bug #1239914. Bug #1240598. Bug

[ovs-dev] [PATCH] Revert "Prepare for 2.1.2."

2014-04-28 Thread Justin Pettit
This reverts commit 82e413df because bug fix bf52ed4 (datapath: Check for backported skb_orphan_frags().) was required. Signed-off-by: Justin Pettit --- NEWS |4 configure.ac |2 +- debian/changelog |6 -- 3 files changed, 1 insertions(+), 11 deletions(-) di

Re: [ovs-dev] [PATCH 1/2] Prepare 2.1.1 release.

2014-04-28 Thread Ben Pfaff
I normally wait for the announcement and the tarball, just in case some last minute bug fix gets slipped in. On Tue, Apr 29, 2014 at 01:40:46PM +1200, Joe Stringer wrote: > Will you push a tag for this too? > > > On 29 April 2014 10:31, Ben Pfaff wrote: > > > On Mon, Apr 28, 2014 at 02:57:17PM

Re: [ovs-dev] [PATCH] datapath: Check for backported skb_orphan_frags().

2014-04-28 Thread Joe Stringer
Applied to branch-2.1 as well. On 29 April 2014 10:21, Joe Stringer wrote: > Thanks, applied. > > > On 29 April 2014 09:27, Jesse Gross wrote: > >> On Sun, Apr 27, 2014 at 7:07 PM, Joe Stringer >> wrote: >> > This was causing build failures on debian wheezy. Check for the feature >> > rather

Re: [ovs-dev] [PATCH 09/10] lib/flow: Maintain miniflow offline values explicitly.

2014-04-28 Thread Kmindg G
On Tue, Apr 29, 2014 at 9:43 AM, Ethan Jackson wrote: > Acked-by: Ethan Jackson > > I'm not sure I totally follow Kmindg's comment, perhaps he could > explain further? At any rate, once addressed I"m happy with this. > After a second look into this, I found that I misunderstood these code befor

Re: [ovs-dev] [PATCH 10/10] lib/classifier: Support variable sized miniflows.

2014-04-28 Thread Ethan Jackson
The comment of miniflow_and_mask_matches_flow() need to be reworded. Do we really need that function? Is it really that much faster? Having two functions which do the exact same thing is a bit confusing. So I suppose the only reason for a non zero inline_values array is for those callers who can

Re: [ovs-dev] [PATCH 09/10] lib/flow: Maintain miniflow offline values explicitly.

2014-04-28 Thread Ethan Jackson
Acked-by: Ethan Jackson I'm not sure I totally follow Kmindg's comment, perhaps he could explain further? At any rate, once addressed I"m happy with this. Ethan On Sat, Apr 19, 2014 at 10:09 PM, Kmindg G wrote: > On Sat, Apr 19, 2014 at 3:42 AM, Jarno Rajahalme > wrote: >> This allows use o

Re: [ovs-dev] [PATCH 1/2] Prepare 2.1.1 release.

2014-04-28 Thread Joe Stringer
Will you push a tag for this too? On 29 April 2014 10:31, Ben Pfaff wrote: > On Mon, Apr 28, 2014 at 02:57:17PM -0700, Justin Pettit wrote: > > Signed-off-by: Justin Pettit > > For both: > Acked-by: Ben Pfaff > ___ > dev mailing list > dev@openvswit

Re: [ovs-dev] [PATCH v2 7/8] openvswitch.h: Clarify use of key attributes.

2014-04-28 Thread Jarno Rajahalme
Thanks for the review, pushed to master, Jarno On Apr 25, 2014, at 1:48 PM, Jesse Gross wrote: > On Fri, Apr 11, 2014 at 4:29 PM, Jarno Rajahalme > wrote: >> Key attributes relating to actual packet headers are ignored for >> OVS_PACKET_CMD_EXECUTE as the header key attributes are retrieved

Re: [ovs-dev] [PATCH v2 2/8] lib/odp-util: Remove extra parenthesis from sctp key output.

2014-04-28 Thread Jarno Rajahalme
Thanks for the review, pushed to master, Jarno On Apr 14, 2014, at 7:25 PM, YAMAMOTO Takashi wrote: >> Signed-off-by: Jarno Rajahalme > > Reviewed-by: YAMAMOTO Takashi > >> --- >> lib/odp-util.c |2 +- >> tests/odp.at |1 + >> 2 files changed, 2 insertions(+), 1 deletion(-) >> >>

Re: [ovs-dev] [PATCH v2 1/8] openvswitch.h: Note that 64 bit ints are 4-aligned.

2014-04-28 Thread Jarno Rajahalme
Pushed to master, Jarno On Apr 25, 2014, at 1:47 PM, Jesse Gross wrote: > On Fri, Apr 11, 2014 at 4:29 PM, Jarno Rajahalme > wrote: >> In general, all Netlink 64-bit data may be 4-byte aligned, due to >> netlink header and attributes being 4-aligned. >> >> To avoid unaligned access the dat

Re: [ovs-dev] [PATCH] lib/ofp-actions: Update comment.

2014-04-28 Thread Jarno Rajahalme
Pushed to master, Jarno On Apr 14, 2014, at 1:23 PM, Jarno Rajahalme wrote: > >> On Apr 14, 2014, at 1:00 PM, Justin Pettit wrote: >> >> It looks like there are a few other places that need to get updated, too. >> Did you want me to take a pass at them? >> > > Why not, seems you found

Re: [ovs-dev] [PATCH v2.56] datapath: Add basic MPLS support to kernel

2014-04-28 Thread Simon Horman
On Mon, Apr 28, 2014 at 02:37:47PM -0700, Jesse Gross wrote: > On Mon, Apr 28, 2014 at 12:00 AM, Simon Horman wrote: > > On Fri, Apr 25, 2014 at 12:57:20PM -0700, Jesse Gross wrote: > >> On Fri, Apr 25, 2014 at 1:06 AM, YAMAMOTO Takashi > >> wrote: > >> >> On Thu, Apr 24, 2014 at 05:57:29PM +0900

Re: [ovs-dev] [PATCH] tests: Fix up "ofproto-dpif - ofproto-dpif-monitor 1".

2014-04-28 Thread Ben Pfaff
Thanks, applied. On Mon, Apr 28, 2014 at 03:57:24PM -0700, Justin Pettit wrote: > Acked-by: Justin Pettit > > > > On April 28, 2014 at 3:45:26 PM, Ben Pfaff (b...@nicira.com) wrote: > > Commit 1335a8d578b03e (tests: Fix race condition waiting for monitor > > thread.) fixed a race condition in

[ovs-dev] [PATCH] netdev-linux: favor netlink stats for physical ports

2014-04-28 Thread Andy Zhou
Currently physical ports stats are collected from kernel datapath. However, those counter do not reflect actual wire packet counters when LSO or TSO are enabled by the NIC. In the meantime, the stats collected form routing stack does. While both stats are valid, Reporting netlink stats for packet c

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif: restore bond rebalance for non-recirc bond

2014-04-28 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 10:34:15PM -0700, Andy Zhou wrote: > Bond rebalancing was disabled for bonds not using recirculation. The > patch fixes this bug. > > While fixing the bug, the bond_rebalance() was also restructured > slightly to move bond related logic back into ofproto/bond.c > > Signed-

Re: [ovs-dev] [PATCH] tests: Fix up "ofproto-dpif - ofproto-dpif-monitor 1".

2014-04-28 Thread Justin Pettit
Acked-by: Justin Pettit On April 28, 2014 at 3:45:26 PM, Ben Pfaff (b...@nicira.com) wrote: > Commit 1335a8d578b03e (tests: Fix race condition waiting for monitor > thread.) fixed a race condition in a test. Commit 8ba0a5227f6 (ovs-thread: > Make caller provide thread name when creating a threa

Re: [ovs-dev] [PATCH 1/2] ofproto-bond: do not allow recirculation when we failed to allocate recirc_id

2014-04-28 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 10:34:14PM -0700, Andy Zhou wrote: > When recirc pool is exhausted, a new bond won't be allocate a new > recirc_id. The bond->recirc_id will remain zero. This condition > should prevent the bond from use recirculation. This check was missing > before this patch. > > Signed-

Re: [ovs-dev] [PATCH] [RFC] flow: Do not clear L3+ fields of flow in flow_push_mpls()

2014-04-28 Thread Jarno Rajahalme
On Mar 20, 2014, at 10:05 AM, Ben Pfaff wrote: > On Fri, Mar 14, 2014 at 04:19:52PM +0900, Simon Horman wrote: >> When creating a flow in the datapath as the result of an upcall >> the match itself is the match supplied in the upcall while >> the mask of the match, if supplied, is generated base

Re: [ovs-dev] [PATCH 08/10] lib/classifier: Separate cls_rule internals from the API.

2014-04-28 Thread Ethan Jackson
Acked-by: Ethan Jackson I don't really like the API we've ended up with here. But I think it's fine for now. As discussed offline, I intend to change it later. Ethan On Thu, Apr 24, 2014 at 6:25 PM, Ethan Jackson wrote: > I haven't read this patch yet, but a high level question. Why not > j

Re: [ovs-dev] [PATCH 1/2] lacp: Ensure that mutex is initialized when used in lacp_status().

2014-04-28 Thread Ben Pfaff
Thanks, I applied these. On Fri, Apr 25, 2014 at 11:50:43AM -0700, Andy Zhou wrote: > Looks great. Thanks! > > On Fri, Apr 25, 2014 at 9:56 AM, Ben Pfaff wrote: > > If 'lacp' is NULL, then lacp_create() might not have been called to > > indirectly initialize the mutex via lacp_init(), so call la

[ovs-dev] [PATCH] tests: Fix up "ofproto-dpif - ofproto-dpif-monitor 1".

2014-04-28 Thread Ben Pfaff
Commit 1335a8d578b03e (tests: Fix race condition waiting for monitor thread.) fixed a race condition in a test. Commit 8ba0a5227f6 (ovs-thread: Make caller provide thread name when creating a thread.) slightly changed the output that the test checked, breaking the test. However, I was used to the

Re: [ovs-dev] [PATCH 1/2] Prepare for 2.2.0.

2014-04-28 Thread Ben Pfaff
On Mon, Apr 28, 2014 at 02:48:56PM -0700, Justin Pettit wrote: > Signed-off-by: Justin Pettit For both patches: Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] Prepare 2.1.1 release.

2014-04-28 Thread Ben Pfaff
On Mon, Apr 28, 2014 at 02:57:17PM -0700, Justin Pettit wrote: > Signed-off-by: Justin Pettit For both: Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [urcu-fixes 4/4] ovs-rcu: Log a helpful warning when ovsrcu_synchronize() stalls.

2014-04-28 Thread Ben Pfaff
Thank you for the reviews. I'll push these patches in a minute. On Mon, Apr 28, 2014 at 02:10:27PM -0700, Alex Wang wrote: > Acked-by: Alex Wang > > > On Mon, Apr 28, 2014 at 9:06 AM, Ben Pfaff wrote: > > > This made it easier for me to find a thread that was causing stalls. > > > > Signed-o

Re: [ovs-dev] [urcu-fixes 3/4] ovs-thread: Make caller provide thread name when creating a thread.

2014-04-28 Thread Ben Pfaff
On Mon, Apr 28, 2014 at 11:48:34AM -0700, Alex Wang wrote: > This is helpful,??? just two comments, > > On Mon, Apr 28, 2014 at 9:06 AM, Ben Pfaff wrote: > > > This patch is a prerequisite for making RCU report the name of a thread > > that is blocking RCU synchronization, > > *because the easie

Re: [ovs-dev] [PATCH] datapath: Check for backported skb_orphan_frags().

2014-04-28 Thread Joe Stringer
Thanks, applied. On 29 April 2014 09:27, Jesse Gross wrote: > On Sun, Apr 27, 2014 at 7:07 PM, Joe Stringer > wrote: > > This was causing build failures on debian wheezy. Check for the feature > > rather than the version. > > > > Signed-off-by: Joe Stringer > > Acked-by: Jesse Gross > __

[ovs-dev] [PATCH 2/2] Prepare for 2.1.2.

2014-04-28 Thread Justin Pettit
We now increment the version immediately after a release. Signed-off-by: Justin Pettit --- NEWS |4 configure.ac |2 +- debian/changelog |6 ++ 3 files changed, 11 insertions(+), 1 deletions(-) diff --git a/NEWS b/NEWS index 32dc352..a31740e 100644 --- a/NEW

[ovs-dev] [PATCH 1/2] Prepare 2.1.1 release.

2014-04-28 Thread Justin Pettit
Signed-off-by: Justin Pettit --- NEWS |3 ++- configure.ac |2 +- debian/changelog |9 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index eeba849..32dc352 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,8 @@ -Post-v2.1.0 +v2.1.1 - 28 Ap

[ovs-dev] [PATCH 2/2] Prepare for post-2.2.0 (2.2.90).

2014-04-28 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 98db34e..74b57ff 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +Post-v2.2.0 +---

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

2014-04-28 Thread Justin Pettit
Signed-off-by: Justin Pettit --- NEWS |4 ++-- configure.ac |2 +- debian/changelog | 24 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index 02ecf5b..98db34e 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -Post-v2.1.0

Re: [ovs-dev] [PATCH v2.56] datapath: Add basic MPLS support to kernel

2014-04-28 Thread Jesse Gross
On Mon, Apr 28, 2014 at 12:00 AM, Simon Horman wrote: > On Fri, Apr 25, 2014 at 12:57:20PM -0700, Jesse Gross wrote: >> On Fri, Apr 25, 2014 at 1:06 AM, YAMAMOTO Takashi >> wrote: >> >> On Thu, Apr 24, 2014 at 05:57:29PM +0900, YAMAMOTO Takashi wrote: >> >>> hi, >> >>> >> >>> > + * Due to the sam

Re: [ovs-dev] [PATCH] datapath: Check for backported skb_orphan_frags().

2014-04-28 Thread Jesse Gross
On Sun, Apr 27, 2014 at 7:07 PM, Joe Stringer wrote: > This was causing build failures on debian wheezy. Check for the feature > rather than the version. > > Signed-off-by: Joe Stringer Acked-by: Jesse Gross ___ dev mailing list dev@openvswitch.org ht

Re: [ovs-dev] [urcu-fixes 4/4] ovs-rcu: Log a helpful warning when ovsrcu_synchronize() stalls.

2014-04-28 Thread Alex Wang
Acked-by: Alex Wang On Mon, Apr 28, 2014 at 9:06 AM, Ben Pfaff wrote: > This made it easier for me to find a thread that was causing stalls. > > Signed-off-by: Ben Pfaff > --- > lib/ovs-rcu.c| 24 +++- > lib/ovs-thread.c |4 +++- > 2 files changed, 26 insertions

Re: [ovs-dev] [urcu-fixes 3/4] ovs-thread: Make caller provide thread name when creating a thread.

2014-04-28 Thread Alex Wang
This is helpful,​ just two comments, On Mon, Apr 28, 2014 at 9:06 AM, Ben Pfaff wrote: > This patch is a prerequisite for making RCU report the name of a thread > that is blocking RCU synchronization, > *because the easiest way to do that gets the name of the thread in > ovsrcu_quiesce_end(), *w

Re: [ovs-dev] [urcu-fixes 1/4] timeval: Preserve quiescence across time_poll().

2014-04-28 Thread Alex Wang
This is a hard to notice one~, Acked-by: Alex Wang On Mon, Apr 28, 2014 at 9:06 AM, Ben Pfaff wrote: > Otherwise ovsrcu_synchronize() busy-waits in its loop because its > poll_block() un-quiesces, causing the global_seqno to increase, which is > what it waits for. > > Reported-by: Alex Wang

Re: [ovs-dev] [urcu-fixes 2/4] ovs-thread: Quiesce in xpthread_barrier_wait().

2014-04-28 Thread Alex Wang
thx for fixing this, Acked-by: Alex Wang On Mon, Apr 28, 2014 at 9:06 AM, Ben Pfaff wrote: > Otherwise the udpif revalidator threads can postpone RCU callbacks > essentially forever, especially if there are many revalidator threads and > little network traffic. > > Reported-by: Alex Wang > S

Re: [ovs-dev] [PATCH v3 1/1] Python Logging Formatting Improvements

2014-04-28 Thread Ben Pfaff
On Sun, Mar 30, 2014 at 12:26:55PM +0100, Dave Tucker wrote: > The Open vSwitch daemons written in C support user-configured logging > patterns as described in ovs-appctl(8). This commit adds this capability > to the daemons written in Python. > > - Add a '__log_patterns' attribute to the Vlog cla

[ovs-dev] [urcu-fixes 0/4] Fix busy wait in RCU postpone thread

2014-04-28 Thread Ben Pfaff
Alex Wang pointed out that the RCU postpone thread can end up busy-waiting. The first two patches in this series fix the problem. The remaining two patches make it easier to track down threads that never quiesce. Ben Pfaff (4): timeval: Preserve quiescence across time_poll(). ovs-thread: Quie

[ovs-dev] [urcu-fixes 1/4] timeval: Preserve quiescence across time_poll().

2014-04-28 Thread Ben Pfaff
Otherwise ovsrcu_synchronize() busy-waits in its loop because its poll_block() un-quiesces, causing the global_seqno to increase, which is what it waits for. Reported-by: Alex Wang Signed-off-by: Ben Pfaff --- lib/ovs-rcu.c |7 +++ lib/ovs-rcu.h |1 + lib/timeval.c | 14 +-

[ovs-dev] [urcu-fixes 3/4] ovs-thread: Make caller provide thread name when creating a thread.

2014-04-28 Thread Ben Pfaff
Thread names are occasionally very useful for debugging, but from time to time we've forgotten to set one. This commit adds the new thread's name as a parameter to the function to start a thread, to make that mistake impossible. This also simplifies code, since two function calls become only one.

[ovs-dev] [urcu-fixes 4/4] ovs-rcu: Log a helpful warning when ovsrcu_synchronize() stalls.

2014-04-28 Thread Ben Pfaff
This made it easier for me to find a thread that was causing stalls. Signed-off-by: Ben Pfaff --- lib/ovs-rcu.c| 24 +++- lib/ovs-thread.c |4 +++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/lib/ovs-rcu.c b/lib/ovs-rcu.c index c1ac61a..8a12564 1

[ovs-dev] [urcu-fixes 2/4] ovs-thread: Quiesce in xpthread_barrier_wait().

2014-04-28 Thread Ben Pfaff
Otherwise the udpif revalidator threads can postpone RCU callbacks essentially forever, especially if there are many revalidator threads and little network traffic. Reported-by: Alex Wang Signed-off-by: Ben Pfaff --- lib/ovs-thread.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/lib

Re: [ovs-dev] [PATCH v3] Rapid Spanning Protocol Implementation (IEEE 802.1D) + functional tests

2014-04-28 Thread Jarno Rajahalme
On Apr 28, 2014, at 2:09 AM, Martino Fornasa wrote: > Jarno Rajahalme wrote: > >> move_rstp() does not check ‘changes’ before clearing it. Consider enforcing >> the invariant, >> or maybe do not bother setting ‘changes’ right before calling ‘move_rstp()’ ? >> > Not clear to me. Function mov

[ovs-dev] Ich bitte um Ihre Unterstuetzung!!

2014-04-28 Thread Ezoh Martins
Sehr geehrter Damen und Herren, Vorname/  Martins Name/   U.Ezoh  Nationalitaet/  Sierra Leonean Ich habe die Summe von USD 7.2millionen von meinen verstorbenen Eltern geebrt. Meine Eltern wurden Diamanten Haendler. Das Geld wurde von meinen Eltern in der Sicherheitsfirma fuer sicheres Behalten

Re: [ovs-dev] [PATCH v3] Rapid Spanning Protocol Implementation (IEEE 802.1D) + functional tests

2014-04-28 Thread Martino Fornasa
Jarno Rajahalme wrote: move_rstp() does not check ‘changes’ before clearing it. Consider enforcing the invariant, or maybe do not bother setting ‘changes’ right before calling ‘move_rstp()’ ? Not clear to me. Function move_rstp does check 'changes': move_rstp(struct rstp *rstp ) { int port_n

[ovs-dev] netlink statistics

2014-04-28 Thread Neelakantam Gaddam
Hi All, I want to print the netlink statistics of vswitchd process. My requirement is to get all the netlink count for flow additions from vswitchd process. Is there any way to get the netlink statistics? Please help me to get these statistics. -- Thanks & Regards Neelakantam Gaddam __

Re: [ovs-dev] [PATCH v2.56] datapath: Add basic MPLS support to kernel

2014-04-28 Thread Simon Horman
On Fri, Apr 25, 2014 at 12:57:20PM -0700, Jesse Gross wrote: > On Fri, Apr 25, 2014 at 1:06 AM, YAMAMOTO Takashi > wrote: > >> On Thu, Apr 24, 2014 at 05:57:29PM +0900, YAMAMOTO Takashi wrote: > >>> hi, > >>> > >>> > + * Due to the sample action there may be multiple possible eth types. > >>> > +