Re: [ovs-dev] [PATCH] datapath: Remove pkt_key from OVS_CB.

2014-09-18 Thread Andy Zhou
look good in general. a few small comments in line. Acked-by: Andy Zhou On Wed, Sep 17, 2014 at 6:58 PM, Pravin B Shelar wrote: > OVS keeps pointer to packet key in skb->cb, but the packet key is > store on stack. This could make code bit tricky. So it is better to > get rid of the pointer. > >

[ovs-dev] [PATCH] ovs-pki: Use SHA-512 instead of MD5 as message digest.

2014-09-18 Thread Ben Pfaff
This fixes numerous testsuite failures of the form "SSL_connect: error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm" on systems that disable MD5 in OpenSSL. Centos 7 is one example. Presumably it increase security as well for anyone who generates certificates

Re: [ovs-dev] [PATCH] netdev-dpdk: Pass queue id to dpdk_do_tx_copy().

2014-09-18 Thread Alex Wang
Thx a lot, Applied to master! On Thu, Sep 18, 2014 at 5:21 PM, Daniele Di Proietto wrote: > Thanks for the fix Alex! > > Acked-by: Daniele Di Proietto > > On 9/18/14, 5:09 PM, "Alex Wang" wrote: > > >Since dpdk_do_tx_copy() will be called by both pmd and > >non-pmd thread, it should take the

Re: [ovs-dev] [PATCH] netdev-dpdk: Pass queue id to dpdk_do_tx_copy().

2014-09-18 Thread Daniele Di Proietto
Thanks for the fix Alex! Acked-by: Daniele Di Proietto On 9/18/14, 5:09 PM, "Alex Wang" wrote: >Since dpdk_do_tx_copy() will be called by both pmd and >non-pmd thread, it should take the queue id as input. >The current ovs always uses NON_PMD_THREAD_TX_QUEUE >as queue id, which causes unprotec

[ovs-dev] [PATCH] netdev-dpdk: Pass queue id to dpdk_do_tx_copy().

2014-09-18 Thread Alex Wang
Since dpdk_do_tx_copy() will be called by both pmd and non-pmd thread, it should take the queue id as input. The current ovs always uses NON_PMD_THREAD_TX_QUEUE as queue id, which causes unprotected multi-access to the same queue. This commit fixes the issue by passing the queue id to dpdk_do_tx_c

Re: [ovs-dev] [PATCH] datapath-windows: Handle NBLs with multiple NBs

2014-09-18 Thread Nithin Raju
hi Sam, Pls. find my replies inline. On Sep 14, 2014, at 9:12 PM, Samuel Ghinet wrote: > Hello Nithin, > > Thanks a lot again for the review! Welcome. As you said, the code is intricate. It is fine though. Thanks for working on this one. > - >> More than that I was a

Re: [ovs-dev] [PATCHv2 2/2] datapath: Use nla_parse_strict() for netlink parsing.

2014-09-18 Thread Pravin Shelar
On Wed, Sep 17, 2014 at 9:11 PM, Pravin Shelar wrote: > On Wed, Sep 17, 2014 at 9:02 PM, Joe Stringer wrote: >> >> >> On 18 September 2014 13:02, Joe Stringer wrote: > @@ -229,17 +244,19 @@ static bool match_validate(const struct > sw_flow_match *match, >

Re: [ovs-dev] [PATCH] datapath-windows: fix OVS_VPORT_TYPE

2014-09-18 Thread Nithin Raju
>> Signed-off-by: Samuel Ghinet > > This didn't apply for me: > >Applying: datapath-windows: fix OVS_VPORT_TYPE >error: patch failed: datapath-windows/include/OvsDpInterfaceExt.h:80 >error: datapath-windows/include/OvsDpInterfaceExt.h: patch does not apply >error: patch failed: d

Re: [ovs-dev] [PATCH v2] datapath-windows: Netlink command: vport dump

2014-09-18 Thread Nithin Raju
hi Samuel, Thanks for sending out the changes. Some high level comments are: 1. You might have to rebase your change when Eitan's change gets checked in. He has coalesced the declarations of the command handlers. 2. We'll have to get rid of the OvsDumpVportIoctl() sometime. We need not do it in

Re: [ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Ben Pfaff
Ah, great. I don't think of that as "rate limiting", hence my confusion. I'll review the series. Thank you! On Thu, Sep 18, 2014 at 04:04:18PM -0700, Alex Wang wrote: > Hey Ben, > > I sent out a new series of patches here: > http://openvswitch.org/pipermail/dev/2014-September/045949.html > whi

Re: [ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Alex Wang
Hey Ben, I sent out a new series of patches here: http://openvswitch.org/pipermail/dev/2014-September/045949.html which does exactly what you said. Forgot to mark this thread as invalid. Thanks, Alex Wang, On Thu, Sep 18, 2014 at 4:00 PM, Ben Pfaff wrote: > On Thu, Sep 18, 2014 at 11:37:08AM

Re: [ovs-dev] [PATCH] datapath-windows: fix OVS_VPORT_TYPE

2014-09-18 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 01:06:43PM +, Samuel Ghinet wrote: > The windows ovs kernel uses an OVS_VPORT_TYPE enum that is incompatible with > the userspace counterpart (enum ovs_vport_type from openvswitch.h). We must > use > the same enum type - enum ovs_vport_type - for the netlink communicati

Re: [ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Ben Pfaff
On Thu, Sep 18, 2014 at 11:37:08AM -0700, Alex Wang wrote: > When ovs is running with large topology (e.g. large number of > interfaces), the stats and status update to ovsdb become huge and > normally require multiple run of ovsdb jsonrpc message processing > loop to consume. Also, this could cau

Re: [ovs-dev] [PATCH] datapath-windows: NetLink kernel side, Event subscription and notification

2014-09-18 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 11:12:05PM -0700, Eitan Eliahu wrote: > This code handles an event notification subscription for a user mode thread > which joins an MC group. The event wait handler queues an IRP which is > completed upon change in a port state. > > Signed-off-by: Eitan Eliahu I fixed a

[ovs-dev] [PATCH 3/3] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Alex Wang
This commit adds a warning message to warn the excessive backlog for jsonrpc. Signed-off-by: Alex Wang --- lib/jsonrpc.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c index 0841ad8..c0f80bc 100644 --- a/lib/jsonrpc.c +++ b/lib/jsonrpc.c @@ -259,6 +259

[ovs-dev] [PATCH 2/3] bridge: Refactor the stats and status update.

2014-09-18 Thread Alex Wang
This commit refactors the stats and status update in bridge_run() by moving the corresponding code to separate functions. This makes the code more organized. Signed-off-by: Alex Wang --- vswitchd/bridge.c | 211 - 1 file changed, 112 insertio

[ovs-dev] [PATCH 1/3] bridge: Rate limit the statistics update.

2014-09-18 Thread Alex Wang
When ovs is running with large topology (e.g. large number of interfaces), the stats update to ovsdb becomes huge and normally requires multiple run of ovsdb jsonrpc message processing loop to consume. To prevent the periodic stats update from backlogging in the jsonrpc sending queue, this commit

[ovs-dev] [PATCH 0/3] Rate limit stats update.

2014-09-18 Thread Alex Wang
When testing ovs with 10K or more tunnels with cfm/bfd enabled, it can be observed that the memory utilization of ovs-vswitchd process keeps growing. After investigation, it is found that the periodic statistics update to ovsdb becomes huge when there are that many interfaces, and would take long

Re: [ovs-dev] [PATCH] datapath-windows: fix OVS_VPORT_TYPE

2014-09-18 Thread Nithin Raju
On Sep 17, 2014, at 6:06 AM, Samuel Ghinet wrote: > The windows ovs kernel uses an OVS_VPORT_TYPE enum that is incompatible with > the userspace counterpart (enum ovs_vport_type from openvswitch.h). We must > use > the same enum type - enum ovs_vport_type - for the netlink communication to >

Re: [ovs-dev] [PATCH] ofproto: Increase default datapath max_idle time.

2014-09-18 Thread Ben Pfaff
On Thu, Sep 18, 2014 at 2:48 PM, Ben Pfaff wrote: > On Thu, Sep 18, 2014 at 05:24:12PM -0300, Flavio Leitner wrote: >> On Thu, Sep 18, 2014 at 01:18:57PM -0700, Ethan Jackson wrote: >> > In our experience, most people actually expect this number to be >> > fairly high. For example, our traffic ge

Re: [ovs-dev] [PATCH] ofproto: Increase default datapath max_idle time.

2014-09-18 Thread Ben Pfaff
On Thu, Sep 18, 2014 at 05:24:12PM -0300, Flavio Leitner wrote: > On Thu, Sep 18, 2014 at 01:18:57PM -0700, Ethan Jackson wrote: > > In our experience, most people actually expect this number to be > > fairly high. For example, our traffic generator runs a little bit of > > traffic to populate cac

Re: [ovs-dev] Openflow 1.4: Eviction mechanism implementation

2014-09-18 Thread Ben Pfaff
As I said before, I would enable eviction if it is configured through the database or through the OpenFlow connection. This does not mean that enabling eviction through OpenFlow would modify the database. I don't think you are looking at the current codebase, on the master branch. The current co

[ovs-dev] debugging OVS

2014-09-18 Thread samantha Andares
Hi, I am getting packets dropped when going out of an OVS bridge. The TX dropped is increased in ovs-dpctl but not at the physical interface level (ifconfig). Can anyone tell me how to enable some OVS debugging so I can find the reason to fix that problem? thanks. sam

Re: [ovs-dev] [ovs-discuss] checking load on OVS

2014-09-18 Thread Ben Pfaff
On Thu, Sep 18, 2014 at 02:17:47PM +0530, Neha Joshi wrote: > I want to check statistics of openvswitch in terms of CPU, load average and > memory. > I found that i need to set *other_config:enable-statistics* to *true* > Can anyone help, how to do this? I mean is there any command or such? ovs-v

Re: [ovs-dev] [PATCH v2] FAQ: Add an entry about reconfiguration

2014-09-18 Thread Ben Pfaff
On Fri, Sep 19, 2014 at 12:24:38AM +0900, YAMAMOTO Takashi wrote: > It seems that the behaviour is not so intuitive. > cf. https://bugs.launchpad.net/neutron/+bug/1346861 > > Signed-off-by: YAMAMOTO Takashi I am not sure that I understand the bug report there. It might be reporting an actual bu

Re: [ovs-dev] [PATCH 1/5 v1] datapath-windows: return TRUE on success in NlAttrValidate

2014-09-18 Thread Nithin Raju
On Sep 18, 2014, at 4:35 AM, Samuel Ghinet wrote: > Hi Nithin, > > Good catch! > > I would normally prefer the validation in a function to be done like: > ret = TRUE; > > if (fail_cond_1) { > log(); > ret = FALSE; > goto done; > } > > if (fail_cond_2) { > log(); > ret = FALSE; > goto

Re: [ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Flavio Leitner
On Thu, Sep 18, 2014 at 01:20:30PM -0700, Alex Wang wrote: > Yes, that is correct, Perfect, thanks! fbl > > Thanks, > > On Thu, Sep 18, 2014 at 1:15 PM, Flavio Leitner wrote: > > > On Thu, Sep 18, 2014 at 01:10:00PM -0700, Alex Wang wrote: > > > On Thu, Sep 18, 2014 at 1:07 PM, Flavio Leitner

Re: [ovs-dev] [PATCH] ofproto: Increase default datapath max_idle time.

2014-09-18 Thread Flavio Leitner
On Thu, Sep 18, 2014 at 01:18:57PM -0700, Ethan Jackson wrote: > In our experience, most people actually expect this number to be > fairly high. For example, our traffic generator runs a little bit of > traffic to populate caches, pauses for a couple of seconds, before > finally starting the main

Re: [ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Alex Wang
Yes, that is correct, Thanks, On Thu, Sep 18, 2014 at 1:15 PM, Flavio Leitner wrote: > On Thu, Sep 18, 2014 at 01:10:00PM -0700, Alex Wang wrote: > > On Thu, Sep 18, 2014 at 1:07 PM, Flavio Leitner wrote: > > > > > On Thu, Sep 18, 2014 at 11:37:08AM -0700, Alex Wang wrote: > > > > When ovs is

Re: [ovs-dev] [PATCH] ofproto: Increase default datapath max_idle time.

2014-09-18 Thread Ethan Jackson
In our experience, most people actually expect this number to be fairly high. For example, our traffic generator runs a little bit of traffic to populate caches, pauses for a couple of seconds, before finally starting the main test. On top of that, we've had some minor complaints from people mana

Re: [ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Flavio Leitner
On Thu, Sep 18, 2014 at 01:10:00PM -0700, Alex Wang wrote: > On Thu, Sep 18, 2014 at 1:07 PM, Flavio Leitner wrote: > > > On Thu, Sep 18, 2014 at 11:37:08AM -0700, Alex Wang wrote: > > > When ovs is running with large topology (e.g. large number of > > > interfaces), the stats and status update t

Re: [ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Alex Wang
On Thu, Sep 18, 2014 at 1:07 PM, Flavio Leitner wrote: > On Thu, Sep 18, 2014 at 11:37:08AM -0700, Alex Wang wrote: > > When ovs is running with large topology (e.g. large number of > > interfaces), the stats and status update to ovsdb become huge and > > normally require multiple run of ovsdb js

Re: [ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Flavio Leitner
On Thu, Sep 18, 2014 at 11:37:08AM -0700, Alex Wang wrote: > When ovs is running with large topology (e.g. large number of > interfaces), the stats and status update to ovsdb become huge and > normally require multiple run of ovsdb jsonrpc message processing > loop to consume. Also, this could cau

[ovs-dev] Original New Cisco Switches,Modules and Firewalls

2014-09-18 Thread Elaine Hu
Original New Cisco Switches,Modules and Firewalls available for sale now. Hello dear, Good day ! Following is Original New Cisco Switches,Modules and Firewalls available for sale now. Any needs of them, please feel free to contact me. Skype: elaine.hu87 Part Number Unit Price Stock Qty WS-

[ovs-dev] [PATCH] jsonrpc: Warn about excessive sending backlog.

2014-09-18 Thread Alex Wang
When ovs is running with large topology (e.g. large number of interfaces), the stats and status update to ovsdb become huge and normally require multiple run of ovsdb jsonrpc message processing loop to consume. Also, this could cause jsonrpc messages backlogged in ovs. This commit adds a warning

Re: [ovs-dev] [PATCH net v2 2/2] openvswitch: restore OVS_FLOW_CMD_NEW notifications

2014-09-18 Thread Pravin Shelar
On Thu, Sep 18, 2014 at 1:31 AM, Nicolas Dichtel wrote: > From: Samuel Gauthier > > Since commit fb5d1e9e127a ("openvswitch: Build flow cmd netlink reply only if > needed."), > the new flows are not notified to the listeners of OVS_FLOW_MCGROUP. > > This commit fixes the problem by using the gen

Re: [ovs-dev] [PATCH net v2 1/2] genetlink: add function genl_has_listeners()

2014-09-18 Thread Pravin Shelar
On Thu, Sep 18, 2014 at 1:31 AM, Nicolas Dichtel wrote: > This function is the counterpart of the function netlink_has_listeners(). > > Signed-off-by: Nicolas Dichtel Looks good. Acked-by: Pravin B Shelar > --- > > v2: add patch 1/2 > > include/net/genetlink.h | 8 > 1 file changed,

[ovs-dev] [PATCH v2] FAQ: Add an entry about reconfiguration

2014-09-18 Thread YAMAMOTO Takashi
It seems that the behaviour is not so intuitive. cf. https://bugs.launchpad.net/neutron/+bug/1346861 Signed-off-by: YAMAMOTO Takashi --- FAQ | 21 + 1 file changed, 21 insertions(+) diff --git a/FAQ b/FAQ index df5ac0e..d9ccc6e 100644 --- a/FAQ +++ b/FAQ @@ -731,6 +731,27 @@

Re: [ovs-dev] [PATCH] ofproto: Increase default datapath max_idle time.

2014-09-18 Thread Flavio Leitner
On Fri, Sep 12, 2014 at 10:03:56AM +1200, Joe Stringer wrote: > The datapath max_idle value determines how long to wait before deleting > an idle datapath flow when operating below the flow_limit. This patch > increases the max_idle to 10 seconds, which allows datapath flows to be > remain cached e

Re: [ovs-dev] Openflow 1.4: Eviction mechanism implementation

2014-09-18 Thread Saloni Jain
Thanks for the suggestion and we have done more investigation on code. We are thinking of implementing eviction on the basis of importance as done in current ovs code for lifetime by following the same algorithm as mentioned in conf.db(5)(Page 33). As suggested by you we can enable eviction by

[ovs-dev] [PATCH v2] datapath: Provide compatibility for kernels up to 3.17

2014-09-18 Thread Thomas Graf
Port datapath to work with kernrels up to 3.17 and use 3.16.2 as the new kernel for CI testing. Tested with 3.14, 3.16.2, and net-next (3.17). Signed-off-by: Thomas Graf Co-authored-by: Madhu Challa --- v2: - Swapped ignore_df local_df compat direction - Provide alloc_netdev() compat macro to

Re: [ovs-dev] [PATCH] datapath-windows: cleanup dump state during instance cleanup

2014-09-18 Thread Eitan Eliahu
Hi Sam, all we need to do is to protect critical variable in the Cleanup handler. In this case specifically we can store the dump state variables in the per process instance (rather than allocating memory) so it will avoid the possible race condition in freeing dynamic memory. Everything else wi

Re: [ovs-dev] [PATCH] datapath-windows: cleanup dump state during instance cleanup

2014-09-18 Thread Samuel Ghinet
Thanks Eitan for clarifications! I have checked the userspace code, there is no call for DuplicateHandle. I am not sure whether we should put checks in kernel code now for a possible future usage of this, or simply leave it to be handled later - if / when such a case will appear. Sam _

Re: [ovs-dev] [PATCH] datapath-windows: NetLink kernel side, Event subscription and notification

2014-09-18 Thread Samuel Ghinet
Looks good to me! Acked-by: Samuel Ghinet Date: Wed, 17 Sep 2014 23:12:05 -0700 From: Eitan Eliahu To: dev@openvswitch.org Subject: [ovs-dev] [PATCH] datapath-windows: NetLink kernel side, Event subscription and notification Message-ID: <141102072

Re: [ovs-dev] [PATCH 5/5 v1] datapath-windows: add OVS_DP_CMD_SET and OVS_DP_CMD_GET transaction support

2014-09-18 Thread Samuel Ghinet
Hey Nithin, I think this could work refactored a bit (such as to better separate commands), but we should postpone refactor for a later time. Acked-by: Samuel Ghinet Date: Tue, 16 Sep 2014 19:06:11 -0700 From: Nithin Raju To: dev@openvswitch.org, sghi.

Re: [ovs-dev] [PATCH 4/5 v1] extract-odp-netlink-windows-dp-h: add definition of IFNAMSIZ

2014-09-18 Thread Samuel Ghinet
Acked-by: Samuel Ghinet Date: Tue, 16 Sep 2014 19:06:10 -0700 From: Nithin Raju To: dev@openvswitch.org, sghi...@cloudbasesolutions.com, elia...@vmware.com, ankursha...@vmware.com Subject: [ovs-dev] [PATCH 4/5 v1] extract-odp-netlink-windows-dp-h:

Re: [ovs-dev] [PATCH 1/5 v1] datapath-windows: return TRUE on success in NlAttrValidate

2014-09-18 Thread Samuel Ghinet
Hi Nithin, Good catch! I would normally prefer the validation in a function to be done like: ret = TRUE; if (fail_cond_1) { log(); ret = FALSE; goto done; } if (fail_cond_2) { log(); ret = FALSE; goto done; } done: return ret; It would be a bit more text, but I think it improves c

Re: [ovs-dev] [PATCH] datapath-windows: cleanup dump state during instance cleanup

2014-09-18 Thread Eitan Eliahu
No Sam, Duplication of handles is done through the calling DuplicateHandle((). I am not sure if OVS UM calls it. The general case if that one handle corresponds to a single file object. Thanks, Eitan From: Samuel Ghinet [mailto:sghi...@cloudbasesolutions.com] Sent: Thursday, September 18, 2014 4

Re: [ovs-dev] [PATCH] datapath-windows: cleanup dump state during instance cleanup

2014-09-18 Thread Samuel Ghinet
Hi Eitan, By duplication of HANDLES, you mean assignment (like, "HANDLE a = CreateFile(params); HANDLE b = a;")? We do have cases in the vswitchd where we keep multiple duplicates / instances of the same HANDLE, or where we create children processes that may inherit the parent handle? Thanks,

Re: [ovs-dev] [PATCH] datapath-windows: cleanup dump state during instance cleanup

2014-09-18 Thread Eitan Eliahu
Hi Sam, As far as I understand when a process calls CreatFile the system will create a file handle and return it to the process. The file handle (in UM) is associated with a file object in (KM). Both objects are valid until the process closes the handle or terminates. This means that if the devi

Re: [ovs-dev] [PATCH v2] datapath-windows: Netlink command: vport dump

2014-09-18 Thread Samuel Ghinet
I meant to send it to ML. From: Samuel Ghinet Sent: Wednesday, September 17, 2014 7:46 PM To: Eitan Eliahu Subject: RE: [PATCH v2] datapath-windows: Netlink command: vport dump Hi Eitan, Yes, you're right, I forgot to check the return values from the NlMsg

Re: [ovs-dev] [PATCH] datapath-windows: cleanup dump state during instance cleanup

2014-09-18 Thread Samuel Ghinet
Eitan, > In case that a handle is duplicated in user mode there will be multiple file > handles per file object associated with the handle returned by the system > when the device was opened. As I remember when working with userspace HANDLEs and FILE_OBJECT ptrs in kernel, even though only one

[ovs-dev] checking load on OVS

2014-09-18 Thread Neha Joshi
Hii all, I want to check statistics of openvswitch in terms of CPU, load average and memory. I found that i need to set *other_config:enable-statistics* to *true* Can anyone help, how to do this? I mean is there any command or such? Thanks, neha ___ de

[ovs-dev] [PATCH net v2 1/2] genetlink: add function genl_has_listeners()

2014-09-18 Thread Nicolas Dichtel
This function is the counterpart of the function netlink_has_listeners(). Signed-off-by: Nicolas Dichtel --- v2: add patch 1/2 include/net/genetlink.h | 8 1 file changed, 8 insertions(+) diff --git a/include/net/genetlink.h b/include/net/genetlink.h index 93695f0e22a5..af10c2cf8a1d

[ovs-dev] [PATCH net v2 2/2] openvswitch: restore OVS_FLOW_CMD_NEW notifications

2014-09-18 Thread Nicolas Dichtel
From: Samuel Gauthier Since commit fb5d1e9e127a ("openvswitch: Build flow cmd netlink reply only if needed."), the new flows are not notified to the listeners of OVS_FLOW_MCGROUP. This commit fixes the problem by using the genl function, ie genl_has_listerners() instead of netlink_has_listeners