[ovs-dev] [PATCH 2/2 v3] lib/dpif-netlink.c: add support for packet receive on Windows

2014-10-23 Thread Nithin Raju
as well. 3. Tested with pool size == 2 as well, though in this patch we set the pool size = 1. Signed-off-by: Nithin Raju --- lib/dpif-netlink.c | 348 +++ 1 files changed, 293 insertions(+), 55 deletions(-) diff --git a/lib/dpif-netlink.c

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

2014-10-23 Thread Nithin Raju
On Oct 22, 2014, at 5:21 PM, Nithin Raju wrote: > On Oct 21, 2014, at 5:24 PM, Ankur Sharma wrote: > >> Refactored CreateQueue function so that packets are enqueued to correct >> corresponding queue. >> >> Signed-off-by: Ankur Sharma > > Looks good mos

Re: [ovs-dev] [PATCH] datapath-windows: check for 'gOvsSwitchContext' in ValidateNetlinkCmd()

2014-10-23 Thread Nithin Raju
On Oct 15, 2014, at 10:08 PM, Eitan Eliahu wrote: > > Nithin, the DP commands are an exception. But, it does not make sense to > check if the driver got initialized in each of the handlers. > One simple way to handle the exception is to condition it by the Family ID > (not DP). >From your com

Re: [ovs-dev] [PATCH] datapath-windows: check for 'gOvsSwitchContext' in ValidateNetlinkCmd()

2014-10-23 Thread Nithin Raju
On Oct 23, 2014, at 8:51 AM, Eitan Eliahu wrote: > Acked-by: Eitan Eliahu > > > (we check for gOvsSwitchContext in each of the handlers so this check should > be removed and the user mode interface should be enabled only after the > extension is activated, will be addressed soon) Thanks Ei

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

2014-10-23 Thread Nithin Raju
On Oct 23, 2014, at 12:11 PM, Ankur Sharma wrote: > Refactored CreateQueue function so that packets are enqueued to correct > corresponding queue. > > Signed-off-by: Ankur Sharma LG. Thanks for incorporating the comments. Acked-by:

[ovs-dev] [PATCH 0/7] Get VXLAN ping to work in OVS headless mode

2014-10-23 Thread Nithin Raju
between 2 VMs on 2 Hyper-Vs - one physical and another virtual backed by VXLAN. d) Successful uninstallation after these tests. Nithin Raju (7): datapath-windows: re-init the list entry in OvsDeleteVportCmdHandler() datapath-windows: clarify externalVport datapath-windows: introd

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

2014-10-23 Thread Nithin Raju
In this patch, we add some explanation about the usage of 'externalVport' in the switch context. Also, we rename 'externalVport' to 'virtualExternalVport' in alignment with the explanation. Also, we rename 'numVports' to 'numHvVports' since ports

[ovs-dev] [PATCH 4/7] datapath-windows: OvsInitTunnelVport() and OvsInitBridgeInternalVport()

2014-10-23 Thread Nithin Raju
In this patch, we add the init functions for a Tunnel vport and a Bridge-internal vport. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c | 51 +- datapath-windows/ovsext/Vport.h |3 ++ 2 files changed, 52 insertions(+), 2 deletions

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

2014-10-23 Thread Nithin Raju
Add a OvsGetTunnelVport() for convenience. 7. Update ASSERTs() while cleaning up the switch. 8. Nuke OvsGetExternalVport() and OvsGetExternalMtu(). Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c | 138 --- datapath-windows/ovsext/Switch.c |

[ovs-dev] [PATCH 1/7] datapath-windows: re-init the list entry in OvsDeleteVportCmdHandler()

2014-10-23 Thread Nithin Raju
Without this patch, the kernel crashes when it tries to cleanup a port at unload time when a port has been previously deleted from userspace. Crash is in OvsRemoveAndDeleteVport() when we call into RemoveEntryList(). Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c |5

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

2014-10-23 Thread Nithin Raju
In this patch, we provide explanation and the reasoning for bridge-internal ports. The code to add such a port in come in later patch in the series. We also fix some formatting issues in PacketIO.c. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Actions.c | 13

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

2014-10-23 Thread Nithin Raju
another virtual backed by VXLAN. d) Successful uninstallation after these tests. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c

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

2014-10-23 Thread Nithin Raju
for a VXLAN port. 6. 'numNonHvVports' increments and decrements ONLY for ports that are added from OVS userspace but not present on the Hyper-V switch. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c | 236 -- datapath-windows

Re: [ovs-dev] [PATCH] [datapath-windows] BSOD when no event queue found

2014-10-24 Thread Nithin Raju
> > FOLLOWUP_NAME: MachineOwner > > > > MODULE_NAME: OVSExt > > > > IMAGE_NAME: OVSExt.sys > > > > DEBUG_FLR_IMAGE_TIMESTAMP: 54498bc5 > > > > BUCKET_ID_FUNC_OFFSET: 116 > > > > FAILURE_BUCKET_ID: AV_OVSExt!OvsWaitEventIoctl >

[ovs-dev] [PATCH] lib/netlink-socket.c: fix a couple of compilation warnings

2014-10-24 Thread Nithin Raju
Reported-by: Gurucharan Shetty Signed-off-by: Nithin Raju --- lib/netlink-socket.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 3b77b43..c9ec5d7 100644 --- a/lib/netlink-socket.c +++ b/lib/netlink-socket.c

Re: [ovs-dev] [PATCH] datapath-windows:Remove user mode instance from pid hash on process termination

2014-10-24 Thread Nithin Raju
> -Original Message- > From: Eitan Eliahu [mailto:elia...@vmware.com] > Sent: Thursday, October 23, 2014 11:04 PM > To: Nithin Raju > Cc: Eitan Eliahu > Subject: [PATCH] datapath-windows:Remove user mode instance from pid hash on > process termination > > The

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

2014-10-24 Thread Nithin Raju
It has been observed that when userspace generates and executes that packet, the source port of such a packet is set to the bridge-internal port. Currently, we allow encapsulation only if the source port is a VIF port or no port. We relax the check in this patch. Signed-off-by: Nithin Raju

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

2014-10-24 Thread Nithin Raju
The .update_flags function in netdev-windows was dummy. But we need to return the existing flags for link status to be shown as up in the confdb. There was a bug in copying the MAC address. We fix these two issues in this patch. Signed-off-by: Nithin Raju Co-Authored-by: Ankur Sharma --- lib

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

2014-10-24 Thread Nithin Raju
rt->isBridgeInternal == TRUE > > > 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 3/7] datapat

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

2014-10-24 Thread Nithin Raju
Alin & Ankur, I'd like to thank you for the prompt reviews. It really helps to make the cycle faster! -- Nithin ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2] datapath-windows:Remove user mode instance from pid hash on process termination

2014-10-27 Thread Nithin Raju
> Signed-off-by: Eitan Eliahu >> Acked-by: Sorin Vinturis >> Acked-by: Nithin Raju > > Applied, thanks! Ben, Is this patch applied? I just did a 'git pull', and don't see this patch. Should we be sending the rebased patch? Thanks, -- Nithin ___

[ovs-dev] [PATCH] INSTALL.Windows: minor updates to the SSL section

2014-10-27 Thread Nithin Raju
Signed-off-by: Nithin Raju --- INSTALL.Windows |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL.Windows b/INSTALL.Windows index 24d0bb7..bba0710 100644 --- a/INSTALL.Windows +++ b/INSTALL.Windows @@ -83,14 +83,14 @@ To get SSL support for Open vSwitch on

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

2014-10-28 Thread Nithin Raju
On Oct 28, 2014, at 8:44 AM, Ben Pfaff wrote: >> Signed-off-by: Nithin Raju > > Applied, thanks. > > I had to apply the following hunk by hand because of a change in the > context, please check that it is OK: > > diff a/datapath-windows/ovsext/Switch.c b/datap

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

2014-10-28 Thread Nithin Raju
The .update_flags function in netdev-windows was dummy. But we need to return the existing flags for link status to be shown as up in the confdb. There was a bug in copying the MAC address. We fix these two issues in this patch. Signed-off-by: Nithin Raju Co-Authored-by: Ankur Sharma Signed

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

2014-10-28 Thread Nithin Raju
On Oct 28, 2014, at 9:15 AM, Ben Pfaff wrote: > Ankur, since you're an author of this patch (according to > Co-authored-by), I instead need a Signed-off-by from you. > > Thanks, > > Ben. Ben, I sent out a v2 where I folded in Ankur's signed-off and Alin's ACK. Thanks, -- Nithin ___

Re: [ovs-dev] [PATCH] ovs-vsctl: Allow referring to rows whose names are UUIDs by those names.

2014-10-29 Thread Nithin Raju
> -Original Message- > From: Ben Pfaff [mailto:b...@nicira.com] > Sent: Wednesday, October 29, 2014 2:15 PM > To: dev@openvswitch.org > Cc: Ben Pfaff; Nithin Raju; Gurucharan Shetty > Subject: [PATCH] ovs-vsctl: Allow referring to rows whose names are UUIDs by > those

[ovs-dev] [PATCH 3/3] datapath-windows: increase the maximum size of port name

2014-10-29 Thread Nithin Raju
integration where we use UUID as the name. In this patch, we make the kernel code also use the same value as the userspace. Also updated is the OVS.psm1 powershell script which now allows friendly names to be upto 48 bytes. Signed-off-by: Nithin Raju --- build-aux/extract-odp-netlink-windows-dp-h

[ovs-dev] [PATCH 1/3] datapath-windows: nuke USE_NEW_VPORT_ADD_WORKFLOW

2014-10-29 Thread Nithin Raju
We were using USE_NEW_VPORT_ADD_WORKFLOW while transitioning from old workflow for adding ports. We don't need it anymore. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/datapath-wi

[ovs-dev] [PATCH 2/3] datapath-windws: fix locking code in OvsGetNetdevCmdHandler()

2014-10-29 Thread Nithin Raju
We were acquiring locks twice, and forgotten to release a lock in an error case. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index

Re: [ovs-dev] [PATCH 2/3] datapath-windws: fix locking code in OvsGetNetdevCmdHandler()

2014-10-30 Thread Nithin Raju
On Oct 30, 2014, at 8:27 AM, Eitan Eliahu wrote: > Hi Nithin, > Can you please revisit the locking sequence for the netdev handler? > It seems that OvsGetVportDumpNext() is called with the two locks, Dispatch > and Control held, (can we add a comment on it in the function header?). > But, the C

Re: [ovs-dev] [PATCH 2/3] datapath-windws: fix locking code in OvsGetNetdevCmdHandler()

2014-10-30 Thread Nithin Raju
> -Original Message- > From: Eitan Eliahu > Sent: Thursday, October 30, 2014 10:18 AM > To: Nithin Raju > Cc: dev@openvswitch.org > Subject: RE: [ovs-dev] [PATCH 2/3] datapath-windws: fix locking code in > OvsGetNetdevCmdHandler() > > Nithin, > It seems t

[ovs-dev] [PATCH 2/3 v2] datapath-windws: fix locking code in OvsGetNetdevCmdHandler()

2014-10-30 Thread Nithin Raju
We were acquiring locks twice, and forgotten to release a lock in an error case. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c

[ovs-dev] [PATCH 1/3 v2] datapath-windows: nuke USE_NEW_VPORT_ADD_WORKFLOW

2014-10-30 Thread Nithin Raju
We were using USE_NEW_VPORT_ADD_WORKFLOW while transitioning from old workflow for adding ports. We don't need it anymore. Signed-off-by: Nithin Raju Acked-by: Eitan Eliahu --- datapath-windows/ovsext/Vport.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff

[ovs-dev] [PATCH 3/3 v2] datapath-windows: increase the maximum size of port name

2014-10-30 Thread Nithin Raju
integration where we use UUID as the name. In this patch, we make the kernel code also use the same value as the userspace. Also updated is the OVS.psm1 powershell script which now allows friendly names to be upto 48 bytes. Signed-off-by: Nithin Raju Acked-by: Eitan Eliahu --- build-aux/extract

[ovs-dev] [PATCH] datapath-windows: don't leak NBLs with multiple NBs

2014-10-30 Thread Nithin Raju
Currently, if we receive an NBL with multiple NBs from NDIS, we just ASSERT() and not do anything. The right thing to do obviously is to process the NBL. This is a work in progress. In the meantime, we should complete the NBL and not just leak it. Signed-off-by: Nithin Raju --- datapath

[ovs-dev] [PATCH 1/3 v3] datapath-windows: nuke USE_NEW_VPORT_ADD_WORKFLOW

2014-10-30 Thread Nithin Raju
We were using USE_NEW_VPORT_ADD_WORKFLOW while transitioning from old workflow for adding ports. We don't need it anymore. Signed-off-by: Nithin Raju Acked-by: Eitan Eliahu --- datapath-windows/ovsext/Vport.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff

[ovs-dev] [PATCH 2/3 v3] datapath-windws: fix locking code in OvsGetNetdevCmdHandler()

2014-10-30 Thread Nithin Raju
We were acquiring locks twice, and forgotten to release a lock in an error case. Signed-off-by: Nithin Raju Acked-by: Eitan Eliahu --- datapath-windows/ovsext/Vport.c | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b

[ovs-dev] [PATCH 3/3 v3] datapath-windows: increase the maximum size of port name

2014-10-30 Thread Nithin Raju
integration where we use UUID as the name. In this patch, we make the kernel code also use the same value as the userspace. Also updated is the OVS.psm1 powershell script which now allows friendly names to be upto 48 bytes. Signed-off-by: Nithin Raju Acked-by: Eitan Eliahu --- build-aux/extract

Re: [ovs-dev] [PATCH 2/3 v2] datapath-windws: fix locking code in OvsGetNetdevCmdHandler()

2014-10-30 Thread Nithin Raju
> -Original Message- > From: Eitan Eliahu > Sent: Thursday, October 30, 2014 1:52 PM > To: Nithin Raju; dev@openvswitch.org > Subject: RE: [ovs-dev] [PATCH 2/3 v2] datapath-windws: fix locking code in > OvsGetNetdevCmdHandler() > > Nithin, > Just assert on

[ovs-dev] OVS for Hyper-V - no weekly meeting on 11/4

2014-11-03 Thread Nithin Raju
We'll have meeting on 11/11. Thanks, -- Nithin ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

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

2014-11-03 Thread Nithin Raju
> +function Set-VMNetworkAdapterOVSPortDirect { > +[CmdletBinding()] > +param > +( > +[parameter(Mandatory=$true)] > +[string]$vmName, > + > +[parameter(Mandatory=$true)] > +[ValidateLength(1, 48)] > +[string]$OVSPortName > +) > +process >

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

2014-11-04 Thread Nithin Raju
On Nov 3, 2014, at 2:33 PM, Eitan Eliahu wrote: > Thank for the review. > " Since you have declared $vmName as mandatory, is this check required?" > As I understand the "mandatory" parameter definition of PS means that the > parameter must be provided by the caller. If the parameter is not provi

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

2014-11-04 Thread Nithin Raju
s also not necessary. There were my original comments. One additional comment I had was to to rename 'vmName' to "VMName" in accordance to Windows naming conventions of using upper case for first letter. If you think having that checks serves a purpose. I am fine w

Re: [ovs-dev] [PATCH] Fix compilation error for Windows user-mode

2014-11-04 Thread Nithin Raju
put_bridge[] OVS_UNUSED, > + ovs_be32 *gw) > { > *gw = 0; > -name[0] = '\0'; > return false; > } LG. minor comment is to put a ' ' before 'char output_bridge[]'. Acked-by: Nithin Raju ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

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

2014-11-05 Thread Nithin Raju
> +case OID_SWITCH_PORT_UPDATED: > +HvDeletePort(switchObject, portParam); > +status = HvCreatePort(switchObject, portParam); > + break; hi Eitan, While this change is ok in general, can you pls. comment on how this code will work if the port is in CONNECTED state, and

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

2014-11-05 Thread Nithin Raju
On Nov 5, 2014, at 9:12 PM, Ankur Sharma wrote: > Signed-off-by: Ankur Sharma > --- > datapath-windows/ovsext/Flow.c | 2 -- > 1 file changed, 2 deletions(-) Acked-by: Nithin Raju ___ dev mailing list dev@openvswitch.org http://ope

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

2014-11-05 Thread Nithin Raju
On Nov 5, 2014, at 11:06 PM, Eitan Eliahu wrote: > Hi Nithin, > Actually ovsState will get updated from portParam->PortState in > OvsInitVportWithPortParam() so this should not be an issue. > But, there may be an issue with the nic parameters stored in the voprt. > Even when the documentation r

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

2014-11-05 Thread Nithin Raju
> The original code should work even when the port is connected. > The port structure is not being reallocated rather just marked as deleted. > The issue is with create port function which insert the port to do the port > list even when it is already created. This is true only if that port has b

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

2014-11-10 Thread Nithin Raju
hi Eitan, Thanks for the change. I had a few minor comments. I should be able to ACK a v3. > +/* Update properties only for NETDEV ports*/ > +if (vport == NULL || vport->ovsType != OVS_VPORT_TYPE_NETDEV) { > +status = STATUS_DATA_NOT_ACCEPTED; > +goto update_port_done; > +

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

2014-11-11 Thread Nithin Raju
Thanks for incorporating the review comments. Acked-by: Nithin Raju ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

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

2014-11-11 Thread Nithin Raju
A few fixes around locking. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index a46d49f..ff105b7 100644 --- a/datapath

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

2014-11-11 Thread Nithin Raju
;numHvPorts' at this point since this vport has been counted before when it was first allocated. To account for this, we add a new parameter to InitOvsVportCommon(). The arguments passed by some of the callers are not 100% correct, and will be fixed in future commit in the series. Signed-off-by: N

[ovs-dev] [PATCH 0/7] Fixes to re-add a Hyper-V port to OVS switch extn

2014-11-11 Thread Nithin Raju
In this series of patches we make a bunch of changes to be able to re-add a Hyper-V port to OVS. Known caveats are this code does not work if a internal or external port is deleted and re-added, since we over-write the friendly name. The code works for VIF ports. Nithin Raju (7): datapath

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

2014-11-11 Thread Nithin Raju
OvsInitVxlanTunnel() need not return a NL_ERROR. In this patch, we change it to NTSTATUS, and also update the mapping function that maps a NTSTATUS to NL_ERROR. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c |3 ++- datapath-windows/ovsext/Netlink

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

2014-11-11 Thread Nithin Raju
names. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c |2 +- datapath-windows/ovsext/Vport.c| 40 +++ datapath-windows/ovsext/Vport.h| 16 ++ 3 files changed, 34 insertions(+), 24 deletions(-) diff --git a/datapath

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

2014-11-11 Thread Nithin Raju
tables. If a port has been deleted from all the hash tables ie. has been deleted from Hyper-V as well as OVS userspace, it gets deallocated. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c | 38 +- datapath-windows/ovsext/Vport.c| 96

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

2014-11-11 Thread Nithin Raju
In this patch, we update the documentation for 'portIdHashArray' to indicate that a vport would exist in this hash table if and only if it also exists on the Hyper-V switch. This functionality to implement this semantic will follow in subsequent patches. Signed-off-by: Nithin Raju ---

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

2014-11-11 Thread Nithin Raju
re-added it back with and without the corresponding OVS port existing. - uninstall was succcessful. No asserts hit. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c | 69 +++ 1 files changed, 62 insertions(+), 7 deletions(-) diff --git a/datapa

Re: [ovs-dev] [PATCH] datapath-windows: Remove Hyper-V port name / Do not set the NDIS port state

2014-11-12 Thread Nithin Raju
On Nov 12, 2014, at 2:03 AM, Eitan Eliahu wrote: > [1] The NDIS port state should always reflect the port state maintained by >NDIS so it should never be directly updated. > [2] Remove the "port name" field as we use the "friendly name" instead. > > Signed-off-by: Eitan Eliahu Eitan, Nukin

Re: [ovs-dev] [PATCH] datapath-windows: Add functionality to return OVSPortName given a VM

2014-11-12 Thread Nithin Raju
| findstr ElementName > > Signed-off-by: Alin Gabriel Serdean Tested-by: Nithin Raju Acked-by: Nithin Raju Requested-by: Nithin Raju Reported-at: https://github.com/openvswitch/ovs-issues/issues/51 thanks, -- Nithin ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] INSTALL.Windows: Add a TODO for QOS.

2014-11-12 Thread Nithin Raju
On Nov 12, 2014, at 7:26 AM, Gurucharan Shetty wrote: > Also, remove the entry that talks about the need for atomic support > on Windows as that has already been added. > > Signed-off-by: Gurucharan Shetty Acked-by: Nithin Raju ___

Re: [ovs-dev] [PATCH 2/2] tests: Skip a sflow test for Windows.

2014-11-12 Thread Nithin Raju
> Signed-off-by: Gurucharan Shetty Acked-by: Nithin Raju Thanks, -- Nithin ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] datapath-windows: Remove Hyper-V port name / Do not set the NDIS port state

2014-11-12 Thread Nithin Raju
On Nov 12, 2014, at 9:08 AM, Eitan Eliahu wrote: > Thanks for the review Nithin. > We should not set the NDIS state to any state which is not what NDIS > maintains. If the state sent by NDIS is not Teardown the OVS port state > should not be Teardown (should probably be in error state or whate

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

2014-11-12 Thread Nithin Raju
On Nov 12, 2014, at 9:48 AM, Eitan Eliahu wrote: > I don't see a reason why this function need to be called with gOvsCtrlLock > held. The contention is on the Hyper-V VSwitch port when a port could be > removed from a different thread context. But, this is taken care of by > dispatch lock. Su

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

2014-11-12 Thread Nithin Raju
On Nov 12, 2014, at 9:30 AM, Eitan Eliahu wrote: > Hi Nithin, > For all port add/delete functionality we need to validate in three major port > states: > [1] The port exists on the Hyper-V Virtual Switch but there is not > corresponding port in OVS. > [2] The port exists in OVS user-mode but

[ovs-dev] [PATCH] Author: Nithin Raju

2014-11-12 Thread Nithin Raju
. Signed-off-by: Nithin Raju --- datapath-windows/DESIGN | 180 -- 1 files changed, 125 insertions(+), 55 deletions(-) diff --git a/datapath-windows/DESIGN b/datapath-windows/DESIGN index b438c44..f81dad0 100644 --- a/datapath-windows/DESIGN +++ b

[ovs-dev] [PATCH] datapath-windows: update DESIGN document

2014-11-12 Thread Nithin Raju
In this patch, we update the design document to reflect the netlink based kernel-userspace interface implementation and a few other changes. I have covered at a high level. Please feel free to extend the document with more details that you think got missed out. Signed-off-by: Nithin Raju

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

2014-11-17 Thread Nithin Raju
hi Ankur, Thanks for the review. I'll send out a v2 once all the patches get reviewed. On Nov 17, 2014, at 5:38 PM, Ankur Sharma wrote: > Minor comments inline. > > Acked-by: Ankur Sharma > +static POVS_VPORT_ENTRY OvsFindVportByHvNameW( > + POVS_SWITCH_CONTEXT switchContext, PWST

Re: [ovs-dev] [PATCH] datapath-windows: Removed all duplicate checking of

2014-11-17 Thread Nithin Raju
Sorin, Thanks for this patch. Even though it is committed, I had the following comments. It is nice to get rid of the checks to gOvsSwitchContext in multiple places. On thing though is that while a netlink command handler is being executed, we could get the detach handler from NDIS, and that mi

Re: [ovs-dev] [PATCH] datapath-windows: BSOD for a transactional NL cmd w/o dump state

2014-11-17 Thread Nithin Raju
hi Sorin, _FlowNlGetCmdHandler() is used for a Flow command sent down as a transaction as shown in the following code: NTSTATUS OvsFlowNlGetCmdHandler(POVS_USER_PARAMS_CONTEXT usrParamsCtx, UINT32 *replyLen)

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

2014-11-17 Thread Nithin Raju
hi Sorin, Like I mentioned in another review, pls. don't combine unrelated changes into one patch. Here I see a fix to buffer management code, and the other one is related to device handle cleanup. Can you pls. split them into separate reviews and send it as a series? For now, I've reviewed the

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

2014-11-17 Thread Nithin Raju
On Nov 17, 2014, at 9:39 AM, Sorin Vinturis wrote: > I came around a BSOD that happened when trying to access pidHashLock > from the gOvsSwitchContext, which was NULL. The stop happened in > OvsAcquirePidHashLock function. > > To reproduce this BSOD, make sure the extension is enabled and runni

Re: [ovs-dev] [PATCH] datapath-windows: Removed all duplicate checking of

2014-11-18 Thread Nithin Raju
hi Sorin, Pls. see my explanations inline. >>/* Concurrent netlink operations are not supported. */ >>if (InterlockedCompareExchange((LONG volatile *)&instance->inUse, 1, 0)) { >>status = STATUS_RESOURCE_IN_USE; @@ -891,7 +895,7 @@ >> ValidateNetlinkCmd(UINT32 devOp, >>

Re: [ovs-dev] [PATCH 1/2] datapath-windows: BSOD for a transactional NL cmd w/o dump state

2014-11-18 Thread Nithin Raju
ay: "Handler for dump-based OVS_FLOW_CMD_GET command" :) But, it does not matter. Acked-by: Nithin Raju ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/2] datapath-windows: Removed duplicate checking of previous dump state

2014-11-18 Thread Nithin Raju
ere's any > * previous state, clear it up so as to set it up afresh. > */ > -if (instance->dumpState.ovsMsg != NULL) { > -FreeUserDumpState(instance); > -} > +FreeUserDumpState(instance); Thanks for the cleanup. Acked-by: Nithin Raju

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

2014-11-18 Thread Nithin Raju
_openvswitch_ovs-2Dissues_issues_53&d=AAIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=pNHQcdr7B40b4h6Yb7FIedI1dnBsxdDuTLBYD3JqV80&m=vEsNeZnOUkZPbwbim_jaLF_M8X7XlDz7j7Cx6l9QqVY&s=9hmcwbIGTv6ar4IXXMTXnUSb-bvlM9T_s_RFHceIYek&e= > > Acked-by: Eitan Eliahu >

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

2014-11-18 Thread Nithin Raju
A few fixes around locking. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Vport.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index 2dc5f0a..33aa95e

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

2014-11-18 Thread Nithin Raju
In this patch, we update the documentation for 'portIdHashArray' to indicate that a vport would exist in this hash table if and only if it also exists on the Hyper-V switch. This functionality to implement this semantic will follow in subsequent patches. Signed-off-by: Nithin Raju ---

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

2014-11-18 Thread Nithin Raju
names. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c |2 +- datapath-windows/ovsext/Vport.c| 40 +++ datapath-windows/ovsext/Vport.h| 16 ++ 3 files changed, 34 insertions(+), 24 deletions

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

2014-11-18 Thread Nithin Raju
tables. If a port has been deleted from all the hash tables ie. has been deleted from Hyper-V as well as OVS userspace, it gets deallocated. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c | 38 +- datapath-windows/ovsext/Vport.c| 96

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

2014-11-18 Thread Nithin Raju
;numHvPorts' at this point since this vport has been counted before when it was first allocated. To account for this, we add a new parameter to InitOvsVportCommon(). The arguments passed by some of the callers are not 100% correct, and will be fixed in future commit in the series. Signed-off-

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

2014-11-18 Thread Nithin Raju
re-added it back with and without the corresponding OVS port existing. - uninstall was succcessful. No asserts hit. Signed-off-by: Nithin Raju Acked-by: Nithin Raju --- datapath-windows/ovsext/Vport.c | 69 +++ 1 files changed, 62 insertions(+), 7 deletions(

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

2014-11-18 Thread Nithin Raju
OvsInitVxlanTunnel() need not return a NL_ERROR. In this patch, we change it to NTSTATUS, and also update the mapping function that maps a NTSTATUS to NL_ERROR. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c |3 ++- datapath-windows

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

2014-11-18 Thread Nithin Raju
In this patch, we update the documentation for 'portIdHashArray' to indicate that a vport would exist in this hash table if and only if it also exists on the Hyper-V switch. This functionality to implement this semantic will follow in subsequent patches. Signed-off-by: Nithin Raju ---

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

2014-11-18 Thread Nithin Raju
;numHvPorts' at this point since this vport has been counted before when it was first allocated. To account for this, we add a new parameter to InitOvsVportCommon(). The arguments passed by some of the callers are not 100% correct, and will be fixed in future commit in the series. Signed-off-

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

2014-11-18 Thread Nithin Raju
tables. If a port has been deleted from all the hash tables ie. has been deleted from Hyper-V as well as OVS userspace, it gets deallocated. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c | 38 +- datapath-windows/ovsext/Vport.c| 96

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

2014-11-18 Thread Nithin Raju
OvsInitVxlanTunnel() need not return a NL_ERROR. In this patch, we change it to NTSTATUS, and also update the mapping function that maps a NTSTATUS to NL_ERROR. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c |3 ++- datapath-windows

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

2014-11-18 Thread Nithin Raju
A few fixes around locking. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Vport.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index 2dc5f0a..33aa95e

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

2014-11-18 Thread Nithin Raju
re-added it back with and without the corresponding OVS port existing. - uninstall was succcessful. No asserts hit. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Vport.c | 69 +++ 1 files changed, 62 insertions(+), 7 deletions(

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

2014-11-18 Thread Nithin Raju
names. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c |2 +- datapath-windows/ovsext/Vport.c| 40 +++ datapath-windows/ovsext/Vport.h| 16 ++ 3 files changed, 34 insertions(+), 24 deletions

Re: [ovs-dev] [PATCH] Fix build break in ofproto/tunnel.c for windows platform.

2014-11-19 Thread Nithin Raju
On Nov 18, 2014, at 4:49 PM, Saurabh Shah wrote: > The breakage was introduced by commit: a36de779 > ("openvswitch: Userspace tunneling."). > > Reported-by: Edwin Chiu > Signed-off-by: Saurabh Shah Acked-by: Nithin

[ovs-dev] [PATCH 1/2] datapath-windows: nuke non-netlink based interface

2014-11-19 Thread Nithin Raju
Signed-off-by: Nithin Raju --- datapath-windows/automake.mk |2 - datapath-windows/ovsext/Datapath.c |3 - datapath-windows/ovsext/Datapath.h |6 - datapath-windows/ovsext/Event.c| 88 datapath-windows/ovsext/Ioctl.c| 773

[ovs-dev] [PATCH 2/2] datpath-windows: include/OvsPub.h => ovsext/DpInternal.h

2014-11-19 Thread Nithin Raju
OvsPub.h is not longer the interface file that published the interface of the kernel datapath to userspace. Nevertheless it is still being used internal to the kernel datapath. We rename the file for this reason. Signed-off-by: Nithin Raju --- datapath-windows/automake.mk

[ovs-dev] [PATCH 1/2] datapath-windows: cleanup DpInternal.h

2014-11-19 Thread Nithin Raju
Getting rid of unused definitions in DpInternal.h. This is only the first round. There's scope for more cleanup. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/DpInternal.h | 171 +- datapath-windows/ovsext/IpHelper.c | 10 +- datapath-wi

[ovs-dev] [PATCH 2/2] datpaath-windows: consolidate check for output buffer

2014-11-19 Thread Nithin Raju
t the previous check to ASSERTs. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/datapath-windows/ovsext/Datapath.c b/datapath-windows/ovsext/Datapath.c index b67ba44..1440480 1

[ovs-dev] [PATCH] datapath-windows: rename 'hvDeleted' to 'isPresentOnHv'

2014-11-19 Thread Nithin Raju
ore appropriate. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c |2 +- datapath-windows/ovsext/Vport.c| 14 +++--- datapath-windows/ovsext/Vport.h|3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/datapath-windows/ovsext/Datapat

[ovs-dev] [PATCH v2] datpath-windows: consolidate checks for output buffer

2014-11-20 Thread Nithin Raju
t the previous check to ASSERTs. Signed-off-by: Nithin Raju Acked-by: Nithin Raju --- datapath-windows/ovsext/Datapath.c | 38 ++- 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/datapath-windows/ovsext/Datapath.c b/datapath-windows/ovsext/Datap

[ovs-dev] [PATCH v3] datpaath-windows: consolidate check for output buffer

2014-11-20 Thread Nithin Raju
t the previous check to ASSERTs. Signed-off-by: Nithin Raju Acked-by: Sorin Vinturis --- datapath-windows/ovsext/Datapath.c | 38 ++- 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/datapath-windows/ovsext/Datapath.c b/datapath-windows/ovsext/Datap

[ovs-dev] [PATCH 2/2 v3] datpaath-windows: consolidate check for output buffer

2014-11-20 Thread Nithin Raju
t the previous check to ASSERTs. Signed-off-by: Nithin Raju Acked-by: Sorin Vinturis --- datapath-windows/ovsext/Datapath.c | 38 ++- 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/datapath-windows/ovsext/Datapath.c b/datapath-windows/ovsext/Datap

[ovs-dev] [PATCH 1/2 v3] datapath-windows: cleanup DpInternal.h

2014-11-20 Thread Nithin Raju
Getting rid of unused definitions in DpInternal.h. This is only the first round. There's scope for more cleanup. Signed-off-by: Nithin Raju Acked-by: Sorin Vinturis --- datapath-windows/ovsext/DpInternal.h | 171 +- datapath-windows/ovsext/IpHelper.c |

<    2   3   4   5   6   7   8   9   10   >