Re: [ovs-dev] [PATCH v2 1/2] Remove mpls_depth field from flow

2013-09-26 Thread Simon Horman
On Thu, Sep 26, 2013 at 09:42:20AM +0900, Simon Horman wrote: > On Wed, Sep 25, 2013 at 09:09:27AM -0700, Ben Pfaff wrote: > > On Wed, Sep 25, 2013 at 01:31:07PM +0900, Simon Horman wrote: > > > Rather than tracking the MPLS depth as a field in the > > > flow, which is an entirely poor place for it

Re: [ovs-dev] [PATCH 1/2] coverage: Reimplement the "ovs-appctl coverage/show" command.

2013-09-26 Thread Alex Wang
Thanks for the review, On Wed, Sep 25, 2013 at 6:11 PM, Ethan Jackson wrote: > Couple of high level questions about this. > > Instead of protecting coverage_run() with a mutex and calling it in > time_poll(), why not just call it once at the beginning of the main > thread's run loop? If we do t

[ovs-dev] [PATCH v2 2/4] datapath: Move mega-flow list out of rehashing struct.

2013-09-26 Thread Pravin B Shelar
ovs-flow rehash does not touch mega flow list. Following patch moves it dp struct datapath. Avoid one extra indirection for accessing mega-flow list head on every packet receive. Signed-off-by: Pravin B Shelar --- v2: No change. --- datapath/datapath.c | 81 +--- datapath/da

[ovs-dev] [PATCH v2 3/4] datapath: Simplify mega-flow APIs.

2013-09-26 Thread Pravin B Shelar
Hides mega-flow implementation in flow_table.c rather than datapath.c. This also helps next patch. Signed-off-by: Pravin B Shelar --- v2: No change. --- datapath/datapath.c | 27 +++--- datapath/flow_table.c | 136 - datapath/flow_table.h

[ovs-dev] [PATCH v2 4/4] datapath: Scalable locking.

2013-09-26 Thread Pravin B Shelar
Following patch breaks down ovs_mutex into multiple locks. This patch specifically targets flow-install. By breaking down ovs-locking parallel flow-installs are possible. Signed-off-by: Pravin B Shelar v2: get rid of mask_list lock. --- datapath/datapath.c | 90 +--- da

Re: [ovs-dev] [PATCH 1/3] ofproto-dpif: Move send_packet() to ofproto-dpif-xlate module.

2013-09-26 Thread Alex Wang
Following is Ethan's reply from a almost same RFC patch I sent just to him earlier, Repost it here, so that all following comments can be made on this thread. """ In xlate_send_packet() you aren't allow to hold the xlate_rwlock while calling xlate_actions(). There are two options to deal with th

[ovs-dev] [PATCH v2] Suppress warnings about unused variables and functions.

2013-09-26 Thread Jarno Rajahalme
Using the latest clang I get a lot of warnings about unused variables and functions. After a while it becomes difficult to locate genuine warnings, so it is best to bet rid of these. Signed-off-by: Jarno Rajahalme --- v2: Address Ben's comments. lib/aes128.c | 335 --

Re: [ovs-dev] [PATCH 1/3] ofproto-dpif: Move send_packet() to ofproto-dpif-xlate module.

2013-09-26 Thread Alex Wang
In xlate_send_packet() you aren't allow to hold the xlate_rwlock while > calling xlate_actions(). There are two options to deal with this. > (1) make a new xlate_actions_unsafe() function internal to > ofproto-dpif-xlate which doesn't take the xlate_rwlock, and call that. > (2) Take the xlate_rw

[ovs-dev] [PATCH] ovs-ofctl: Fix a typo in documentation.

2013-09-26 Thread Gurucharan Shetty
Signed-off-by: Gurucharan Shetty --- utilities/ovs-ofctl.8.in |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-ofctl.8.in b/utilities/ovs-ofctl.8.in index 526e12c..55547f1 100644 --- a/utilities/ovs-ofctl.8.in +++ b/utilities/ovs-ofctl.8.in @@ -1514,7 +1514,7 @

Re: [ovs-dev] [PATCH 2/3] ofproto-dpif-monitor: Add ofproto-dpif-monitor module.

2013-09-26 Thread Alex Wang
Following is Ethan's reply from a similar RFC patch I sent just to him earlier, Repost it here, so that all following comments can be made on this thread. """ At a high level, this looks much more in the direction I was hoping for. I've got a couple of structural comments, some of which are dire

Re: [ovs-dev] [PATCH] ovs-ofctl: Fix a typo in documentation.

2013-09-26 Thread Ben Pfaff
On Thu, Sep 26, 2013 at 09:12:07AM -0700, Gurucharan Shetty wrote: > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/3] ofproto-dpif-monitor: Add ofproto-dpif-monitor module.

2013-09-26 Thread Alex Wang
> """ > At a high level, this looks much more in the direction I was hoping > for. I've got a couple of structural comments, some of which are > directly contradictory to things I told you earlier =) (sorry bout > that). > > I'd ditch struct monitor and just deal with the hmap directly. It's > no

Re: [ovs-dev] [PATCH] FAQ: Explain why allowing only unicast traffic breaks IP connectivity.

2013-09-26 Thread Ben Pfaff
On Wed, Sep 25, 2013 at 11:16:15PM +, Pritesh Kothari (pritkoth) wrote: > > On Sep 25, 2013, at 3:56 PM, Ben Pfaff wrote: > > > On Wed, Sep 25, 2013 at 01:28:33PM -0700, Justin Pettit wrote: > >> Thanks for writing this up. I think the example may be clearer if > >> you defined the flow in t

[ovs-dev] [PATCH 2/2] Suppress warnings about unused variables and functions.

2013-09-26 Thread Ben Pfaff
From: Jarno Rajahalme These variables and functions are unused but we don't want to remove their definitions. Found by Clang. Signed-off-by: Jarno Rajahalme Signed-off-by: Ben Pfaff --- lib/ofp-actions.c |6 +++--- lib/vlandev.c |2 +- 2 files changed, 4 insertions(+), 4 deletion

[ovs-dev] [PATCH 1/2] Remove unused variables and functions.

2013-09-26 Thread Ben Pfaff
From: Jarno Rajahalme Found by Clang. Signed-off-by: Jarno Rajahalme Signed-off-by: Ben Pfaff --- lib/aes128.c | 335 lib/dpif.c |2 - lib/flow.c |3 - lib/lockfile.c |1 - lib/mac-learning

Re: [ovs-dev] [PATCH v2] Suppress warnings about unused variables and functions.

2013-09-26 Thread Ben Pfaff
On Thu, Sep 26, 2013 at 09:40:52AM -0700, Jarno Rajahalme wrote: > Using the latest clang I get a lot of warnings about unused variables > and functions. After a while it becomes difficult to locate genuine > warnings, so it is best to bet rid of these. > > Signed-off-by: Jarno Rajahalme > --- >

Re: [ovs-dev] [PATCH 1/3] ofproto-dpif: Move send_packet() to ofproto-dpif-xlate module.

2013-09-26 Thread Ben Pfaff
Ethan writes: > Ben, how do you feel about ditching ofproto_dpif's stats member? It > doesn't seem like a particularly important feature to me, and I think > it's going to be annoying to implement in a thread safe manner. Isn't it trivial to throw a mutex around it? It's used in simple ways and

Re: [ovs-dev] [PATCH v2 1/2] Remove mpls_depth field from flow

2013-09-26 Thread Ben Pfaff
On Thu, Sep 26, 2013 at 05:34:49PM +0900, Simon Horman wrote: > On Thu, Sep 26, 2013 at 09:42:20AM +0900, Simon Horman wrote: > > On Wed, Sep 25, 2013 at 09:09:27AM -0700, Ben Pfaff wrote: > > > On Wed, Sep 25, 2013 at 01:31:07PM +0900, Simon Horman wrote: > > > > Rather than tracking the MPLS dept

Re: [ovs-dev] [PATCH] ofproto: Recycle least recently used ofport.

2013-09-26 Thread Ben Pfaff
On Wed, Sep 25, 2013 at 10:50:13AM -0700, Gurucharan Shetty wrote: > On Tue, Sep 24, 2013 at 10:52 AM, Ben Pfaff wrote: > > On Mon, Aug 26, 2013 at 10:25:39AM -0700, Gurucharan Shetty wrote: > >> If there is a lot of churn in creation and deletion of > >> interfaces, we may end up recycling the of

Re: [ovs-dev] [PATCH] ovs-bugtool: Limit disk usage

2013-09-26 Thread Ben Pfaff
On Wed, Sep 25, 2013 at 09:47:00AM -0700, Shih-Hao Li wrote: > From: Shih-Hao Li > > When output to a file with "--unlimited" unset, > only allow 90% of the free disk space to be used. I applied this to master, thanks. ___ dev mailing list dev@openvswi

Re: [ovs-dev] [PATCH 1/3] ofproto-dpif: Move send_packet() to ofproto-dpif-xlate module.

2013-09-26 Thread Ethan Jackson
Yeah it's trivial, I just think the feature is a bit odd/confusing. But if you think it's useful we'll keep it. Alex could you just slap a mutex around it? Ethan On Thu, Sep 26, 2013 at 12:32 PM, Ben Pfaff wrote: > Ethan writes: >> Ben, how do you feel about ditching ofproto_dpif's stats member

Re: [ovs-dev] [PATCH] ofproto: Recycle least recently used ofport.

2013-09-26 Thread Gurucharan Shetty
On Thu, Sep 26, 2013 at 12:59 PM, Ben Pfaff wrote: > On Wed, Sep 25, 2013 at 10:50:13AM -0700, Gurucharan Shetty wrote: >> On Tue, Sep 24, 2013 at 10:52 AM, Ben Pfaff wrote: >> > On Mon, Aug 26, 2013 at 10:25:39AM -0700, Gurucharan Shetty wrote: >> >> If there is a lot of churn in creation and de

Re: [ovs-dev] [PATCH] FAQ: Explain why allowing only unicast traffic breaks IP connectivity.

2013-09-26 Thread Pritesh Kothari (pritkoth)
>> Sure. How about this, then. > > --8<--cut here-->8-- > > From: Ben Pfaff > Date: Wed, 25 Sep 2013 15:56:21 -0700 > Subject: [PATCH] FAQ: Explain why allowing only IP traffic breaks IP > connectivity. > > Signed-off-by: Ben Pfaff > --- > FAQ |

Re: [ovs-dev] [PATCH 1/3] ofproto-dpif: Move send_packet() to ofproto-dpif-xlate module.

2013-09-26 Thread Ben Pfaff
On Thu, Sep 26, 2013 at 01:16:10PM -0700, Ethan Jackson wrote: > Yeah it's trivial, I just think the feature is a bit odd/confusing. > But if you think it's useful we'll keep it. Bug #7551, cited in the commit that introduced this feature, said: Packets that are either synthesized or consumed

Re: [ovs-dev] [PATCH] FAQ: Explain why allowing only unicast traffic breaks IP connectivity.

2013-09-26 Thread Ben Pfaff
On Thu, Sep 26, 2013 at 08:21:33PM +, Pritesh Kothari (pritkoth) wrote: > >> Sure. How about this, then. > > > > --8<--cut here-->8-- > > > > From: Ben Pfaff > > Date: Wed, 25 Sep 2013 15:56:21 -0700 > > Subject: [PATCH] FAQ: Explain why allow

[ovs-dev] [PATCH] ovs-bugtool: Change log-days parameter based on file last_mod_time

2013-09-26 Thread Shih-Hao Li
From: Shih-Hao Li Previously the log-days parameter can only support rotated logs based on their numbered filename extension. Thus it can not be used for other types of log filenames. This patch changes it to be based on file last modification time. Issue: #19671 --- utilities/bugtool/ovs-bugto

Re: [ovs-dev] [PATCH 1/2] coverage: Reimplement the "ovs-appctl coverage/show" command.

2013-09-26 Thread Ben Pfaff
On Wed, Sep 25, 2013 at 06:11:12PM -0700, Ethan Jackson wrote: > Ben, could we do the same for coverage_clear()? It seems a bit odd to > me that time_poll() calls this stuff in a multithreaded environment. > That said, perhaps we should leave it as it is, and do something more > comprehensive to d

Re: [ovs-dev] [PATCH v2 1/2] Remove mpls_depth field from flow

2013-09-26 Thread Simon Horman
On Thu, Sep 26, 2013 at 12:24:56PM -0700, Ben Pfaff wrote: > On Thu, Sep 26, 2013 at 05:34:49PM +0900, Simon Horman wrote: > > On Thu, Sep 26, 2013 at 09:42:20AM +0900, Simon Horman wrote: > > > On Wed, Sep 25, 2013 at 09:09:27AM -0700, Ben Pfaff wrote: > > > > On Wed, Sep 25, 2013 at 01:31:07PM +0

[ovs-dev] [PATCH v3] Remove mpls_depth field from flow

2013-09-26 Thread Simon Horman
Rather than tracking the MPLS depth as a field in the flow, which is an entirely poor place for it, just track the delta to the MPLS depth during translation. This logic was developed while implementing recirculation and intended to be used to detect when recirculation should occur. This variant o

[ovs-dev] [PATCH v2.40 3/7] ofp-actions: Add OFPUTIL_OFPAT13_PUSH_MPLS

2013-09-26 Thread Simon Horman
From: Joe Stringer This patch adds a new compatibility enum for use with MPLS, so that the differing behaviour between OpenFlow 1.2 and 1.3 can be implemented in ofproto-dpif-xlate. Signed-off-by: Joe Stringer Signed-off-by: Simon Horman --- v2.36 - v2.39 * No change v2.35 * First post ---

[ovs-dev] [PATCH v2.40 0/7] MPLS actions and matches

2013-09-26 Thread Simon Horman
Hi, This series implements MPLS actions and matches based on work by Ravi K, Leo Alterman, Yamahata-san and Joe Stringer. This series provides two changes * Patches 1 - 5 Provide user-space support for the VLAN/MPLS tag insertion order up to and including OpenFlow 1.2, and the different ord

[ovs-dev] [PATCH v2.40 5/7] lib: Push MPLS tags in the OpenFlow 1.3 ordering

2013-09-26 Thread Simon Horman
From: Joe Stringer This patch modifies the push_mpls behaviour to follow the OpenFlow 1.3 specification in the presence of VLAN tagged packets. From the spec: "Newly pushed tags should always be inserted as the outermost tag in the outermost valid location for that tag. When a new VLAN tag is pu

[ovs-dev] [PATCH v2.40 7/7] datapath: Add basic MPLS support to kernel

2013-09-26 Thread Simon Horman
Allow datapath to recognize and extract MPLS labels into flow keys and execute actions which push, pop, and set labels on packets. Based heavily on work by Leo Alterman, Ravi K, Isaku Yamahata and Joe Stringer. Cc: Ravi K Cc: Leo Alterman Cc: Isaku Yamahata Cc: Joe Stringer Signed-off-by: Sim

[ovs-dev] [PATCH v2.40 1/7] odp: Only pass vlan_tci to commit_vlan_action()

2013-09-26 Thread Simon Horman
From: Joe Stringer This allows for future patches to pass different tci values to commit_vlan_action() without passing an entire flow structure. Signed-off-by: Joe Stringer Signed-off-by: Simon Horman --- v2.36 - v2.39 * No change v2.35 * First post --- lib/odp-util.c | 12 ++-- 1

[ovs-dev] [PATCH v2.40 4/7] ofp-actions: Add separate OpenFlow 1.3 action parser

2013-09-26 Thread Simon Horman
From: Joe Stringer This patch adds new ofpact_from_openflow13() and ofpacts_from_openflow13() functions parallel to the existing ofpact handling code. In the OpenFlow 1.3 version, push_mpls is handled differently, but all other actions are handled by the existing code. For push_mpls, ofpact_push

[ovs-dev] [PATCH v2.40 6/7] datapath: Break out deacceleration portion of vlan_push

2013-09-26 Thread Simon Horman
Break out deacceleration portion of vlan_push into vlan_put so that it may be re-used by mpls_push. For both vlan_push and mpls_push if there is an accelerated VLAN tag present then it should be deaccelerated, adding it to the data of the skb, before the new tag is added. Signed-off-by: Simon Hor

[ovs-dev] [PATCH v2.40 2/7] odp: Allow VLAN actions after MPLS actions

2013-09-26 Thread Simon Horman
From: Joe Stringer OpenFlow 1.2 and 1.3 differ on their handling of MPLS actions in the presence of VLAN tags. To allow correct behaviour to be committed in each situation, this patch adds a second round of VLAN tag action handling to commit_odp_actions(), which occurs after MPLS actions. This is

[ovs-dev] [PATCH] nicira-ext: Fix incorrect description of NXM_NX_IPV6_LABEL as non-maskable.

2013-09-26 Thread Ben Pfaff
This field has always been fully maskable, but the comment here has always said that it is non-maskable. EXT-101. CC: Jean Tourrilhes Signed-off-by: Ben Pfaff --- include/openflow/nicira-ext.h |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/openflow/nicira-ex

Re: [ovs-dev] [PATCH] nicira-ext: Fix incorrect description of NXM_NX_IPV6_LABEL as non-maskable.

2013-09-26 Thread Justin Pettit
Whoops, that was probably me. Acked-by: Justin Pettit Thanks, --Justin On Sep 26, 2013, at 9:33 PM, Ben Pfaff wrote: > This field has always been fully maskable, but the comment here has always > said that it is non-maskable. > > EXT-101. > CC: Jean Tourrilhes > Signed-off-by: Ben Pfaff

Re: [ovs-dev] [PATCH] nicira-ext: Fix incorrect description of NXM_NX_IPV6_LABEL as non-maskable.

2013-09-26 Thread Ben Pfaff
Further research indicates that I still had the story wrong. Initially it was not maskable but Simon Horman made it maskable with commit 3245502404 (OXM: Allow masking of IPv6 Flow Label) without updating the comment. I guess the OXM prefix on that commit message subject means that he believe