Re: [ovs-dev] [PATCH] ofproto-dpif: Implement "dpif/set-n-handler-threads" command.

2013-08-14 Thread Alex Wang
This patch is not applicable. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 3/5] datapath: Move generic tunnel functions to lisp module.

2013-08-14 Thread Pravin Shelar
Thanks. I pushed first three patches to master. On Tue, Aug 13, 2013 at 5:44 PM, Jesse Gross wrote: > On Mon, Jul 29, 2013 at 3:47 PM, Pravin B Shelar > wrote: > > diff --git a/datapath/vport-lisp.c b/datapath/vport-lisp.c > > index 6027a16..6e37b2f 100644 > > --- a/datapath/vport-lisp.c > > +

Re: [ovs-dev] [PATCH] datapath: tunnel: Do not use inner ip-header-id for tunnel ip-header-id.

2013-08-14 Thread Pravin Shelar
Thanks. I pushed it to master. On Wed, Aug 14, 2013 at 1:34 PM, Jesse Gross wrote: > On Wed, Aug 14, 2013 at 11:46 AM, Pravin B Shelar > wrote: > > Using inner-id for tunnel id is not safe in some rare cases. > > E.g. packets coming from multiple sources entering same tunnel > > can have same

Re: [ovs-dev] [PATCH] datapath: tunnel: Fix gre64 tunnel when key not specified.

2013-08-14 Thread Pravin Shelar
Thanks, I pushed it to master On Wed, Aug 14, 2013 at 5:39 PM, Jesse Gross wrote: > On Wed, Aug 14, 2013 at 5:31 PM, Pravin B Shelar > wrote: > > User is allowed to create tunnel without any keys. In this > > case userspace set tunnel action does not set tun-key flag > > which was confusing g

Re: [ovs-dev] [PATCH] ovsdb: Add new column to set the maximum number of worker threads

2013-08-14 Thread Ethan Jackson
> I agree with your point about persistence. But it seems to me, > ofproto-dpif-upcall > is not a generic feature. is it reasonable to define a function in > ofproto_class? That's fine with me. Or you could do what we did for the flow_eviction_threshold and make it a global in ofproto-provider.

Re: [ovs-dev] [PATCH] ovsdb: Add new column to set the maximum number of worker threads

2013-08-14 Thread Alex Wang
Sorry Ethan, I saw this right after I posted the patch... ;( On Wed, Aug 14, 2013 at 7:26 PM, Ethan Jackson wrote: > In practice users effectively run only one type of datapath. You > aren't going to have production switches which are running both the > linux kernel and the linux userspace dat

[ovs-dev] [PATCH] ofproto-dpif: Implement "dpif/set-n-handler-threads" command.

2013-08-14 Thread Alex Wang
This commit adds a new appctl command "dpif/set-n-handler-threads" in "ofproto-dpif.c". It is used to set the number of upcall handler threads created by ofproto-dpif-upcall module. Signed-off-by: Alex Wang --- ofproto/ofproto-dpif-unixctl.man | 18 ++ ofproto/ofproto-dpif.c

Re: [ovs-dev] [PATCH] ovsdb: Add new column to set the maximum number of worker threads

2013-08-14 Thread Ethan Jackson
> From my understanding, we the upcall dispatcher-handler for each type of > datapath. So, we may require user to specify the type of datapath (or not > when there is only one datapath). In practice users effectively run only one type of datapath. You aren't going to have production switches whic

Re: [ovs-dev] [PATCH V3 1/4] bfd: Implement BFD decay.

2013-08-14 Thread Ethan Jackson
> - do not allow bfd to call bfd_may_decay when decay_min_rx > is less than rmt_min_tx. Why? I don't think we should need this. If the rmt_min_tx is greater than our min_rx, according to the bfd protocol we'll simply use the rmt_min_tx as our rx interval (see bfd_rx_interval()). In other word

Re: [ovs-dev] [RFC] Making OVS less Ethernet specific

2013-08-14 Thread Jesse Gross
On Wed, Aug 14, 2013 at 7:01 AM, Lori Jakab wrote: > [Reviving and older thread...] > > > On Jun 21, 2013, at 2:50 AM, Jesse Gross wrote: > >> On Mon, Jun 17, 2013 at 11:19 AM, Lori Jakab wrote: >>> >>> On 6/11/13 1:09 AM, Jesse Gross wrote: On Wed, Jun 5, 2013 at 2:56 PM, Lori Jak

Re: [ovs-dev] [PATCH] datapath: tunnel: Fix gre64 tunnel when key not specified.

2013-08-14 Thread Jesse Gross
On Wed, Aug 14, 2013 at 5:31 PM, Pravin B Shelar wrote: > User is allowed to create tunnel without any keys. In this > case userspace set tunnel action does not set tun-key flag > which was confusing gre64 vport header calculations. Following > patch fixes it by always assuming TUNNEL_KEY parame

[ovs-dev] [PATCH] datapath: tunnel: Fix gre64 tunnel when key not specified.

2013-08-14 Thread Pravin B Shelar
User is allowed to create tunnel without any keys. In this case userspace set tunnel action does not set tun-key flag which was confusing gre64 vport header calculations. Following patch fixes it by always assuming TUNNEL_KEY parameter as we do it with tun-seq. Signed-off-by: Pravin B Shelar Bu

[ovs-dev] [PATCH V3 1/3] coverage: Reimplement the "ovs-appclt coverage/show" command

2013-08-14 Thread Alex Wang
This commit changes the "ovs-appclt coverage/show" command to show the per-second, per-minute and per-hour rates of function invocation. More importantly, this makes using coverage counter an easy way to monitor the execution of specific functions. Signed-off-by: Alex Wang --- v2 -> v3: - rebas

[ovs-dev] [PATCH net 3/3] openvswitch: Reset tunnel key between input and output.

2013-08-14 Thread Jesse Gross
It doesn't make sense to output a tunnel packet using the same parameters that it was received with since that will generally just result in the packet going back to us. As a result, userspace assumes that the tunnel key is cleared when transitioning through the switch. In the majority of cases thi

[ovs-dev] [GIT net] Open vSwitch

2013-08-14 Thread Jesse Gross
Three bug fixes that are fairly small either way but resolve obviously incorrect code. For net/3.11. The following changes since commit ad81f0545ef01ea651886dddac4bef6cec930092: Linux 3.11-rc1 (2013-07-14 15:18:27 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/l

[ovs-dev] [PATCH net 1/3] openvswitch: Fix bad merge resolution.

2013-08-14 Thread Jesse Gross
git silently included an extra hunk in vport_cmd_set() during automatic merging. This code is unreachable so it does not actually introduce a problem but it is clearly incorrect. Signed-off-by: Jesse Gross --- net/openvswitch/datapath.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/o

[ovs-dev] [PATCH net 2/3] openvswitch: Use correct type while allocating flex array.

2013-08-14 Thread Jesse Gross
From: Pravin B Shelar Flex array is used to allocate hash buckets which is type struct hlist_head, but we use `struct hlist_head *` to calculate array size. Since hlist_head is of size pointer it works fine. Following patch use correct type. Signed-off-by: Pravin B Shelar Signed-off-by: Jesse

Re: [ovs-dev] [PATCH] bfd: Increase configuration efficiency.

2013-08-14 Thread Ben Pfaff
No problem. Misunderstandings are inevitable. Thanks, Ben. On Wed, Aug 14, 2013 at 03:47:44PM -0700, Alex Wang wrote: > Thanks a lot Ben, > > I should be more careful about commenting. > > Kind Regards, > Alex Wang, > > > On Wed, Aug 14, 2013 at 3:39 PM, Ben Pfaff wrote: > > > On Wed, Aug

Re: [ovs-dev] [PATCH] bfd: Increase configuration efficiency.

2013-08-14 Thread Alex Wang
Thanks a lot Ben, I should be more careful about commenting. Kind Regards, Alex Wang, On Wed, Aug 14, 2013 at 3:39 PM, Ben Pfaff wrote: > On Wed, Aug 14, 2013 at 03:27:07PM -0700, Ben Pfaff wrote: > > On Wed, Aug 14, 2013 at 02:03:37PM -0700, Alex Wang wrote: > > > On Wed, Aug 14, 2013 at 1:5

Re: [ovs-dev] [PATCH v2] debian: Fix build with old versions of dpkg-buildflags.

2013-08-14 Thread Ben Pfaff
I applied this (yesterday). On Tue, Aug 13, 2013 at 02:04:49PM -0700, Justin Pettit wrote: > Looks good. > > --Justin > > > On Aug 13, 2013, at 12:54 PM, Ben Pfaff wrote: > > > dpkg-buildflags has not always supported --export=configure, but commit > > 6c2d4c8780 (debian: Apply hardening opti

Re: [ovs-dev] [PATCH] netdev-bsd: implement netdev_arp_lookup for NetBSD

2013-08-14 Thread Ben Pfaff
On Wed, Aug 14, 2013 at 05:57:41AM +0900, y...@mwd.biglobe.ne.jp wrote: > From: YAMAMOTO Takashi > > Signed-off-by: YAMAMOTO Takashi Thanks, applied to master. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] bfd: Increase configuration efficiency.

2013-08-14 Thread Ben Pfaff
On Wed, Aug 14, 2013 at 03:27:07PM -0700, Ben Pfaff wrote: > On Wed, Aug 14, 2013 at 02:03:37PM -0700, Alex Wang wrote: > > On Wed, Aug 14, 2013 at 1:57 PM, Alex Wang wrote: > > > > > > > > > > > On Wed, Aug 14, 2013 at 1:49 PM, Ben Pfaff wrote: > > > > > >> I don't understand bfd well enough to

Re: [ovs-dev] [PATCH] Introduce odp_flow_key_to_mask() API

2013-08-14 Thread Andy Zhou
You may want to combine the two patches into one. It is not good to have is_zero mask check scattered over. This will hard to maintain. On Tue, Aug 13, 2013 at 2:50 PM, wrote: > From: gyang > > With megaflow support, there is API to convert mask to nlattr key based > format. This change intro

Re: [ovs-dev] [PATCH] ovsdb: Add new column to set the maximum number of worker threads

2013-08-14 Thread Alex Wang
Hey Ethan, after checking the code, I have following thoughts, >From my understanding, we the upcall dispatcher-handler for each type of datapath. So, we may require user to specify the type of datapath (or not when there is only one datapath). So, it is not appropriate to use a vsctl command. In

[ovs-dev] [PATCH] ovsdb-idl: Remove write-only member 'commit_seqno' from ovsdb_idl_txn.

2013-08-14 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/ovsdb-idl.c |2 -- python/ovs/db/idl.py |1 - 2 files changed, 3 deletions(-) diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 116aa86..4631291 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -91,7 +91,6 @@ struct ovsdb_idl_txn { char

Re: [ovs-dev] [PATCH] bfd: Increase configuration efficiency.

2013-08-14 Thread Ben Pfaff
On Wed, Aug 14, 2013 at 02:03:37PM -0700, Alex Wang wrote: > On Wed, Aug 14, 2013 at 1:57 PM, Alex Wang wrote: > > > > > > > On Wed, Aug 14, 2013 at 1:49 PM, Ben Pfaff wrote: > > > >> I don't understand bfd well enough to understand this comment. Do you > >> mean that this patch fixes such a bu

Re: [ovs-dev] [PATCH] bfd: Increase configuration efficiency.

2013-08-14 Thread Alex Wang
Sorry forget to reply all, On Wed, Aug 14, 2013 at 1:57 PM, Alex Wang wrote: > > > On Wed, Aug 14, 2013 at 1:49 PM, Ben Pfaff wrote: > >> I don't understand bfd well enough to understand this comment. Do you >> mean that this patch fixes such a bug or that it introduces such a >> bug? >> > > I

Re: [ovs-dev] [PATCH] bfd: Fix check_tnl_key error.

2013-08-14 Thread Alex Wang
Thanks, On Wed, Aug 14, 2013 at 1:50 PM, Ben Pfaff wrote: > No. I updated the commit message and applied this to master. Thanks. > > On Wed, Aug 14, 2013 at 01:49:00PM -0700, Alex Wang wrote: > > Exactly, sorry, I didn't check the exact command line. Do I need to send > > another patch? > > >

Re: [ovs-dev] [PATCH] bfd: Fix check_tnl_key error.

2013-08-14 Thread Ben Pfaff
No. I updated the commit message and applied this to master. Thanks. On Wed, Aug 14, 2013 at 01:49:00PM -0700, Alex Wang wrote: > Exactly, sorry, I didn't check the exact command line. Do I need to send > another patch? > > > On Wed, Aug 14, 2013 at 1:45 PM, Ben Pfaff wrote: > > > On Wed, Au

Re: [ovs-dev] [PATCH] datapath: optimize flow compare and mask functions

2013-08-14 Thread Jesse Gross
On Wed, Aug 14, 2013 at 11:50 AM, Andy Zhou wrote: > > > > On Wed, Aug 14, 2013 at 11:29 AM, Jesse Gross wrote: >> >> On Sat, Jun 22, 2013 at 5:32 AM, Andy Zhou wrote: >> > For architectures can load and store unaligned long efficiently, use 4 >> > or 8 bytes operations. This improves the effici

Re: [ovs-dev] [PATCH] bfd: Fix check_tnl_key error.

2013-08-14 Thread Alex Wang
Exactly, sorry, I didn't check the exact command line. Do I need to send another patch? On Wed, Aug 14, 2013 at 1:45 PM, Ben Pfaff wrote: > On Wed, Aug 14, 2013 at 01:12:33PM -0700, Alex Wang wrote: > > This commit fixes the bug introduced by commit fab52e16f7d8 (BFD: Add > > check_tnl_key feat

Re: [ovs-dev] [PATCH] bfd: Increase configuration efficiency.

2013-08-14 Thread Ben Pfaff
I don't understand bfd well enough to understand this comment. Do you mean that this patch fixes such a bug or that it introduces such a bug? Thanks, Ben. On Tue, Aug 13, 2013 at 04:33:42PM -0700, Alex Wang wrote: > This can be a bug, when we configure bfd:min_rx and bfd:decay_min_rx > together

Re: [ovs-dev] [PATCH] bfd: Fix check_tnl_key error.

2013-08-14 Thread Ben Pfaff
On Wed, Aug 14, 2013 at 01:12:33PM -0700, Alex Wang wrote: > This commit fixes the bug introduced by commit fab52e16f7d8 (BFD: Add > check_tnl_key feature to BFD code.). The bug caused the opposite of > the intended behaviour. > > Unit test is added for the 'check_tnl_key' feature. > > Signed-off

Re: [ovs-dev] [PATCH] datapath: tunnel: Do not use inner ip-header-id for tunnel ip-header-id.

2013-08-14 Thread Jesse Gross
On Wed, Aug 14, 2013 at 11:46 AM, Pravin B Shelar wrote: > Using inner-id for tunnel id is not safe in some rare cases. > E.g. packets coming from multiple sources entering same tunnel > can have same id. Therefore on tunnel packet receive we > could have packets from two different stream but with

[ovs-dev] [PATCH] bfd: Fix check_tnl_key error.

2013-08-14 Thread Alex Wang
This commit fixes the bug introduced by commit fab52e16f7d8 (BFD: Add check_tnl_key feature to BFD code.). The bug caused the opposite of the intended behaviour. Unit test is added for the 'check_tnl_key' feature. Signed-off-by: Alex Wang --- lib/bfd.c|2 +- tests/bfd.at | 34

Re: [ovs-dev] [PATCH] datapath: optimize flow compare and mask functions

2013-08-14 Thread Andy Zhou
On Wed, Aug 14, 2013 at 11:29 AM, Jesse Gross wrote: > On Sat, Jun 22, 2013 at 5:32 AM, Andy Zhou wrote: > > For architectures can load and store unaligned long efficiently, use 4 > > or 8 bytes operations. This improves the efficiency compare to byte wise > > operations. > > > > This patch is u

[ovs-dev] [PATCH] datapath: tunnel: Do not use inner ip-header-id for tunnel ip-header-id.

2013-08-14 Thread Pravin B Shelar
Using inner-id for tunnel id is not safe in some rare cases. E.g. packets coming from multiple sources entering same tunnel can have same id. Therefore on tunnel packet receive we could have packets from two different stream but with same source and dst IP with same ip-id which could confuse ip pac

Re: [ovs-dev] [PATCH] gitignore: Add ovsdbmonitor.

2013-08-14 Thread Ben Pfaff
On Wed, Aug 14, 2013 at 09:13:13AM +, Gurucharan Shetty wrote: > Signed-off-by: Gurucharan Shetty > --- > ovsdb/ovsdbmonitor/.gitignore |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ovsdb/ovsdbmonitor/.gitignore b/ovsdb/ovsdbmonitor/.gitignore > index d6f433b..e

Re: [ovs-dev] [PATCH] datapath: optimize flow compare and mask functions

2013-08-14 Thread Jesse Gross
On Sat, Jun 22, 2013 at 5:32 AM, Andy Zhou wrote: > For architectures can load and store unaligned long efficiently, use 4 > or 8 bytes operations. This improves the efficiency compare to byte wise > operations. > > This patch is uses ideas and code from a patch submitted by Peter Klausler > title

[ovs-dev] Bug#719736: openvswitch: build FTBFS "make check" failures on most archs

2013-08-14 Thread Ben Pfaff
Package: openvswitch Version: 1.9.2+git20130813 Severity: grave I'm filing this bug to track the various "make check" failures that caused the 1.9.2+git20130813 build to fail on most archs. I need to spend some time tracking down the exact causes, and this bug report seems to be a reasonable plac

[ovs-dev] [PATCH] gitignore: Add ovsdbmonitor.

2013-08-14 Thread Gurucharan Shetty
Signed-off-by: Gurucharan Shetty --- ovsdb/ovsdbmonitor/.gitignore |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovsdb/ovsdbmonitor/.gitignore b/ovsdb/ovsdbmonitor/.gitignore index d6f433b..e02ced0 100644 --- a/ovsdb/ovsdbmonitor/.gitignore +++ b/ovsdb/ovsdbmonitor/.gitig

Re: [ovs-dev] [PATCH 5/5] datapath lisp: Use ovs offload compat functionality.

2013-08-14 Thread Jesse Gross
On Mon, Jul 29, 2013 at 3:48 PM, Pravin B Shelar wrote: > diff --git a/datapath/vport-lisp.c b/datapath/vport-lisp.c > index 847cb39..9ffa74f 100644 > --- a/datapath/vport-lisp.c > +++ b/datapath/vport-lisp.c > +static void handle_offloads(struct sk_buff *skb) > { > - int err; > + if

[ovs-dev] [PATCH V3 1/4] bfd: Implement BFD decay.

2013-08-14 Thread Alex Wang
When there is no incoming data traffic at the interface for a period, BFD decay allows the bfd session to increase the min_rx. This is helpful in that some interfaces may be idle for long a time. And cpu consumption can be reduced by processing fewer bfd control packets. Signed-off-by: Alex Wang

Re: [ovs-dev] [RFC] Making OVS less Ethernet specific

2013-08-14 Thread Lori Jakab
[Reviving and older thread...] On Jun 21, 2013, at 2:50 AM, Jesse Gross wrote: On Mon, Jun 17, 2013 at 11:19 AM, Lori Jakab wrote: On 6/11/13 1:09 AM, Jesse Gross wrote: On Wed, Jun 5, 2013 at 2:56 PM, Lori Jakab wrote: At a high level, we would introduce layer 3 (tunnel) vports, and LIS