[ovs-dev] [PATCH 03/17] nx-match: Reject bad wildcard combinations.

2014-09-17 Thread Ben Pfaff
A log message has warned that this was going to happen for some time, and newer OpenFlow versions require this behavior. The test updates fix this behavior in our testsuite. Signed-off-by: Ben Pfaff b...@nicira.com --- lib/nx-match.c | 24 - lib/ofp-errors.h | 3 +-

[ovs-dev] [PATCH 05/17] nx-match: Encode dp_hash and recirc_id in OXM also.

2014-09-17 Thread Ben Pfaff
dp_hash and recirc_id are specific to OVS, but that doesn't mean that we shouldn't encode them into flow matches when OXM is used in OpenFlow 1.2 and later. Signed-off-by: Ben Pfaff b...@nicira.com --- lib/nx-match.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git

[ovs-dev] [PATCH 06/17] meta-flow: Autogenerate mf_field data structures.

2014-09-17 Thread Ben Pfaff
This is a first step toward improving the abstraction of OXM and NXM in the tree. As an immediate improvement, this commit removes all of the definitions of the OXM and NXM constants from the top-level header files, because they are no longer used anywhere. Signed-off-by: Ben Pfaff

[ovs-dev] [PATCH 08/17] nx-match: Move all knowledge of OXM/NXM here.

2014-09-17 Thread Ben Pfaff
This improves the general abstraction of OXM/NXM by eliminating direct knowledge of it from the meta-flow code and other places. Some function renaming might be called for; for example, mf_oxm_header() may not be the best name now that the function is implemented within nx-match. However, these

[ovs-dev] [PATCH 07/17] util: New function bitwise_scan().

2014-09-17 Thread Ben Pfaff
This will acquire its first user in an upcoming commit. This implementation is not optimized at all but it doesn't matter for the purpose for which I intend to initially use it. Signed-off-by: Ben Pfaff b...@nicira.com --- lib/util.c | 29 + lib/util.h | 2 ++ 2

[ovs-dev] [PATCH 10/17] ofp-actions: Better support OXM in Copy-Field action.

2014-09-17 Thread Ben Pfaff
The OpenFlow 1.5 (draft) Copy-Field action has two OXM headers, one after the other. Until now, Open vSwitch has implemented these as a pair of ovs_be32 membes, which meant that only 32-bit OXM could be supported. This commit changes the implementation to use nx_pull_header(), which means that

[ovs-dev] [PATCH 09/17] ovs-ofctl: Encode cookies in OXM-compliant manner.

2014-09-17 Thread Ben Pfaff
NXM/OXM are only supposed to put 1-bits in a value if the corresponding bit in the mask is a 1-bit, but in the case of cookie matching, e.g. ovs-ofctl del-flows br0 cookie=0x3/0x1 ovs-ofctl would encode a bad OXM. This fixes the problem. (The test ofproto - del flows based on cookie mask in

[ovs-dev] [PATCH 16/17] ofp-actions: Support experimenter OXMs in Nicira extensions.

2014-09-17 Thread Ben Pfaff
Some of the Nicira extension actions include fixed-size 32-bit members that designate NXM fields. These actions can't accommodate 64-bit experimenter OXMs, so we need to figure out some kind of solution. This commit does that, in different ways for different actions. For some actions, I did not

[ovs-dev] [PATCH 11/17] ofp-actions: Support OF1.5 (draft) masked Set-Field, merge with reg_load.

2014-09-17 Thread Ben Pfaff
OpenFlow 1.5 (draft) extends the OFPAT_SET_FIELD action originally introduced in OpenFlow 1.2 so that it can set not just entire fields but any subset of bits within a field as well. This commit adds support for that feature when OpenFlow 1.5 is used. With this feature, OFPAT_SET_FIELD becomes a

[ovs-dev] [PATCH 13/17] nx-match: Speak of 'class' instead of 'vendor' for OXM/NXM.

2014-09-17 Thread Ben Pfaff
OXM renamed the 'vendor' field from NXM to the 'class', and uses the term experimenter, which OVS usually renders as vendor for historical reasons, as part of the extended 64-bit OXMs. To reduce confusion, this commit adopts the OXM terminology for class. Signed-off-by: Ben Pfaff b...@nicira.com

[ovs-dev] [PATCH 15/17] nx-match: Add support for experimenter OXM.

2014-09-17 Thread Ben Pfaff
OpenFlow 1.2+ defines a means for vendors to define vendor-specific OXM fields, called experimenter OXM. These OXM fields are expressed with a 64-bit OXM header instead of the 32-bit header used for standard OXM (and NXM). Until now, OVS has not implemented experimenter OXM, and indeed we have

[ovs-dev] [PATCH 14/17] util: Make hexits_value() support 64-bit integers too.

2014-09-17 Thread Ben Pfaff
Signed-off-by: Ben Pfaff b...@nicira.com --- lib/json.c | 5 +++-- lib/nx-match.c | 7 +-- lib/util.c | 20 lib/util.h | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/json.c b/lib/json.c index 9c819d7..8114972 100644 ---

[ovs-dev] [PATCH 17/17] [RFC] flow: Support OF1.5+ (draft) actset_output field.

2014-09-17 Thread Ben Pfaff
This field allows a flow table to match on the output port currently in the action set. As-is, this patch has a number of deficiencies. I will fix them; I am posting for now because I feel like I have sat on this patch series for long enough. Known problems: * When the action set contains

[ovs-dev] [PATCH 12/17] nx-match: Use nx_put_header() internally for encoding flow matches.

2014-09-17 Thread Ben Pfaff
This will make it easier to support 64-bit OXM experimenter fields. Signed-off-by: Ben Pfaff b...@nicira.com --- lib/nx-match.c | 312 + 1 file changed, 116 insertions(+), 196 deletions(-) diff --git a/lib/nx-match.c b/lib/nx-match.c index

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-17 Thread Jiri Pirko
Thu, Sep 04, 2014 at 10:46:28PM CEST, pshe...@nicira.com wrote: On Thu, Sep 4, 2014 at 5:33 AM, Jiri Pirko j...@resnulli.us wrote: Wed, Sep 03, 2014 at 08:41:39PM CEST, pshe...@nicira.com wrote: On Wed, Sep 3, 2014 at 2:24 AM, Jiri Pirko j...@resnulli.us wrote: After this, flow related

[ovs-dev] set_field:222-pkt_mark does not take effect

2014-09-17 Thread Nirmalanand Jebakumar
Hello everyone, For some implementation of ours, we need to mark the socket buffer(sk_buff-skb_mark) using flows in an openvswitch (v 2.0) before sending it through an egress vxlan port on the OVS, for setting ToS and CoS values using iptables command later. VXLAN offload is not enabled on the

[ovs-dev] [PATCH 0/2] RFC: Conntrack v2

2014-09-17 Thread Thomas Graf
Justin, I've extended your conntrack path with zone support. It's unfinished and still has open issues such as how to calculate the internal sw_flow_actions length. Storing nf_conn in the actions is somewhat of a mess due to the possible misalignment of the pointer (only 4byte alignment is

[ovs-dev] [PATCH 1/2] RFC: Add support for connection tracking.

2014-09-17 Thread Thomas Graf
From: Justin Pettit jpet...@nicira.com An RFC to get back early feedback on exposing Linux's kernel connection tracker to OVS. The code has a few rough spots that will be addressed in the next version: - Need better interface than setting individual flags for the state. - Need support

[ovs-dev] [PATCH 2/2] datapath: Add conntrack zone support

2014-09-17 Thread Thomas Graf
Work-in-Progress Attach conntrack template to packet if a non standard zone setting has been provided. Conntrack template is stored in action. --- datapath/actions.c| 12 ++- datapath/datapath.c | 18 +++-- datapath/flow.h

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

2014-09-17 Thread Samuel Ghinet
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 work properly. This patch makes the fix: typedef enum

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

2014-09-17 Thread Samuel Ghinet
Functionality for vport dump. Later, when we will add more netlink dump commands, some common code will need to be split to functions. Notes: a) the current implementation of vport assumes the datapath feature multiple upcall pids is not used. A single upcall pid is used instead. c) the vxlan

Re: [ovs-dev] [PATCH 2/5 v1] datapath-windows: add OvsComareString() to compare strings

2014-09-17 Thread Samuel Ghinet
Nithin, I don't think there's a need to implement such a function. You can use memcmp, which behaves quite like strncmp. Regards, Sam From: Nithin Raju [nit...@vmware.com] Sent: Wednesday, September 17, 2014 5:06 AM To: dev@openvswitch.org; Samuel Ghinet;

Re: [ovs-dev] [PATCH 3/5 v1] lib/netlink-socket.c: add support for nl_transact() on Windows

2014-09-17 Thread Samuel Ghinet
Hello Nithin, This patch looks good! Acked-by: Samuel Ghinet sghi...@cloudbasesolutions.com From: Nithin Raju [nit...@vmware.com] Sent: Wednesday, September 17, 2014 5:06 AM To: dev@openvswitch.org; Samuel Ghinet; elia...@vmware.com;

Re: [ovs-dev] [PATCH 3/5 v1] lib/netlink-socket.c: add support for nl_transact() on Windows

2014-09-17 Thread Samuel Ghinet
Oh, except a little typo in the commit message: Eg. the Windows kernel does not send embed an error Sam From: Samuel Ghinet Sent: Wednesday, September 17, 2014 4:34 PM To: Nithin Raju; dev@openvswitch.org; elia...@vmware.com; ankursha...@vmware.com

Re: [ovs-dev] [PATCH 3/5 v1] lib/netlink-socket.c: add support for nl_transact() on Windows

2014-09-17 Thread Eitan Eliahu
Hi Nithin, look good. Few comments: if (request_nlmsg-nlmsg_seq != reply_nlmsg-nlmsg_seq) Unlink the Linux implementation the above condition should never happen. I would put just an assert there. Before accessing request_nlmsg we need to check its size against the reply_len parameter

Re: [ovs-dev] [PATCH 2/5 v1] datapath-windows: add OvsComareString() to compare strings

2014-09-17 Thread Nithin Raju
On Sep 17, 2014, at 6:16 AM, Samuel Ghinet sghi...@cloudbasesolutions.com wrote: I don't think there's a need to implement such a function. You can use memcmp, which behaves quite like strncmp. hi Samuel, Thanks for the pointer. I was trying to use Rtl* functions, but if memcmp() works, that

[ovs-dev] ASIA INFO / cisco supplier / switch available for sale

2014-09-17 Thread Jolly Wang
Use this area to offer a short teaser of your email's content. Text here will show in the preview area of some email clients. Is this email not displaying correctly? View it in your browser

Re: [ovs-dev] [PATCH 2/5 v1] datapath-windows: add OvsComareString() to compare strings

2014-09-17 Thread Eitan Eliahu
How about using RtlEqualString() ? Str1.MaximumLength = 16; Str1.Buffer = AnsiString; if (!RtlEqualString( str1, str2, TRUE ){ } -Original Message- From: Nithin Raju Sent: Wednesday, September 17, 2014 8:34 AM To: Samuel Ghinet Cc:

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

2014-09-17 Thread Nicolas Dichtel
From: Samuel Gauthier samuel.gauth...@6wind.com 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 checking that there are listeners in the actual

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

2014-09-17 Thread Eitan Eliahu
Hi Sam, Looks good. Some comments: Shouldn't we check the return code from NlMsgPutTailU32() ? Do we check the size of the out message before we populate it with the port NL attributes? Thanks, Eitan -Original Message- From: Samuel Ghinet [mailto:sghi...@cloudbasesolutions.com] Sent:

Re: [ovs-dev] [PATCH v2 1/2] datapath: Add support for OVS_FLOW_ATTR_PROBE.

2014-09-17 Thread Pravin Shelar
On Fri, Sep 12, 2014 at 11:24 AM, Jarno Rajahalme jrajaha...@nicira.com wrote: This new flag is useful for suppressing error logging while probing for datapath features using flow commands. For backwards compatibility reasons the commands are executed normally, but error logging is

Re: [ovs-dev] [PATCHv5 00/12] Revalidate flows with unique identifiers.

2014-09-17 Thread Ben Pfaff
I'll try to review the remaining patches this afternoon. On Wed, Sep 17, 2014 at 05:32:40PM +1200, Joe Stringer wrote: Bump. Any chance of some feedback? On 15 September 2014 14:25, Joe Stringer joestrin...@nicira.com wrote: Patches #1-4 have been reviewed and Ack'd by Ben, which I have

Re: [ovs-dev] set_field:222-pkt_mark does not take effect

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 05:12:20PM +0530, Nirmalanand Jebakumar wrote: In this link below, I read that pkt_mark is supported as a MATCH field. Does OVS support pkt_mark as a SET action? Yes. The command I ran is /usr/bin/ovs-ofctl add-flow -O Openflow13 br0

Re: [ovs-dev] set_field:222-pkt_mark does not take effect

2014-09-17 Thread Nirmalanand Jebakumar
Hi Ben, The ovs-dpctl command output does not show any skb_mark being set for the datapath flow: # ovs-dpctl dump-flows skb_priority(0),in_port(4),eth(src=52:54:00:74:f9:41,dst=52:54:00:aa:93:9e),eth_type(0x0800),ipv4(src=

[ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Alin Serdean
The patch contains the necessary modifications to compile and also to run under MSVC. Added the files to the build system and also changed dpif_linux to be under a more generic name dpif_windows. Added a TODO under the windows part in case we want to implement another counterpart for epoll

[ovs-dev] [PATCH] ofproto: Warn about excessive rule counts in OpenFlow tables.

2014-09-17 Thread Ethan Jackson
Frequently we've run into controller bugs which result in hundreds of thousands, or even millions of rules being installed in an OpenFlow table. This isn't something trouble-shooters naturally think of to check for, so it's nice to have a low rate warning message to hint at the potential problem.

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Eitan Eliahu
Hi Alin, should we change the file name to dpif_netlink? Thanks, Eitan -Original Message- From: Alin Serdean [mailto:aserd...@cloudbasesolutions.com] Sent: Wednesday, September 17, 2014 1:11 PM To: Eitan Eliahu; Nithin Raju; 'Ben Pfaff'; dev@openvswitch.org Subject: [ovs-dev] [PATCH]

Re: [ovs-dev] [ovs-dev 1/3] ovs-dev.py: Add aggressive compile optimization options.

2014-09-17 Thread Ethan Jackson
FYI All I've dropped this patch. Ethan On Mon, Sep 8, 2014 at 2:42 PM, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 08, 2014 at 12:51:11PM -0700, Ethan Jackson wrote: Is there any point to testing OVS in a configuration that we won't distribute? This is a subject in which there could

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Ben Pfaff
I'm happy to do that. I don't care whether it happens before or after or simultaneously with the change under consideration. Did you review the change? On Wed, Sep 17, 2014 at 08:30:57PM +, Eitan Eliahu wrote: Hi Alin, should we change the file name to dpif_netlink? Thanks, Eitan

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Alin Serdean
I can change the filename after the patch gets merged no problem :). Thank you, Alin. -Mesaj original- De la: Ben Pfaff [mailto:b...@nicira.com] Trimis: Wednesday, September 17, 2014 11:38 PM Către: Eitan Eliahu Cc: Alin Serdean; Nithin Raju; dev@openvswitch.org Subiect: Re: [ovs-dev]

Re: [ovs-dev] [PATCH] ofproto: Warn about excessive rule counts in OpenFlow tables.

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 01:25:19PM -0700, Ethan Jackson wrote: Frequently we've run into controller bugs which result in hundreds of thousands, or even millions of rules being installed in an OpenFlow table. This isn't something trouble-shooters naturally think of to check for, so it's nice

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Eitan Eliahu
Once Alin confirms we didn't break anything with Linux we are ready to go. Thanks, Eitan -Original Message- From: Ben Pfaff [mailto:b...@nicira.com] Sent: Wednesday, September 17, 2014 1:38 PM To: Eitan Eliahu Cc: Alin Serdean; Nithin Raju; dev@openvswitch.org Subject: Re: [ovs-dev]

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Alin Serdean
Did a full clone-autoreconf-make-make check under Linux did not see any issues. Alin. -Mesaj original- De la: Eitan Eliahu [mailto:elia...@vmware.com] Trimis: Wednesday, September 17, 2014 1:47 PM Către: Ben Pfaff Cc: Alin Serdean; Nithin Raju; dev@openvswitch.org Subiect: RE:

Re: [ovs-dev] set_field:222-pkt_mark does not take effect

2014-09-17 Thread Ben Pfaff
As it turns out, when output goes through a tunnel, the pkt_mark comes from the tunnel configuration. Currently, OVS forces it to 1 for IPSEC tunnel traffic and 0 for other tunnel traffic. This could be changed, and it probably should, because it is surprising, but this is the first that I've

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Eitan Eliahu
Acked-by: Eitan Eliahu elia...@vmware.com -Original Message- From: Alin Serdean [mailto:aserd...@cloudbasesolutions.com] Sent: Wednesday, September 17, 2014 1:50 PM To: Eitan Eliahu; Ben Pfaff Cc: Nithin Raju; dev@openvswitch.org Subject: RE: [ovs-dev] [PATCH] Changes needed for

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 08:11:08PM +, Alin Serdean wrote: The patch contains the necessary modifications to compile and also to run under MSVC. Added the files to the build system and also changed dpif_linux to be under a more generic name dpif_windows. Added a TODO under the windows

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Nithin Raju
We can do the file re-naming after this checkin. I'm reviewing the change. Let me get back in a few minutes. thanks, Nithin On Sep 17, 2014, at 1:38 PM, Ben Pfaff b...@nicira.com wrote: I'm happy to do that. I don't care whether it happens before or after or simultaneously with the change

[ovs-dev] [PATCH] ofproto-dpif-xlate: Wildcard skb_priority if QoS is disabled

2014-09-17 Thread Daniele Di Proietto
This optimization should give a small performance benefit to the userspace datapath. Signed-off-by: Daniele Di Proietto ddiproie...@vmware.com --- ofproto/ofproto-dpif-xlate.c | 25 ++-- tests/classifier.at | 20 +++ tests/dpif-netdev.at | 16 ++---

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Alin Serdean
I will rebase and also the filename change in V2. -Mesaj original- De la: Ben Pfaff [mailto:b...@nicira.com] Trimis: Wednesday, September 17, 2014 2:06 PM Către: Alin Serdean Cc: Eitan Eliahu; 'Nithin Raju'; dev@openvswitch.org Subiect: Re: [ovs-dev] [PATCH] Changes needed for dpif-linux

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

2014-09-17 Thread Pravin Shelar
On Wed, Sep 17, 2014 at 9:13 AM, Nicolas Dichtel nicolas.dich...@6wind.com wrote: From: Samuel Gauthier samuel.gauth...@6wind.com 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

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Wildcard skb_priority if QoS is disabled

2014-09-17 Thread Jarno Rajahalme
Looks good to me, thanks! Acked-by: Jarno Rajahalme jrajaha...@nicira.com Pushed to master, Jarno On Sep 17, 2014, at 2:14 PM, Daniele Di Proietto ddiproie...@vmware.com wrote: This optimization should give a small performance benefit to the userspace datapath. Signed-off-by: Daniele

Re: [ovs-dev] [PATCH] ofproto: Warn about excessive rule counts in OpenFlow tables.

2014-09-17 Thread Ethan Jackson
I think something like that would be useful. However, once the number of flows gets really high, I like the idea of having something that's a bit more in your face. When debugging these things, people tend to tail the OVS log file instead of grepping for warnings and error messages. I think

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

2014-09-17 Thread Pravin Shelar
On Wed, Sep 17, 2014 at 2:56 PM, Pravin Shelar pshe...@nicira.com wrote: On Wed, Sep 17, 2014 at 9:13 AM, Nicolas Dichtel nicolas.dich...@6wind.com wrote: From: Samuel Gauthier samuel.gauth...@6wind.com Since commit fb5d1e9e127a (openvswitch: Build flow cmd netlink reply only if needed.),

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-17 Thread Jesse Gross
On Wed, Sep 17, 2014 at 1:34 AM, Jiri Pirko j...@resnulli.us wrote: Thu, Sep 04, 2014 at 10:46:28PM CEST, pshe...@nicira.com wrote: On the other hand if vswitchd uses common interface (switchdev) there is no need to extend ovs kernel interface. For example specifying extra metadata, like (sw

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Nithin Raju
On Sep 17, 2014, at 1:11 PM, Alin Serdean aserd...@cloudbasesolutions.com wrote: The patch contains the necessary modifications to compile and also to run under MSVC. Added the files to the build system and also changed dpif_linux to be under a more generic name dpif_windows. Added a

Re: [ovs-dev] [PATCH 1/2] dpif-netdev: Introduce netdev_flow_key_* functions

2014-09-17 Thread Jarno Rajahalme
Looks good, thanks! Acked-by: Jarno Rajahalme jrajaha...@nicira.com pushed to master, Jarno On Sep 5, 2014, at 5:10 PM, Daniele Di Proietto ddiproie...@vmware.com wrote: netdev_flow_key is a miniflow with the following constraints: 1) It is used only inside dpif-netdev.c. 2) It always

Re: [ovs-dev] [PATCH 2/2] dpif-netdev: Store miniflow length in exact match cache

2014-09-17 Thread Jarno Rajahalme
Looks good, thanks again! Acked-by: Jarno Rajahalme jrajaha...@nicira.com pushed to master, Jarno On Sep 5, 2014, at 5:10 PM, Daniele Di Proietto ddiproie...@vmware.com wrote: This optimization is done to avoid calling count_1bits(), which, if the popcnt istruction, is not available

Re: [ovs-dev] [PATCH 2/2] dpif-netdev: Store miniflow length in exact match cache

2014-09-17 Thread Daniele Di Proietto
Thanks! On 9/17/14, 3:19 PM, Jarno Rajahalme jrajaha...@nicira.com wrote: Looks good, thanks again! Acked-by: Jarno Rajahalme jrajaha...@nicira.com pushed to master, Jarno On Sep 5, 2014, at 5:10 PM, Daniele Di Proietto ddiproie...@vmware.com wrote: This optimization is done to avoid

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

2014-09-17 Thread Eitan Eliahu
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 elia...@vmware.com --- datapath-windows/ovsext/Datapath.c | 103

Re: [ovs-dev] OVS-on-Hyper-v: items to discuss for 9/16 IRC meeting

2014-09-17 Thread Nithin Raju
Just wanted to summarize the meeting for future reference: Attendees: Samuel Ghinet, Alin Serdean, Ankur Sharma, Eitan Eliahu, Nithin Raju 1. statuses: DP commands, VPORT commands, Flow commands, Event commands - Review for DP commands SET_DP and GET_DP along with transaction semantics has

Re: [ovs-dev] [PATCHv5 05/12] upcall: Create ukeys in handler threads.

2014-09-17 Thread Ben Pfaff
On Mon, Sep 15, 2014 at 02:25:11PM +1200, Joe Stringer wrote: Currently, when a revalidator thread first dumps a flow, it creates a 'udpif_key' object and caches a copy of a kernel flow key. This allows us to perform lookups in the classifier to attribute stats and validate the correctness of

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Alin Serdean
Hi Nithin, Thank you for looking over the patch. 1. I did not change the dpif_linux_vport* functions because that means also touching netdev-linux.c. If that is ok with Ben, I can also add them to a v2 of the patch. 2. I will look over the spacing in v2. Thank you again, Nithin. -Mesaj

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 10:33:04PM +, Alin Serdean wrote: 1. I did not change the dpif_linux_vport* functions because that means also touching netdev-linux.c. If that is ok with Ben, I can also add them to a v2 of the patch. I only see one reference to dpif_linux_vport* from

Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to compile under MSVC

2014-09-17 Thread Alin Serdean
Ok will update it to dpif_netlink_vport*. -Mesaj original- De la: Ben Pfaff [mailto:b...@nicira.com] Trimis: Wednesday, September 17, 2014 3:37 PM Către: Alin Serdean Cc: Nithin Raju; Eitan Eliahu; dev@openvswitch.org Subiect: Re: [ovs-dev] [PATCH] Changes needed for dpif-linux to

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

2014-09-17 Thread Nithin Raju
On Sep 17, 2014, at 11:12 PM, Eitan Eliahu elia...@vmware.com 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

Re: [ovs-dev] [PATCHv5 06/12] upcall: Revalidate using cache of mask, actions.

2014-09-17 Thread Ben Pfaff
On Mon, Sep 15, 2014 at 02:25:12PM +1200, Joe Stringer wrote: This allows us to ignore most fields of a flow_dump, requiring only the flow key for looking up the ukey. Fetching flows can also be avoided in the corner case where a flow is missed from a dump but revalidation is required. A

Re: [ovs-dev] [PATCHv5 07/12] hash: Add 128-bit murmurhash.

2014-09-17 Thread Ben Pfaff
On Mon, Sep 15, 2014 at 02:25:13PM +1200, Joe Stringer wrote: Add the 128-bit murmurhash by Austin Appleby, for 32-bit systems from: http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp Signed-off-by: Joe Stringer joestrin...@nicira.com Why does the loop in hash_words128

[ovs-dev] [PATCH] datapath: Remove support to set vport stats.

2014-09-17 Thread Pravin B Shelar
This was required for old compatibility code. Now vswitchd has dropped it. This support was always deprecated, so finally removing it. Signed-off-by: Pravin B Shelar pshe...@nicira.com --- datapath/datapath.c | 8 datapath/vport.c| 46 ++

Re: [ovs-dev] [PATCH] RFC: Add support for connection tracking.

2014-09-17 Thread Madhu Challa
Hi Justin, I got a chance to try out your code with the example flows and measure raw packet throughput with and without connection tracking. The code works and the performance numbers look pretty good. I ran two sets of tests both with 4 iptable rules in chain input and 8 in chain forward, all

Re: [ovs-dev] [PATCHv5 08/12] dpif: Add Unique flow identifiers.

2014-09-17 Thread Ben Pfaff
On Mon, Sep 15, 2014 at 02:25:14PM +1200, Joe Stringer wrote: One of the limiting factors on the number of flows that can be supported in the datapath is the overhead of assembling flow dump messages in the datapath. This patch adds a new alternative to dumping the key, mask and actions from

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

2014-09-17 Thread Pravin Shelar
On Tue, Sep 16, 2014 at 10:44 AM, Thomas Graf tg...@noironetworks.com wrote: 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). Thanks for working on this. I have couple of comments. Signed-off-by:

Re: [ovs-dev] [PATCHv5 08/12] dpif: Add Unique flow identifiers.

2014-09-17 Thread Joe Stringer
On 18 September 2014 11:13, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 15, 2014 at 02:25:14PM +1200, Joe Stringer wrote: One of the limiting factors on the number of flows that can be supported in the datapath is the overhead of assembling flow dump messages in the datapath. This patch

Re: [ovs-dev] [PATCH] ofproto: Warn about excessive rule counts in OpenFlow tables.

2014-09-17 Thread Ben Pfaff
I'm OK with it, I'll take your word for it that it's a better approach. Acked-by: Ben Pfaff b...@nicira.com On Wed, Sep 17, 2014 at 03:04:11PM -0700, Ethan Jackson wrote: I think something like that would be useful. However, once the number of flows gets really high, I like the idea of having

Re: [ovs-dev] [PATCHv5 05/12] upcall: Create ukeys in handler threads.

2014-09-17 Thread Joe Stringer
Thanks for the review, On 18 September 2014 10:33, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 15, 2014 at 02:25:11PM +1200, Joe Stringer wrote: Currently, when a revalidator thread first dumps a flow, it creates a 'udpif_key' object and caches a copy of a kernel flow key. This allows us

Re: [ovs-dev] [PATCHv5 06/12] upcall: Revalidate using cache of mask, actions.

2014-09-17 Thread Joe Stringer
On 18 September 2014 10:53, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 15, 2014 at 02:25:12PM +1200, Joe Stringer wrote: This allows us to ignore most fields of a flow_dump, requiring only the flow key for looking up the ukey. Fetching flows can also be avoided in the corner case where a

Re: [ovs-dev] [PATCHv5 07/12] hash: Add 128-bit murmurhash.

2014-09-17 Thread Joe Stringer
On 18 September 2014 11:03, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 15, 2014 at 02:25:13PM +1200, Joe Stringer wrote: Add the 128-bit murmurhash by Austin Appleby, for 32-bit systems from: http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp Signed-off-by: Joe

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

2014-09-17 Thread Joe Stringer
Thanks for the review, comments inline On 17 September 2014 17:37, Pravin Shelar pshe...@nicira.com wrote: On Wed, Sep 10, 2014 at 3:16 AM, Joe Stringer joestrin...@nicira.com wrote: Reduce duplicate code by using nla_policy and nla_parse_strict(). Thanks for simplifying this code. I have

[ovs-dev] (no subject)

2014-09-17 Thread Alin Serdean
Unfortunately there some special characters in dpif-linux.c that do not allow me to send the patch normally. Trying via attachment. Short description: The patch contains the necessary modifications to compile and also to run under MSVC. Added the files to the build system and also changed

Re: [ovs-dev] [RFC] Proposal for enhanced select groups

2014-09-17 Thread Simon Horman
On Thu, Sep 11, 2014 at 05:46:03PM -0700, Jesse Gross wrote: On Sun, Sep 7, 2014 at 7:18 PM, Simon Horman simon.hor...@netronome.com wrote: On Fri, Sep 05, 2014 at 12:07:17PM -0700, Jesse Gross wrote: On Thu, Sep 4, 2014 at 12:28 AM, Simon Horman simon.hor...@netronome.com wrote: On

[ovs-dev] [PATCH/RFC repost 0/8] Open vSwtich ODP Select Group Action

2014-09-17 Thread Simon Horman
[repost with correct dev@openvswitch.org address] Hi, the purpose of this patch-set is to provide a prototype of a select group action in the Open vSwitch datapath. And the motivation for that is to allow offloading of selection either in the datapath or by any hooks provided by the datapath for

[ovs-dev] [PATCH/RFC repost 1/8] odp: select group action attributes

2014-09-17 Thread Simon Horman
This is the core of a proposed ODP select group action. It models OpenFlow select groups without any extensions. Further work: We believe there is scope to add OVS_SELECT_GROUP_ATTR_* attributes to supply parameters to the selection method: for example which selection algorithm to use. This

[ovs-dev] [PATCH/RFC repost 2/8] netlink: Allow suppression of warnings for duplicate attributes

2014-09-17 Thread Simon Horman
Add a multiple field to struct nl_policy which if set suppresses warning of duplicate attributes in nl_parse_nested(). As is the case without this patch only the last occurrence of an attribute is stored in attrs by nl_parse_nested(). As such if the multiple field of struct nl_policy is set then

[ovs-dev] [PATCH/RFC repost 3/8] odp-util: formatting of datapath select group action

2014-09-17 Thread Simon Horman
Allow formatting of select group action. This is used when pretty-printing datapath flows. Subsequent patches will add support for the select group action to the datapath and ovs-vswtichd. Signed-off-by: Simon Horman simon.hor...@netronome.com --- lib/odp-util.c | 67

[ovs-dev] [PATCH/RFC repost 4/8] datapath: execution of select group action

2014-09-17 Thread Simon Horman
Allow execution of select group action in the datapath. A subsequent patch will add validation and copying of the select group action in the datapath. The selection algorithm used is based on the RSS hash. This was chosen because it resembles the algorithm currently used by the implementation of

[ovs-dev] [PATCH/RFC repost 5/8] datapath: Move last_action() helper to datapath.h

2014-09-17 Thread Simon Horman
This is in preparation for using last_action() from more than one C file as part of supporting an odp select group action. Signed-off-by: Simon Horman simon.hor...@netronome.com --- datapath/actions.c | 6 -- datapath/datapath.h | 5 + 2 files changed, 5 insertions(+), 6 deletions(-)

[ovs-dev] [PATCH/RFC repost 8/8] hack: ofproto: enable odp select action

2014-09-17 Thread Simon Horman
This is a quick hack to enable the datapath group select action. It is in lieu of some combination of: * probing * run-time configuration by the end-use. * run-time heuristic to use the action as appropriate Signed-off-by: Simon Horman simon.hor...@netronome.com --- ofproto/ofproto-dpif-xlate.c

[ovs-dev] [PATCH/RFC repost 6/8] datapath: validation of select group action

2014-09-17 Thread Simon Horman
Allow validation and copying of select group actions. This completes the prototype select group action implementation in the datapath. Subsequent patches will add support to ovs-vswtichd. Signed-off-by: Simon Horman simon.hor...@netronome.com --- datapath/flow_netlink.c | 102

[ovs-dev] [PATCH/RFC repost 7/8] ofproto: translate datapath select group action

2014-09-17 Thread Simon Horman
This add support for the select group action to ovs-vswtichd. This new feature is currently disabled in xlate_select_group() because ctx-xbridge-dp_select_group is always false. This patch is a prototype and has several limitations: * It assumes that no actions follow a select group action

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

2014-09-17 Thread Pravin B Shelar
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. Signed-off-by: Pravin B Shelar pshe...@nicira.com --- datapath/actions.c| 294 +++---

[ovs-dev] DELIVERY REPORTS ABOUT YOUR E-MAIL

2014-09-17 Thread shipmana
The original message was received at Thu, 18 Sep 2014 10:59:31 +0900 from 216.168.47.192 - The following addresses had permanent fatal errors - dev@openvswitch.org - Transcript of session follows - ... while talking to openvswitch.org.: 554 Service unavailable; [91.75.108.198]

[ovs-dev] A Question About How to Modify OpenFlow Message in Open vSwitch

2014-09-17 Thread Vivien X.W. Liu
Hi, I am currently working on a project that needs to use Open vSwitch, and modify the data payload of the OpenFlow messages that are sent back and forward between the controller and Open vSwitch (data payload here means the rest of the bits in an OpenFlow message except the 8 bytes OpenFlow

Re: [ovs-dev] (no subject)

2014-09-17 Thread Nithin Raju
Alin, Thanks for incorporating all the comments. Does it get any better if you don't do the renaming in this patch? I looked at the patch and there's only deleted code in dpif-linux.c and new code in dpif-netlink.c. It is hard to do any comparison about what was changed. I am OK with this

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

2014-09-17 Thread Joe Stringer
On 18 September 2014 13:02, Joe Stringer joestrin...@nicira.com wrote: @@ -229,17 +244,19 @@ static bool match_validate(const struct sw_flow_match *match, } } - if ((key_attrs key_expected) != key_expected) { + attrs = attrs_to_bitmask(key_attrs,

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

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

Re: [ovs-dev] set_field:222-pkt_mark does not take effect

2014-09-17 Thread Nirmalanand Jebakumar
On Thu, Sep 18, 2014 at 2:30 AM, Ben Pfaff b...@nicira.com wrote: As it turns out, when output goes through a tunnel, the pkt_mark comes from the tunnel configuration. Currently, OVS forces it to 1 for IPSEC tunnel traffic and 0 for other tunnel traffic. This could be changed, and it

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

2014-09-17 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 yamam...@valinux.co.jp --- FAQ | 21 + 1 file changed, 21 insertions(+) diff --git a/FAQ b/FAQ index df5ac0e..21a04f3 100644 --- a/FAQ +++