Re: [ovs-dev] [PATCH v2] datapath-windows: accommodate to UFID changes

2015-02-04 Thread Ankur Sharma
Hey Alin, Thanks for the patch. Please find my comments inline. I have not worked on this code for sometime, so may miss something here. Can you please also let us know the unit testing that you did? Although change is minor, but editing FLOW_KEY* related code may end up breaking some function

Re: [ovs-dev] [PATCH] datapath-windows: Add PID Number attribute for port notification / Fix logic

2014-12-02 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Eitan Eliahu Sent: Tuesday, December 2, 2014 8:33 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH] datapath-windows: Add PID Number attribute for port notification / Fix logic [1] User mode OVS

Re: [ovs-dev] [PATCH 1/7] datapath-windows: fixes in OvsGetExtInfoIoctl()

2014-11-18 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Eitan Eliahu Sent: Wednesday, November 12, 2014 10:53 AM To: Nithin Raju Cc: dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH 1/7] datapath-windows: fixes in OvsGetExtInfoIoctl() Yes, we planned

Re: [ovs-dev] [PATCH 7/7] datapath-windows: Fixes in HvCreatePort() to re-add a port

2014-11-18 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Wednesday, November 12, 2014 10:56 AM To: Eitan Eliahu Cc: dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH 7/7] datapath-windows: Fixes in HvCreatePort() to re-add a port On Nov 12

Re: [ovs-dev] [PATCH 6/7] datapath-windows: Change return type of OvsInitVxlanTunnel()

2014-11-18 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Tuesday, November 11, 2014 7:04 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 6/7] datapath-windows: Change return type of OvsInitVxlanTunnel() OvsInitVxlanTunnel() need not

Re: [ovs-dev] [PATCH 5/7] datapath-windows: Changes to InitOvsVportCommon()

2014-11-18 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Tuesday, November 11, 2014 7:04 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 5/7] datapath-windows: Changes to InitOvsVportCommon() If a Hyper-V port (for which there exists

Re: [ovs-dev] [PATCH 4/7] datapath-windows: Changes to OvsRemoveAndDeleteVport()

2014-11-18 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Tuesday, November 11, 2014 7:04 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 4/7] datapath-windows: Changes to OvsRemoveAndDeleteVport() In this patch, we add changes to

Re: [ovs-dev] [PATCH 3/7] datapath-windows: clarify 'portIdHashArray' in the swithc context

2014-11-17 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Tuesday, November 11, 2014 7:04 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 3/7] datapath-windows: clarify 'portIdHashArray' in the swithc context In this patch,

Re: [ovs-dev] [PATCH 2/7] datapath-windows: add WCHAR version of OvsFindVportByHvName()

2014-11-17 Thread Ankur Sharma
Minor comments inline. Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Tuesday, November 11, 2014 7:04 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 2/7] datapath-windows: add WCHAR version of OvsFindVportByHvName() In this

Re: [ovs-dev] [PATCH v2] datapath-windows: Update port property

2014-11-07 Thread Ankur Sharma
add-port is done. And we can always add check to block the case i have mentioned above. I have a few minor comments regarding code style. Acked-by: Ankur Sharma Regards, Ankur From: dev on behalf of Eitan Eliahu Sent: Friday, November 7, 2014 6:53 PM

[ovs-dev] [PATCH v1] datapath-windows: Removed a not needed debug message from Flow.c

2014-11-05 Thread Ankur Sharma
Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/datapath-windows/ovsext/Flow.c b/datapath-windows/ovsext/Flow.c index 14c3072..d2d0ae5 100644 --- a/datapath-windows/ovsext/Flow.c +++ b/datapath-windows/ovsext/Flow.c @@ -1184,8

Re: [ovs-dev] [PATCH] WMI Script Support for setting Hyper-V friendly port name from NOVA driver

2014-11-03 Thread Ankur Sharma
Acked-by: Ankur Sharma From: Eitan Eliahu Sent: Thursday, October 30, 2014 3:01 PM To: Ankur Sharma Subject: FW: [PATCH] WMI Script Support for setting Hyper-V friendly port name from NOVA driver -Original Message- From: Eitan Eliahu [mailto:elia

Re: [ovs-dev] [PATCH] datapath-windows: Avoid BSOD when switch context is NULL

2014-11-03 Thread Ankur Sharma
Hi Sorin, Can you please provide some more details of the crash? Either of following data would be helpful in review. a. Repro steps. b. Backtrace. Thanks. Regards, Ankur From: dev on behalf of Sorin Vinturis Sent: Thursday, October 30, 2014 7:32 AM To

Re: [ovs-dev] [PATCH 3/7] datapath-windows: introduce bridge-internal ports

2014-10-24 Thread Ankur Sharma
Hi Nithin, Thanks for the clarification. Regards, Ankur From: Nithin Raju Sent: Friday, October 24, 2014 3:53 PM To: Ankur Sharma Cc: Alin Serdean; dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH 3/7] datapath-windows: introduce bridge-internal ports

Re: [ovs-dev] [PATCH 7/7] datapath-windows: OvsFindVportByPortIdAndNicIndex() and external port

2014-10-24 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Alin Serdean Sent: Friday, October 24, 2014 3:15 PM To: Nithin Raju; dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH 7/7] datapath-windows: OvsFindVportByPortIdAndNicIndex() and external port

Re: [ovs-dev] [PATCH 6/7] datapath-windows: updates to vport add code

2014-10-24 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Alin Serdean Sent: Friday, October 24, 2014 3:15 PM To: Nithin Raju; dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH 6/7] datapath-windows: updates to vport add code Acked-by: Alin Gabriel Serdean

Re: [ovs-dev] [PATCH 2/7] datapath-windows: clarify externalVport

2014-10-24 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Alin Serdean Sent: Friday, October 24, 2014 3:14 PM To: Nithin Raju; dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH 2/7] datapath-windows: clarify externalVport Acked-by: Alin Gabriel Serdean Tested-by

Re: [ovs-dev] [PATCH 5/7] datapath-windows: core refactoring in Vport.c

2014-10-24 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Alin Serdean Sent: Friday, October 24, 2014 3:15 PM To: Nithin Raju; dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH 5/7] datapath-windows: core refactoring in Vport.c Acked-by: Alin Gabriel Serdean

Re: [ovs-dev] [PATCH 3/7] datapath-windows: introduce bridge-internal ports

2014-10-24 Thread Ankur Sharma
Hi Nithin, Some minor comments: why did we add if (OvsIsBridgeInternalVport(vport)) check in OvsAddPorts? minor comment in OvsIsBridgeInternalVport we can just do return vport->isBridgeInternal instead of return vport->isBridgeInternal == TRUE Acked-by: Ankur

Re: [ovs-dev] [PATCH] lib/netdev-windows.c: fixes in update flags and copying MAC address

2014-10-24 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Friday, October 24, 2014 1:02 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH] lib/netdev-windows.c: fixes in update flags and copying MAC address The .update_flags function in

Re: [ovs-dev] [PATCH] datapath-windows: Allow encapsulation if source is bridge-internal port

2014-10-24 Thread Ankur Sharma
Acked-by: Ankur Sharma From: Nithin Raju Sent: Friday, October 24, 2014 11:52 AM To: Ankur Sharma Subject: FW: [PATCH] datapath-windows: Allow encapsulation if source is bridge-internal port For Ack-ing. Get the patch file from: /dbc/pa-dbc1122/nithin

[ovs-dev] [PATCH v4 3/3] datapath-windows: Refactor CreateQueue function to handle vport pid.

2014-10-23 Thread Ankur Sharma
Refactored CreateQueue function so that packets are enqueued to correct corresponding queue. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Actions.c | 4 +- datapath-windows/ovsext/PacketIO.c | 2 +- datapath-windows/ovsext/Switch.c | 2 + datapath-windows/ovsext/Switch.h

[ovs-dev] [PATCH v4 2/3] datapath-windows: Add code for OvsGetQueue.

2014-10-23 Thread Ankur Sharma
Signed-off-by: Ankur Sharma Acked-by: Sorin Vinturis --- datapath-windows/ovsext/User.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 213d606..f6b1157 100644 --- a/datapath-windows

[ovs-dev] [PATCH v4 1/3] datapath-windows: pid-instance hash table APIs.

2014-10-23 Thread Ankur Sharma
In this patch we have added APIs for insert, delete and search APIs. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju --- datapath-windows/ovsext/User.c | 57 ++ datapath-windows/ovsext/User.h | 10 2 files changed, 67 insertions(+) diff --git

Re: [ovs-dev] [PATCH] [datapath-windows] Broken build on windows extension

2014-10-23 Thread Ankur Sharma
Sent: Thursday, October 23, 2014 12:44 PM To: Ankur Sharma Cc: Alin Serdean; dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH] [datapath-windows] Broken build on windows extension On Thu, Oct 23, 2014 at 05:42:24PM +, Ankur Sharma wrote: > Do not worry about this. > > It has

[ovs-dev] [PATCH v3 2/3] datapath-windows: Add code for OvsGetQueue.

2014-10-23 Thread Ankur Sharma
Signed-off-by: Ankur Sharma Acked-by: Sorin Vinturis --- datapath-windows/ovsext/User.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 213d606..f6b1157 100644 --- a/datapath-windows

[ovs-dev] [PATCH v3 1/3] datapath-windows: pid-instance hash table APIs.

2014-10-23 Thread Ankur Sharma
In this patch we have added APIs for insert, delete and search APIs. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju --- datapath-windows/ovsext/User.c | 57 ++ datapath-windows/ovsext/User.h | 10 2 files changed, 67 insertions(+) diff --git

[ovs-dev] [PATCH v3 3/3] datapath-windows: Refactor CreateQueue function to handle vport pid.

2014-10-23 Thread Ankur Sharma
Refactored CreateQueue function so that packets are enqueued to correct corresponding queue. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Actions.c | 4 +- datapath-windows/ovsext/PacketIO.c | 2 +- datapath-windows/ovsext/Switch.c | 2 + datapath-windows/ovsext/Switch.h

Re: [ovs-dev] [PATCH v2 2/6] datapath-windows: pid-instance hash table APIs.

2014-10-23 Thread Ankur Sharma
Hi Sorin, Kindly let me know if you have concerns over it. As per my understanding as well we are not skipping any valid list node. Thanks. Regards, Ankur From: Nithin Raju Sent: Wednesday, October 22, 2014 4:55 PM To: Sorin Vinturis Cc: Ankur Sharma

Re: [ovs-dev] [PATCH] [datapath-windows] Broken build on windows extension

2014-10-23 Thread Ankur Sharma
Hi Alin, Do not worry about this. It has happened because of out of order patch application (patch 1 and 3 got applied bt not 2). I am working on addressing nithin and sorin's review comments and will submit a v3. Meanwhile please reset the head to get going. Thanks. Regards, Ankur _

[ovs-dev] [PATCH v2 4/6] datapath-windows: Add code for OvsGetQueue.

2014-10-21 Thread Ankur Sharma
Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 6327959..54f9682 100644 --- a/datapath-windows/ovsext/User.c +++ b

[ovs-dev] [PATCH v2 3/6] datapath-windows: Calling OvsAddPidInstance and OvsDelPidInstance

2014-10-21 Thread Ankur Sharma
Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 20 1 file changed, 20 insertions(+) diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 36787cd..6327959 100644 --- a/datapath-windows/ovsext/User.c +++ b/datapath-windows

[ovs-dev] [PATCH v2 6/6] datapath-windows: Fixes during integration testing.

2014-10-21 Thread Ankur Sharma
Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 4 +++- datapath-windows/ovsext/User.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 6797350..3da34da 100644 --- a/datapath-windows

[ovs-dev] [PATCH v2 5/6] datapath-windows: Refactor CreateQueue function to handle vport pid.

2014-10-21 Thread Ankur Sharma
Refactored CreateQueue function so that packets are enqueued to correct corresponding queue. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Actions.c | 4 +- datapath-windows/ovsext/PacketIO.c | 2 +- datapath-windows/ovsext/Tunnel.c | 2 +- datapath-windows/ovsext/User.c

[ovs-dev] [PATCH v2 1/6] datapath-windows: pid-instance hash table data structure.

2014-10-21 Thread Ankur Sharma
This patch introduces data structure for holding instances hashed by pid. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.h | 2 ++ datapath-windows/ovsext/Switch.c | 15 ++- datapath-windows/ovsext/Switch.h | 3 +++ datapath-windows/ovsext/User.c | 1

[ovs-dev] [PATCH v2 2/6] datapath-windows: pid-instance hash table APIs.

2014-10-21 Thread Ankur Sharma
In this patch we have added APIs for insert, delete and search APIs. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 57 ++ datapath-windows/ovsext/User.h | 10 2 files changed, 67 insertions(+) diff --git a/datapath-windows

[ovs-dev] [PATCH v1 4/6] datapath-windows: Add code for OvsGetQueue.

2014-10-20 Thread Ankur Sharma
Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 45 +- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 42473ab..95b8652 100644 --- a/datapath-windows

[ovs-dev] [PATCH v1 6/6] datapath-windows: Fixes during integration testing.

2014-10-20 Thread Ankur Sharma
Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 6 -- datapath-windows/ovsext/User.h | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 42b251f..cce99a5 100644 --- a/datapath

[ovs-dev] [PATCH v1 5/6] datapath-windows: Refactor CreateQueue function to handle vport pid.

2014-10-20 Thread Ankur Sharma
Refactored CreateQueue function so that packets are enqueued to correct corresponding queue. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Actions.c | 4 +- datapath-windows/ovsext/PacketIO.c | 2 +- datapath-windows/ovsext/Tunnel.c | 2 +- datapath-windows/ovsext/User.c

[ovs-dev] [PATCH v1 1/6] datapath-windows: pid-instance hash table data structure.

2014-10-20 Thread Ankur Sharma
This patch introduces data structure for holding instances hashed by pid. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.h | 2 ++ datapath-windows/ovsext/Event.c| 1 + datapath-windows/ovsext/Switch.c | 15 ++- datapath-windows/ovsext/Switch.h | 3

[ovs-dev] [PATCH v1 2/6] datapath-windows: pid-instance hash table APIs.

2014-10-20 Thread Ankur Sharma
In this patch we have added APIs for insert, delete and search APIs. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 40 datapath-windows/ovsext/User.h | 10 ++ 2 files changed, 50 insertions(+) diff --git a/datapath-windows

[ovs-dev] [PATCH v1 3/6] datapath-windows: Calling OvsAddPidInstance and OvsDelPidInstance

2014-10-20 Thread Ankur Sharma
Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 20 1 file changed, 20 insertions(+) diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index a8d9107..42473ab 100644 --- a/datapath-windows/ovsext/User.c +++ b/datapath-windows

Re: [ovs-dev] [PATCH 2/4 v2] datapath-windows: fixes in Flow.c in key parsing

2014-10-18 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Saturday, October 18, 2014 11:39 AM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 2/4 v2] datapath-windows: fixes in Flow.c in key parsing Signed-off-by: Nithin Raju

[ovs-dev] [PATCH v5] datapath-windows: netdev-windows fixes for vswitchd bringup.

2014-10-17 Thread Ankur Sharma
Added the handlers for update_flags and set_etheraddr. These handlers were needed for vswitchd bringup on windows platform. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju --- lib/netdev-windows.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff

Re: [ovs-dev] [PATCH 4/4] lib/netlink-socket.c: fixes in nl_sock_recv__() on Windows

2014-10-17 Thread Ankur Sharma
Hi Nithin, Please find my comments inline. Regards, Ankur From: dev on behalf of Nithin Raju Sent: Thursday, October 16, 2014 10:52 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 4/4] lib/netlink-socket.c: fixes in nl_sock_recv__() on Windows

Re: [ovs-dev] [PATCH 2/4] datapath-windows: fixes in Flow.c in key parsing

2014-10-17 Thread Ankur Sharma
Hi Nithin, While reading the ETHERTYPE attribute we already use ntohs. Regards, Ankur From: dev on behalf of Nithin Raju Sent: Thursday, October 16, 2014 10:52 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 2/4] datapath-windows: fixes in Flow.c i

Re: [ovs-dev] [PATCH 3/4] datapath-windows: Fixes in packet created for userspace

2014-10-17 Thread Ankur Sharma
Hi Nithin, Changes look fine. Please find a minor comment inline. Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Thursday, October 16, 2014 10:52 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 3/4] datapath-windows: Fixes in

Re: [ovs-dev] [PATCH 1/4] datapath-windows: event read should not fail when no events

2014-10-17 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Thursday, October 16, 2014 10:52 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 1/4] datapath-windows: event read should not fail when no events The semantics are read operation

Re: [ovs-dev] [PATCH] datapath-windows: Packet subscribe handler

2014-10-16 Thread Ankur Sharma
XXX To be implementd. 3. Rebase the patch. Acked-by: Ankur Sharma From: dev on behalf of Eitan Eliahu Sent: Thursday, October 16, 2014 10:03 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH] datapath-windows: Packet subscribe handler This cha

Re: [ovs-dev] [PATCH] datapath-windows: fix compilation error in release build

2014-10-16 Thread Ankur Sharma
Acked-by: Ankur Sharma From: Eitan Eliahu Sent: Thursday, October 16, 2014 10:59 AM To: Ankur Sharma Subject: FW: [PATCH] datapath-windows: fix compilation error in release build -Original Message- From: Eitan Eliahu [mailto:elia...@vmware.com

Re: [ovs-dev] [PATCH 2/2] datapath-windows: Fixes in OvsSetVportCmdHandler()

2014-10-15 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Wednesday, October 15, 2014 2:08 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 2/2] datapath-windows: Fixes in OvsSetVportCmdHandler() In this patch, we make a few simple

Re: [ovs-dev] [PATCH 1/2] datapath-windows: Add netlink command vport set

2014-10-15 Thread Ankur Sharma
Changes look fine. Please remove following comment /*XXX: this function is dummy */ Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Wednesday, October 15, 2014 2:08 PM To: dev@openvswitch.org Cc: Samuel Ghinet Subject: [ovs-dev] [PATCH

[ovs-dev] [PATCH v4] datapath-windows: netdev-windows fixes for vswitchd bringup.

2014-10-15 Thread Ankur Sharma
Added the handlers for update_flags and set_etheraddr. These handlers were needed for vswitchd bringup on windows platform. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju --- lib/netdev-windows.c | 83 +++- 1 file changed, 82 insertions(+), 1

[ovs-dev] [PATCH v3] datapath-windows: netdev-windows fixes for vswitchd bringup.

2014-10-15 Thread Ankur Sharma
Added the handlers for update_flags and set_etheraddr. These handlers were needed for vswitchd bringup on windows platform. Signed-off-by: Ankur Sharma --- lib/netdev-windows.c | 83 +++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git

[ovs-dev] [PATCH v2] datapath-windows: netdev-windows fixes for vswitchd bringup.

2014-10-15 Thread Ankur Sharma
Added the handlers for update_flags and set_etheraddr. These handlers were needed for vswitchd bringup on windows platform. Signed-off-by: Ankur Sharma --- lib/netdev-windows.c | 83 +++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git

[ovs-dev] [PATCH v5 5/5] datapath-windows: Action not supported error handling

2014-10-15 Thread Ankur Sharma
Added changes to support error handling for non supported actions. Added changes in packet execute for sending transactional errors. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju --- datapath-windows/ovsext/Actions.c | 4 +-- datapath-windows/ovsext/Netlink/NetlinkError.h

[ovs-dev] [PATCH v5 4/5] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-15 Thread Ankur Sharma
In this patch we have implemented the handler for OVS_PACKET_CMD_EXECUTE command. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu Acked-by: Nithin Raju --- datapath-windows/ovsext/User.c | 111 +++-- 1 file changed, 107 insertions(+), 4 deletions

[ovs-dev] [PATCH v5 3/5] datapath-windows: changes to existing PACKET_CMD handler.

2014-10-15 Thread Ankur Sharma
fer. OvsExecuteDpIoctl => We only need input buffer now. Hence Changed the function signature. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu Acked-by: Nithin Raju --- datapath-windows/include/OvsPub.h | 8 ++-- datapath-windows/ovsext/User.c| 22 +- datapath-windows/

[ovs-dev] [PATCH v5 2/5] datapath-windows: OVS_PACKET_CMD_EXECUTE command handler.

2014-10-15 Thread Ankur Sharma
In this patch we cover the basic registeration of OVS_PACKET_CMD_EXECUTE command handler. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu Acked-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c | 18 +- datapath-windows/ovsext/User.c | 18

[ovs-dev] [PATCH v5 1/5] datapath-windows: Making Flow parsing policies global.

2014-10-15 Thread Ankur Sharma
In this patch we have made the Flow parsing policies global. Pakcet execute handling requires these policies. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu Acked-by: Nithin Raju --- datapath-windows/ovsext/Flow.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[ovs-dev] [PATCH v4 2/5] datapath-windows: OVS_PACKET_CMD_EXECUTE command handler.

2014-10-15 Thread Ankur Sharma
In this patch we cover the basic registeration of OVS_PACKET_CMD_EXECUTE command handler. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu Acked-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c | 18 +- datapath-windows/ovsext/User.c | 18

[ovs-dev] [PATCH v4 3/5] datapath-windows: changes to existing PACKET_CMD handler.

2014-10-15 Thread Ankur Sharma
fer. OvsExecuteDpIoctl => We only need input buffer now. Hence Changed the function signature. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu Acked-by: Nithin Raju --- datapath-windows/include/OvsPub.h | 8 ++-- datapath-windows/ovsext/User.c| 22 +- datapath-windows/

[ovs-dev] [PATCH v4 1/5] datapath-windows: Making Flow parsing policies global.

2014-10-15 Thread Ankur Sharma
In this patch we have made the Flow parsing policies global. Pakcet execute handling requires these policies. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu Acked-by: Nithin Raju --- datapath-windows/ovsext/Flow.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[ovs-dev] [PATCH v4 4/5] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-15 Thread Ankur Sharma
In this patch we have implemented the handler for OVS_PACKET_CMD_EXECUTE command. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu --- datapath-windows/ovsext/User.c | 111 +++-- 1 file changed, 107 insertions(+), 4 deletions(-) diff --git a/datapath

[ovs-dev] [PATCH v4 5/5] datapath-windows: Action not supported error handling.

2014-10-15 Thread Ankur Sharma
Added changes to support error handling for non supported actions. Added changes in packet execute for sending transactional errors. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Actions.c | 4 +- datapath-windows/ovsext/Netlink/NetlinkError.h | 17

[ovs-dev] [PATCH v1] datapath-windows: netdev-windows fixes for vswitchd bringup.

2014-10-15 Thread Ankur Sharma
Added the handlers for update_flags and set_etheraddr. These handlers were needed for vswitchd bringup on windows platform. Signed-off-by: Ankur Sharma --- lib/netdev-windows.c | 78 +++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git

[ovs-dev] [PATCH v3 4/4] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-15 Thread Ankur Sharma
In this patch we have implemented the handler for OVS_PACKET_CMD_EXECUTE command. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu --- datapath-windows/ovsext/User.c | 111 +++-- 1 file changed, 108 insertions(+), 3 deletions(-) diff --git a/datapath

[ovs-dev] [PATCH v3 2/4] datapath-windows: OVS_PACKET_CMD_EXECUTE command handler.

2014-10-15 Thread Ankur Sharma
In this patch we cover the basic registeration of OVS_PACKET_CMD_EXECUTE command handler. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu --- datapath-windows/ovsext/Datapath.c | 18 +- datapath-windows/ovsext/User.c | 18 ++ datapath-windows/ovsext

[ovs-dev] [PATCH v3 3/4] datapath-windows: changes to existing PACKET_CMD handler.

2014-10-15 Thread Ankur Sharma
fer. OvsExecuteDpIoctl => We only need input buffer now. Hence Changed the function signature. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu --- datapath-windows/include/OvsPub.h | 8 ++-- datapath-windows/ovsext/User.c| 22 +- datapath-windows/ovsext/User.h| 4 +

[ovs-dev] [PATCH v3 1/4] datapath-windows: Making Flow parsing policies global.

2014-10-15 Thread Ankur Sharma
In this patch we have made the Flow parsing policies global. Pakcet execute handling requires these policies. Signed-off-by: Ankur Sharma Acked-by: Eitan Eliahu --- datapath-windows/ovsext/Flow.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/datapath-windows

[ovs-dev] [PATCH v3] datapath-windows: Transactional error fix for flow dump.

2014-10-14 Thread Ankur Sharma
My changes for trasacation error handling for not needed for dump commands. Fixed the same. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju Acked-by: Eitan Eliahu --- datapath-windows/ovsext/Flow.c | 61 +- 1 file changed, 18 insertions(+), 43

[ovs-dev] [PATCH v2 1/2] datapath-windows: Fix CtrlLock acquire issue in OvsReadEventCmdHandler

2014-10-14 Thread Ankur Sharma
OvsReadEventCmdHandler was calling OvsRemoveEventEntry after acquiring CtrlLock. OvsRemoveEventEntry in turn also tries to acquire the same lock. Added a new lock in Event.c for the eventQueue. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Event.c | 9 + 1 file changed, 5

[ovs-dev] [PATCH v2 2/2] datapath-windows: Transactional error fix for flow dump.

2014-10-14 Thread Ankur Sharma
My changes for trasacation error handling for not needed for dump commands. Fixed the same. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 50 +++--- 1 file changed, 13 insertions(+), 37 deletions(-) diff --git a/datapath-windows/ovsext

Re: [ovs-dev] [PATCH v1 1/2] datapath-windows: Fix CtrlLock acquire issue in OvsReadEventCmdHandler

2014-10-14 Thread Ankur Sharma
Hi Eitan, Sure, i will take care of this. I thought that CtrlLock is used for all the global resources. Thanks. Regards, Ankur From: Eitan Eliahu Sent: Tuesday, October 14, 2014 5:56 AM To: Ankur Sharma; dev@openvswitch.org Subject: RE: [ovs-dev] [PATCH

Re: [ovs-dev] [PATCH v1 1/2] datapath-windows: Fix CtrlLock acquire issue in OvsReadEventCmdHandler

2014-10-14 Thread Ankur Sharma
Hi Sorin, Sounds fair. I will introduce a new lock in v2. Thanks. Regards, Ankur From: Sorin Vinturis Sent: Monday, October 13, 2014 11:26 PM To: Ankur Sharma; dev@openvswitch.org Subject: RE: [ovs-dev] [PATCH v1 1/2] datapath-windows: Fix CtrlLock

[ovs-dev] [PATCH v1 1/2] datapath-windows: Fix CtrlLock acquire issue in OvsReadEventCmdHandler

2014-10-13 Thread Ankur Sharma
CtrlLock only. Apis OvsAcquireCtrlLock and OvsReleaseCtrlLock should be used for this purpose. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c | 3 ++- datapath-windows/ovsext/Event.c| 54 -- 2 files changed, 25 insertions(+), 32 deletions

[ovs-dev] [PATCH v1 2/2] datapath-windows: Transactional error fix for flow dump.

2014-10-13 Thread Ankur Sharma
My changes for trasacation error handling for not needed for dump commands. Fixed the same. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 50 +++--- 1 file changed, 13 insertions(+), 37 deletions(-) diff --git a/datapath-windows/ovsext

[ovs-dev] [PATCH v2 2/4] datapath-windows: OVS_PACKET_CMD_EXECUTE command handler.

2014-10-11 Thread Ankur Sharma
In this patch we cover the basic registeration of OVS_PACKET_CMD_EXECUTE command handler. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c | 18 +- datapath-windows/ovsext/User.c | 18 ++ datapath-windows/ovsext/User.h | 5 + 3

[ovs-dev] [PATCH v2 1/4] datapath-windows: Making Flow parsing policies global.

2014-10-11 Thread Ankur Sharma
In this patch we have made the Flow parsing policies global. Pakcet execute handling requires these policies. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/datapath-windows/ovsext/Flow.c b/datapath

[ovs-dev] [PATCH v2 4/4] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-11 Thread Ankur Sharma
In this patch we have implemented the handler for OVS_PACKET_CMD_EXECUTE command. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 104 - 1 file changed, 103 insertions(+), 1 deletion(-) diff --git a/datapath-windows/ovsext/User.c b

[ovs-dev] [PATCH v2 3/4] datapath-windows: changes to existing PACKET_CMD handler.

2014-10-11 Thread Ankur Sharma
fer. OvsExecuteDpIoctl => We only need input buffer now. Hence Changed the function signature. Signed-off-by: Ankur Sharma --- datapath-windows/include/OvsPub.h | 8 ++-- datapath-windows/ovsext/User.c| 17 +++-- datapath-windows/ovsext/User.h| 4 +--- 3 files changed, 6 inse

[ovs-dev] [PATCH v2 6/6] datapath-windows: Assert fix in Netlink.c

2014-10-11 Thread Ankur Sharma
NlBufAt should be called with valid boundary limits (within head and tail). Incorrect argument to NlBufAt was leading to assert hit, fixed the same. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju Tested-by: Nithin Raju --- datapath-windows/ovsext/Netlink/Netlink.c | 4 ++-- 1 file changed

[ovs-dev] [PATCH v2 3/6] datapath-windows: Reply for Flow Flush.

2014-10-11 Thread Ankur Sharma
Added changes to send a reply for FLOW_FUSH case. This is needed as with nithin's transaction reply changes we'll need reply for each command. This patch also contains minor fixes for sending replies in success case as well. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju ---

[ovs-dev] [PATCH v2 4/6] datapath-windows: Remove setting of replyLen to zero.

2014-10-11 Thread Ankur Sharma
This was one of the review comment which i forgot to address in FLOW_DUMP checkin. We do not need to explicitly set replyLen to zero as caller would have already set it. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju --- datapath-windows/ovsext/Flow.c | 6 -- 1 file changed, 6

[ovs-dev] [PATCH v2 5/6] datapath-windows: remove invalid assert.

2014-10-11 Thread Ankur Sharma
Assert(rc) would always hit for a valid case, hence replaced it with error code based check. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju Tested-by: Nithin Raju --- datapath-windows/ovsext/Flow.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datapath-windows

[ovs-dev] [PATCH v2 1/6] datapath-windows: Transactional error support in Flow commands.

2014-10-11 Thread Ankur Sharma
In this patch we added the code to handle transactional errors in flow commands. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 66 ++ datapath-windows/ovsext/Netlink/NetlinkError.h | 2 +- 2 files changed, 48 insertions(+), 20

[ovs-dev] [PATCH v2 2/6] datapath-windows: validate ETHERTYPE and ETHERNET attribute.

2014-10-11 Thread Ankur Sharma
During vswitchd boot up kernel is receiving FLOW_ADD commands without ETHERTYPE attribute. Added additional check for the same in this patch. During the same phase kernel is also receiving packet_execute with no ETHERNET attribute. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju --- datapath

Re: [ovs-dev] [PATCH 3/4] Upcall NL packet format: Creates a queue element to hold packet in NL format

2014-10-10 Thread Ankur Sharma
a. OvsGetUpcallMsgSize Should not we do alignment after getting the final size? b. /* XXX no need as the length is alreadt in the NL attrib */ Spelling typo. c. We can use NlFillOvsMsg for creating upcall message. Acked-by: Ankur Sharma From: dev on

Re: [ovs-dev] [PATCH 2/4] Upcall NL packet format: NL Flow utilities, parametrized Key to NL conversion

2014-10-10 Thread Ankur Sharma
OvsTunKeyAttrSize & OvsFlowKeyAttrSize, i think the function names are swapped. Acked-by: Ankur Sharma From: dev on behalf of Eitan Eliahu Sent: Friday, October 10, 2014 11:08 AM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 2/4] Upcall NL pa

Re: [ovs-dev] [PATCH 1/4] Upcall NL packet format: Add NL utilities

2014-10-10 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Eitan Eliahu Sent: Friday, October 10, 2014 11:08 AM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 1/4] Upcall NL packet format: Add NL utilities Add NlAttrSize and NlAttrTotalSize Signed-off-by

Re: [ovs-dev] [PATCH 4/4] Upcall NL packet format: Call NL missed packet function

2014-10-10 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Eitan Eliahu Sent: Friday, October 10, 2014 11:08 AM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 4/4] Upcall NL packet format: Call NL missed packet function Remove hard coded queue is, pass the key

Re: [ovs-dev] [PATCH v2] lib/netlink-socket.c: always pass the output buffer in a transaction

2014-10-10 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Eitan Eliahu Sent: Tuesday, October 7, 2014 8:01 PM To: Nithin Raju; dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH v2] lib/netlink-socket.c: always pass the output buffer in a transaction Hi Nithin

[ovs-dev] [PATCH v1 0/6] datapath-windows: bug fix in flow nl code.

2014-10-09 Thread Ankur Sharma
In this series we have fixed issues observed in flow netlink handler code observed during vswitch and datapath-windows integration. Ankur Sharma (6): datapath-windows: Transactional error support in Flow commands. datapath-windows: validate ETHERTYPE attribute. datapath-windows: Reply for

[ovs-dev] [PATCH v1 6/6] datapath-windows: Assert fix in Netlink.c

2014-10-09 Thread Ankur Sharma
NlBufAt should be called with valid boundary limits (within head and tail). Incorrect argument to NlBufAt was leading to assert hit, fixed the same. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Netlink/Netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[ovs-dev] [PATCH v1 4/6] datapath-windows: Remove setting of replyLen to zero.

2014-10-09 Thread Ankur Sharma
This was one of the review comment which i forgot to address in FLOW_DUMP checkin. We do not need to explicitly set replyLen to zero as caller would have already set it. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 6 -- 1 file changed, 6 deletions(-) diff --git a

[ovs-dev] [PATCH v1 2/6] datapath-windows: validate ETHERTYPE attribute.

2014-10-09 Thread Ankur Sharma
During vswitchd boot up kernel is receiving FLOW_ADD commands without ETHERTYPE attribute. Added additional check for the same in this patch. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/datapath

[ovs-dev] [PATCH v1 3/6] datapath-windows: Reply for Flow Flush.

2014-10-09 Thread Ankur Sharma
Added changes to send a reply for FLOW_FUSH case. This is needed as with nithin's transaction reply changes we'll need reply for each command. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) di

[ovs-dev] [PATCH v1 5/6] datapath-windows: remove invalid assert.

2014-10-09 Thread Ankur Sharma
Assert(rc) would always hit for a valid case, hence replaced it with error code based check. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datapath-windows/ovsext/Flow.c b/datapath-windows/ovsext/Flow.c

[ovs-dev] [PATCH v1 1/6] datapath-windows: Transactional error support in Flow commands.

2014-10-09 Thread Ankur Sharma
In this patch we added the code to handle transactional errors in flow commands. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Flow.c | 54 +++--- datapath-windows/ovsext/Netlink/NetlinkError.h | 32 ++- 2 files changed, 70 insertions

Re: [ovs-dev] [PATCH v1 3/3] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-06 Thread Ankur Sharma
: Monday, October 6, 2014 4:59 PM To: Ankur Sharma Cc: Subject: Re: [ovs-dev] [PATCH v1 3/3] datapath-windows: OVS_PACKET_CMD_EXECUTE handler. On Oct 6, 2014, at 4:23 PM, Ankur Sharma wrote: > In this patch we have implemented the handler for > OVS_PACKET_CMD_EXECUTE command. > > S

  1   2   3   >