Re: [ovs-dev] [PATCH] WMI Script that updates Hyper-V friendly port names

2014-09-26 Thread Nithin Raju
On Sep 24, 2014, at 11:18 PM, Alin Serdean aserd...@cloudbasesolutions.com wrote: The following script leverage's the advantages of WMI infrastructure offered in Hyper-V. This scripts allows the user to change the Msvm_EthernetPortAllocationSettingData property of a VM network adapter

[ovs-dev] [PATCH] INSTALL.DPDK: Update DPDK related documentation.

2014-09-26 Thread Alex Wang
This commit updates the DPDK related documentation to reflect the pmd thread multi-threading work. Signed-off-by: Alex Wang al...@nicira.com --- INSTALL.DPDK | 70 ++ vswitchd/vswitch.xml |5 ++-- 2 files changed, 39 insertions(+), 36

[ovs-dev] Pzej

2014-09-26 Thread Bounced mail
The message could not be delivered ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCHv6 00/14] Revalidate flows with unique identifiers.

2014-09-26 Thread Joe Stringer
This series modifies the dpif interface for flow commands to use 128-bit unique identifiers as an alternative to the netlink-formatted flow key, and caches the mask/actions in the udpif_key. This significantly reduces the cost of assembling messages between revalidators and the datapath, improving

[ovs-dev] [PATCHv6 01/14] revalidator: Distinguish new and duplicate flows.

2014-09-26 Thread Joe Stringer
We previously counted flows that have been installed during the current dump as duplicates, rather than recognising them as new flows. This patch separates the counters out for these two cases. Signed-off-by: Joe Stringer joestrin...@nicira.com --- v5-v6: No change. v4: Initial post. ---

[ovs-dev] [PATCHv6 03/14] revalidator: Protect ukeys with a mutex.

2014-09-26 Thread Joe Stringer
Currently, udpif_keys are protected during revalidator_sweep__() as only one thread accesses the ukey at a time. This is ensured using barriers: all revalidators will be in the GC phase, so they will only access their own ukey collection. A future patch will change the access patterns to allow

[ovs-dev] [PATCHv6 05/14] upcall: Rename dump_op - ukey_op.

2014-09-26 Thread Joe Stringer
Future patches will make use of the 'struct dump_op' in a broader sense, so this patch renames it to make things a bit clearer. Signed-off-by: Joe Stringer joestrin...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v4-v6: No change. v3: Rebase. v2: No change. RFC: First post. ---

[ovs-dev] [PATCHv6 02/14] revalidator: Use 'cmap' for storing ukeys.

2014-09-26 Thread Joe Stringer
Signed-off-by: Joe Stringer joestrin...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v4-v6: No change. v3: Rebase. v2: Call ovsrcu_quiesce() unconditionally. RFC: Initial Post. --- ofproto/ofproto-dpif-upcall.c | 61 ++--- 1 file changed, 33

[ovs-dev] [PATCHv6 06/14] upcall: Create ukeys in handler threads.

2014-09-26 Thread Joe Stringer
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 the datapath flow. This patch sets up this cache from the handler

[ovs-dev] [PATCHv6 04/14] udpif: Separate udpif_key maps from revalidators.

2014-09-26 Thread Joe Stringer
An upcoming patch will change the access patterns for ukey maps to increase the number of writers, and shift write-access from revalidator threads to upcall handler threads. As such, it no longer makes sense to tie these maps to revalidators in a 1:1 relationship. This patch separates the ukey

[ovs-dev] [PATCHv6 08/14] tests: Mention binomial coefficient in hash tests.

2014-09-26 Thread Joe Stringer
This just makes it a bit easier for someone coming in fresh to do some searches and figure out what the description means. Signed-off-by: Joe Stringer joestrin...@nicira.com --- v6: First post. --- tests/test-hash.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[ovs-dev] [PATCHv6 07/14] upcall: Revalidate using cache of mask, actions.

2014-09-26 Thread Joe Stringer
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 future patch will modify the datapath interface to allow datapaths to

[ovs-dev] [PATCHv6 09/14] hash: Add 128-bit murmurhash.

2014-09-26 Thread Joe Stringer
Add the 128-bit murmurhash by Austin Appleby, r150 from: http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp Signed-off-by: Joe Stringer joestrin...@nicira.com --- The x64 version is approximately 2x faster than x86 in the tests I ran. v6: Add version that uses 64-bit

[ovs-dev] [PATCHv6 10/14] dpif: Generate flow_hash for revalidators in dpif.

2014-09-26 Thread Joe Stringer
This patch shifts the responsibility for determining the hash for a flow from the revalidation logic down to the dpif layer. This assists in handling backward-compatibility for revalidation with the upcoming unique identifier UID patches, and allows ovs-dpctl to automatically determine flow hashes

[ovs-dev] [PATCHv6 11/14] datapath: Add support for unique flow identifiers.

2014-09-26 Thread Joe Stringer
If a datapath is created with the flag OVS_DP_F_INDEX_BY_UID, then an additional table_instance is added to the flow_table, which is indexed by unique identifiers (UID). Userspace implementations can specify a UID of up to 128 bits along with a flow operation as shorthand for the key. This allows

[ovs-dev] [PATCHv6 12/14] dpif: Index flows using unique identifiers.

2014-09-26 Thread Joe Stringer
This patch modifies the dpif interface to allow flows to be manipulated using a 128-bit identifier. This allows revalidator threads to perform datapath operations faster, as they do not need to serialise the entire flow key for operations like flow_get and flow_delete. In conjunction with a future

[ovs-dev] [PATCHv6 13/14] dpif: Minimize memory copy for revalidation.

2014-09-26 Thread Joe Stringer
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 modifies the flow_dump interface to allow revalidators to skip dumping the key, mask and actions from the datapath, by making use of

[ovs-dev] [PATCHv6 14/14] udpif: Simplify storage of key, mask in udpif_key.

2014-09-26 Thread Joe Stringer
Previously we stored the netlink-formatted version of a flow key and mask in 'struct udpif_key'. This patch stores the original key,mask in the 'struct match' format, which reduces the size of a ukey from 1216 bytes to 560. Furthermore, this reduces netlink conversions required and simplifies mask

[ovs-dev] [PATCH] ovs-ofctl:To set importance of a rule for eviction(OF14)

2014-09-26 Thread Rishi Bamba
This patch enables a user to set importance for a new rule via add-flow OF1.1+ in the OVS and display the same via dump-flows command OF1.1+ . The changes are made in accordance with OpenFlow 1.4 specs to implement Eviction on the basis of importance. Signed-off-by: Rishi Bamba

[ovs-dev] Inputs required to print Table Description

2014-09-26 Thread Saloni Jain
Hi Team, As per the OpenFlow Specification 1.4, section B.14.7, page 203, Table-desc eviction property ofp_table_mod_prop_eviction to describe the type of eviction performed by the switch. As per our findings, there is a function in ofp-print.c, ofp_print_table_mod, to print table mod

Re: [ovs-dev] [PATCH] WMI Script that updates Hyper-V friendly port names

2014-09-26 Thread Alin Serdean
Hello Nithin, Yes it works if a VM has multiple network adapters. Invocation is different though. Example for a VM with 2 network adapters: $vnic = Get-VMNetworkAdapter test_2_1 $vnic[0] Connect-VMNetworkAdapter -VMNetworkAdapter $vnic[0] -SwitchName external $vnic[0] |

[ovs-dev] Storage Virtualization Users

2014-09-26 Thread Brenda Johnson
Hi, Are you interested in *Storage Virtualization Users* list for your marketing campaign? We are a Global Technology Database provider across the globe with Key decision makers complete contact details like Name, Title, Email, Phone, Company Details and the Technology insights. Other

Re: [ovs-dev] [PATCH] WMI Script that updates Hyper-V friendly port names

2014-09-26 Thread Eitan Eliahu
Hi Alin, Can you please add a short description of how you see this script is used in the sequence of actions to add or delete a port to the switch? I assume that the script will set the friendly name of a port even if the port is not connected (yet), is it correct? Thank you, Eitan

Re: [ovs-dev] [PATCH v3] datapath-windows Event read handler

2014-09-26 Thread Nithin Raju
Eitan, I get the following error when I try to apply this patch. Looks like there's a new line in build-aux/extract-odp-netlink-windows-dp-h. --- [nithin@pa-dbc1122 openvswitch-review]$ git am ../tmp/ovs-dev-v3-datapath-windows-Event-read-handler.patch Applying: datapath-windows Event read

Re: [ovs-dev] Inputs required to print Table Description

2014-09-26 Thread Ben Pfaff
On Fri, Sep 26, 2014 at 05:56:25PM +0530, Saloni Jain wrote: As per the OpenFlow Specification 1.4, section B.14.7, page 203, Table-desc eviction property ofp_table_mod_prop_eviction to describe the type of eviction performed by the switch. As per our findings, there is a function in

Re: [ovs-dev] [PATCH v1 07/10] datapath-windows/Flow.c: FLOW_NEW command handler.

2014-09-26 Thread Ankur Sharma
Hi Sam, Thanks a lot for the review. Please find my replies inline. Thanks. Regards, Ankur From: Samuel Ghinet sghi...@cloudbasesolutions.com Sent: Thursday, September 25, 2014 9:14 AM To: dev@openvswitch.org Cc: Ankur Sharma Subject: RE: [ovs-dev]

Re: [ovs-dev] [PATCH v1 08/10] datapath-windows/Flow.c: FLOW_SET command handler.

2014-09-26 Thread Ankur Sharma
Hi Sam, We plan to handle the error cases properly, but not in this series. Let me know if it sounds fine. Thanks. Regards, Ankur From: Samuel Ghinet sghi...@cloudbasesolutions.com Sent: Thursday, September 25, 2014 9:28 AM To: dev@openvswitch.org Cc:

Re: [ovs-dev] [PATCH] ovs-ofctl:To set importance of a rule for eviction(OF14)

2014-09-26 Thread Ben Pfaff
On Fri, Sep 26, 2014 at 04:27:06PM +0530, Rishi Bamba wrote: This patch enables a user to set importance for a new rule via add-flow OF1.1+ in the OVS and display the same via dump-flows command OF1.1+ . The changes are made in accordance with OpenFlow 1.4 specs to implement Eviction on the

Re: [ovs-dev] [PATCH] ovs-ofctl:To set importance of a rule for eviction(OF14)

2014-09-26 Thread Ben Pfaff
On Fri, Sep 26, 2014 at 09:52:14AM -0700, Ben Pfaff wrote: On Fri, Sep 26, 2014 at 04:27:06PM +0530, Rishi Bamba wrote: This patch enables a user to set importance for a new rule via add-flow OF1.1+ in the OVS and display the same via dump-flows command OF1.1+ . The changes are made in

Re: [ovs-dev] [PATCH] ovs-ofctl:To set importance of a rule for eviction(OF14)

2014-09-26 Thread Ben Pfaff
On Fri, Sep 26, 2014 at 04:27:06PM +0530, Rishi Bamba wrote: This patch enables a user to set importance for a new rule via add-flow OF1.1+ in the OVS and display the same via dump-flows command OF1.1+ . The changes are made in accordance with OpenFlow 1.4 specs to implement Eviction on the

Re: [ovs-dev] [PATCH v3 1/4] datapath-windows: fix OVS_VPORT_TYPE

2014-09-26 Thread Ben Pfaff
On Thu, Sep 25, 2014 at 09:20:25PM +, 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 for the netlink communication to work properly.

Re: [ovs-dev] [PATCH v4 2/4] Netlink command: vport dump

2014-09-26 Thread Ben Pfaff
On Thu, Sep 25, 2014 at 09:21:33PM +, Samuel Ghinet wrote: 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

Re: [ovs-dev] [PATCH v4 3/4] Add file: NetlinkError.h

2014-09-26 Thread Ben Pfaff
On Thu, Sep 25, 2014 at 09:22:22PM +, Samuel Ghinet wrote: Contains error codes for netlink transactional errors. These errors are passed to the error field (INT) of the NL_MSG_ERR struct. The userspace requires them to be negative values: the nl_msg_nlmsgerr userspace function

Re: [ovs-dev] Modification in ovs-ofctl commands for implementation of Importance parameter.

2014-09-26 Thread Ben Pfaff
On Thu, Sep 25, 2014 at 09:48:44AM +0530, Shashwat Srivastava wrote: Following is our understanding for Delete Flow mechanism: We have studied the code and have found that OFPFC_DELETE_STRICT specifies only two fields on which flow is deleted which are OUT_PORT PRIORITY i.e. flows are

Re: [ovs-dev] [PATCH] AUTHORS: Add Simon Horman simon.hor...@netronome.com

2014-09-26 Thread Ben Pfaff
On Thu, Sep 25, 2014 at 01:02:13PM +0900, Simon Horman wrote: Signed-off-by: Simon Horman simon.hor...@netronome.com --- I have now had one patch accepted from this address, I hope there will be more. I would also like to continue to use ho...@verge.net.au for work that is not related

Re: [ovs-dev] [PATCH v1 05/10] datapath-windows/Netlink: Fixed NlAttrParseNested

2014-09-26 Thread Ankur Sharma
Hi Sam, Please find my replies inline. Regards, Ankur From: Samuel Ghinet sghi...@cloudbasesolutions.com Sent: Thursday, September 25, 2014 8:30 AM To: dev@openvswitch.org Cc: Ankur Sharma Subject: RE: [ovs-dev] [PATCH v1 05/10] datapath-windows/Netlink:

Re: [ovs-dev] [PATCH v3] datapath-windows Event read handler

2014-09-26 Thread Eitan Eliahu
Thanks for the review Nithin. new blank line at EOF. Thanks, will remove. Also, I am not very convinced that we cannot reuse the READ_IOCTL, but I am ok with your approach provided the end-to-end (including userspace code) looks simpler overall. Maybe including the userspace code would make

Re: [ovs-dev] [PATCH] ovs-ofctl: Correct help text for add-groups

2014-09-26 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 01:43:19PM +0900, Simon Horman wrote: It is add-groups rather than add-group that takes FILE as an argument. Signed-off-by: Simon Horman simon.hor...@netronome.com Applied, thanks! ___ dev mailing list dev@openvswitch.org

Re: [ovs-dev] [PATCH] ofproto-dpif-rid: correct logic error in rid_pool_alloc_id()

2014-09-26 Thread Ben Pfaff
It looks like this wasn't backported, should it be? On Wed, Sep 24, 2014 at 02:06:46PM -0700, Andy Zhou wrote: Pushed. Thanks for the fix! On Tue, Sep 23, 2014 at 9:41 PM, Simon Horman simon.hor...@netronome.com wrote: When searching through the valid ids an id should be used if is not

Re: [ovs-dev] [PATCH] Makefiles: Add $(AM_V_GEN) annotations to clean up make output.

2014-09-26 Thread Ben Pfaff
On Wed, Sep 03, 2014 at 10:28:39AM -0700, Ben Pfaff wrote: The Open vSwitch make output was still pretty verbose even when configured with --enable-silent-rules. This cleans it up. Signed-off-by: Ben Pfaff b...@nicira.com --- I tested that this yields good output with the following travis

Re: [ovs-dev] [PATCH 1/3] lib/ovs-atomic-i586: Faster 64-bit atomics on 32-bit builds with SSE.

2014-09-26 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:24:00AM -0700, Jarno Rajahalme wrote: Aligned 64-bit memory accesses in i586 are atomic. By using an SSE register we can make such memory accesses in one instruction without bus-locking. Need to compile with -msse to enable this feature. Signed-off-by: Jarno

Re: [ovs-dev] [PATCH] ofproto-dpif-rid: correct logic error in rid_pool_alloc_id()

2014-09-26 Thread Andy Zhou
I will back port to branch-2.3. Thanks for the reminder. On Fri, Sep 26, 2014 at 10:46 AM, Ben Pfaff b...@nicira.com wrote: It looks like this wasn't backported, should it be? On Wed, Sep 24, 2014 at 02:06:46PM -0700, Andy Zhou wrote: Pushed. Thanks for the fix! On Tue, Sep 23, 2014 at 9:41

Re: [ovs-dev] [PATCH 2/3] ofproto-dpif: Check frags only once.

2014-09-26 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:24:01AM -0700, Jarno Rajahalme wrote: Earlier I have seen the frags checking suspiciously high in perf reports, but did not understand why. Maybe this explains it: Previously we checked frags handling before each flow table lookup. As the nw_frags field is not

Re: [ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-26 Thread Or Gerlitz
On Wed, Sep 24, 2014 at 4:32 PM, Thomas Graf tg...@suug.ch wrote: On 09/23/14 at 06:32pm, Or Gerlitz wrote: Indeed. The idea is to leverage OVS to manage eSwitch (embedded NIC switch) as well (NOT to offload OVS). We envision a seamless integration of user environment which is based on OVS

Re: [ovs-dev] [PATCH 3/3] lib/bitmap: Faster bitmap_scan().

2014-09-26 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:24:02AM -0700, Jarno Rajahalme wrote: Before: $ tests/ovstest test-bitmap benchmark 100 bitmap equal:328 ms bitmap scan: 8159 ms After: $ tests/ovstest test-bitmap benchmark 100 bitmap equal:230 ms bitmap scan:185 ms Signed-off-by:

Re: [ovs-dev] [PATCH 3/3] lib/bitmap: Faster bitmap_scan().

2014-09-26 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:36:57AM -0700, Jarno Rajahalme wrote: Correcting myself: On Sep 24, 2014, at 11:24 AM, Jarno Rajahalme jrajaha...@nicira.com wrote: -unsigned long *bitmap_allocate1(size_t n_bits); +/* Initializes bitmap to all-1-bits and returns the bitmap pointer. */ +static

Re: [ovs-dev] [PATCH] datapath-windows: NUL character should be left out during VPORT hash lookup

2014-09-26 Thread Eitan Eliahu
Hi Nithin, Is there any place where we check nla-nlaLen that is larger NLA_HDRLEN? We need to add this to the NL attr validation. I'm not sure what happens if NlAttrGetSize retirns with 0 or -1 :-) Perhaps we want to add minimal for OVS_VPORT_ATTR_NAME so NlAttrValidate will catch it. Thanks,

[ovs-dev] [PATCH 0/5 RFC] Latest conntrack nat patch series

2014-09-26 Thread Thomas Graf
I wanted to post the latest state of the conntrack nat patches based on Justin's initial RFC before I travel. Changes to Justin's patch include the introduction of a new model to convert nested Netlink attributes to a in-kernel only struct to allow the zone support patch to keep a reference to

[ovs-dev] [PATCH 3/5] datapath: Add zone support to conntrack action

2014-09-26 Thread Thomas Graf
WIP --- datapath/actions.c | 8 datapath/flow.h | 1 + datapath/flow_netlink.c | 22 ++ 3 files changed, 31 insertions(+) diff --git a/datapath/actions.c b/datapath/actions.c index beed5d8..05b465c 100644 --- a/datapath/actions.c +++

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

2014-09-26 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 4/5] datapath: Add stateful NAT action

2014-09-26 Thread Thomas Graf
WIP --- datapath/actions.c| 95 +++ datapath/flow.h | 6 + datapath/flow_netlink.c | 139 ++ datapath/linux/compat/include/linux/openvswitch.h | 54 + 4 files

[ovs-dev] [PATCH 5/5] odp: Add stateful NAT action

2014-09-26 Thread Thomas Graf
WIP --- lib/dpif-netdev.c| 1 + lib/dpif.c | 1 + lib/odp-execute.c| 1 + lib/odp-util.c | 113 +++ lib/ofp-actions.c| 104 +++ lib/ofp-actions.h

[ovs-dev] [PATCH v4] datapath-windows Event read handler

2014-09-26 Thread Eitan Eliahu
The Read event handler is executed when user mode issues a socket receive on an MC socket associated with the event queue. A new IOCTL READ command is used to differentiate between transaction based and packet miss sockets. An entry for the handler will be added once the Control family (logically

Re: [ovs-dev] [PATCH v4] datapath-windows Event read handler

2014-09-26 Thread Nithin Raju
On Sep 26, 2014, at 11:06 PM, Eitan Eliahu elia...@vmware.com wrote: The Read event handler is executed when user mode issues a socket receive on an MC socket associated with the event queue. A new IOCTL READ command is used to differentiate between transaction based and packet miss sockets.

Re: [ovs-dev] [PATCH v4] datapath-windows Event read handler

2014-09-26 Thread Ankur Sharma
Acked-by: Ankur Sharma ankursha...@vmware.com Regards, Ankur From: dev dev-boun...@openvswitch.org on behalf of Eitan Eliahu elia...@vmware.com Sent: Friday, September 26, 2014 11:06 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH v4]

[ovs-dev] [PATCH] ovs-vsctl: Allow modifying immutable columns if we just created the row.

2014-09-26 Thread Ben Pfaff
OVSDB has the concept of immutable columns, which are columns whose values are fixed once a row is inserted. Until now, ovs-vsctl has not allowed these columns to be modified at all. However, this is a little too strict, because these columns can be set to any value at the time that the row is

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

2014-09-26 Thread Ben Pfaff
On Thu, Sep 18, 2014 at 10:55:10AM +0900, Simon Horman wrote: This patch is a prototype and has several limitations: * It assumes that no actions follow a select group action because the resulting packet after a select group action may differ depending on the bucket used. It may be

Re: [ovs-dev] [PATCH] datapath-windows: Missed packets are not queued.

2014-09-26 Thread Nithin Raju
On Sep 24, 2014, at 2:43 AM, Sorin Vinturis svintu...@cloudbasesolutions.com wrote: Currently, whenever there's a missed packet, the ovs driver allocates memory and copies the packet even if there's no packet queue setup from userspace. Then if there's no queue created, the packet is

[ovs-dev] [PATCH v3 01/11] datapath-windows: move OVS_MESSAGE to Netlink.h

2014-09-26 Thread Ankur Sharma
Moved the structure OVS_MESSAGE to Netlink.h. This change is done for following reasons. a. Patch 2 in this series provides a generic API in Netlink.c for creating netlink message. That API needs OVS_MESSAGE. Including Datapath.h in Netlink.c/h gives compilation error. b. OVS_MESSAGE defines

[ovs-dev] [PATCH v3 02/11] datapath-windows/Netlink: Add NlFillOvsMsg API for creating Netlink message headers.

2014-09-26 Thread Ankur Sharma
Added NlFillOvsMsg API in Netlink.c This API will be used to populate netlink message headers. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by: Eitan Eliahu elia...@vmware.com Acked-by: Nithin Raju nit...@vmware.com

[ovs-dev] [PATCH v3 03/11] datapath-windows/Netlink: Add NlAttrLen API

2014-09-26 Thread Ankur Sharma
Added an API to retrieve the attribute length. Added 2 more API for BE16 and BE8 attribute parsing. Fixed a trailing whitespace issue. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by: Eitan Eliahu elia...@vmware.com

[ovs-dev] [PATCH v3 04/11] datapath-windows/Netlink: Allow support for NESTED Attributes in NlAttrValidate

2014-09-26 Thread Ankur Sharma
Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by: Eitan Eliahu elia...@vmware.com Acked-by: Nithin Raju nit...@vmware.com Acked-by: Samuel Ghinet sghi...@cloudbasesolutions.com Tested-by: Ankur Sharma ankursha...@vmware.com

[ovs-dev] [PATCH v3 06/11] datapath-windows/Flow.c : Basic support for add-flow.

2014-09-26 Thread Ankur Sharma
This patch covers basic changes in registering add flow handler. And declaring FLOW related attribute parsing policies. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by: Eitan Eliahu elia...@vmware.com Acked-by: Nithin Raju

[ovs-dev] [PATCH v3 05/11] datapath-windows/Netlink: Fixed NlAttrParseNested

2014-09-26 Thread Ankur Sharma
NlAttrParseNested was using the whole netlink payload for iteration. This is not correct, as it would lead to exceeding the nested attribute boundries. Fixed the same in this patch. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com

[ovs-dev] [PATCH v3 08/11] datapath-windows/Flow.c: FLOW_SET command handler.

2014-09-26 Thread Ankur Sharma
Registered FLOW_SET command handler. The same command handler as FLOW_ADD is good enough to handle FLOW_SET case as well. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by: Eitan Eliahu elia...@vmware.com Acked-by: Nithin

[ovs-dev] [PATCH v3 07/11] datapath-windows/Flow.c: FLOW_NEW command handler.

2014-09-26 Thread Ankur Sharma
This patch covers the changes needed to support FLOW_NEW command. API _OvsFlowMapNlToFlowPutFlags has a bug, which will be fixed with the patches for FLOW_DEL. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by: Eitan Eliahu

[ovs-dev] [PATCH v3 09/11] datapath-windows/Flow.c: FLOW_DEL command handler.

2014-09-26 Thread Ankur Sharma
Registered FLOW_DEL command handler. The same command handler as FLOW_ADD is good enough to handle FLOW_DEL case as well with minor changes for checking to action attribute. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by:

[ovs-dev] [PATCH v3 10/11] datapath-windows/Flow.c: DEL_FLOWS command handler.

2014-09-26 Thread Ankur Sharma
Added changes to handle DEL_FLOWS (FLUSH) scenario. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by: Eitan Eliahu elia...@vmware.com Acked-by: Nithin Raju nit...@vmware.com Acked-by: Samuel Ghinet

[ovs-dev] [PATCH v3 11/11] datapath-windows: Rename OvsFlowNlNewCmdHandler to OvsFlowNlCmdHandler

2014-09-26 Thread Ankur Sharma
OvsFlowNlNewCmdHandler NEW/DEL/SET/FLUSH commands hence renaming it to OvsFlowNlCmdHandler. Signed-off-by: Ankur Sharma ankursha...@vmware.com Acked-by: Alin Gabriel Serdean aserd...@cloudbasesolutions.com Acked-by: Eitan Eliahu elia...@vmware.com Acked-by: Nithin Raju nit...@vmware.com Acked-by:

[ovs-dev] [PATCH v4] datapath-windows Event read handler

2014-09-26 Thread Eitan Eliahu
The Read event handler is executed when user mode issues a socket receive on an MC socket associated with the event queue. A new IOCTL READ command is used to differentiate between transaction based and packet miss sockets. An entry for the handler will be added once the Control family (logically

[ovs-dev] [PATCH v2] datapath-windows: NUL character should be left out during VPORT hash lookup

2014-09-26 Thread Nithin Raju
While calculating the hash on a VPORT name, we don't include the NUL character. We should be doing the same while doing lookup as well. We set the required minimum length of the name to be 2 so that the string has at least one valid character. Signed-off-by: Nithin Raju nit...@vmware.com

[ovs-dev] [PATCH] datapath-windows: OVS_DP_CMD_SET should only be handled from transaction ioctl

2014-09-26 Thread Nithin Raju
Signed-off-by: Nithin Raju nit...@vmware.com --- datapath-windows/ovsext/Datapath.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/datapath-windows/ovsext/Datapath.c b/datapath-windows/ovsext/Datapath.c index b6dc55e..8f8499b 100644 ---

Re: [ovs-dev] [PATCH] WMI Script that updates Hyper-V friendly port names

2014-09-26 Thread Nithin Raju
Thanks Alin. I tested this script and it works! It would be great if we can document the usage in INSTALL.Windows - both for one vNIC case and 2 vNIC case. It does not have to be part of this checkin. Tested-by: Nithin Raju nit...@vmware.com Acked-by: Nithin Raju nit...@vmware.com -- Nithin

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

2014-09-26 Thread Automatic Email Delivery Software
Dear user dev@openvswitch.org, Your e-mail account has been used to send a huge amount of spam messages during this week. Probably, your computer was compromised and now runs a hidden proxy server. We recommend you to follow the instruction in order to keep your computer safe. Virtually yours,