Re: [ovs-dev] plan to integrate Hyper-V support

2014-07-24 Thread Nithin Raju
hi Ben, This is very reasonable. This will enable meaningful collaboration without duplicating effort. There are some indications of design choices that have seem different between the two implementations. Discussing about those things would be useful for the product. For Eg:. > * Cloudbase ha

Re: [ovs-dev] plan to integrate Hyper-V support

2014-07-25 Thread Nithin Raju
> > [5] Offload encapsulation is important for GENEVE as well. I would > expect NDIS support for it. We might a need special intermediate support > though. > > Agreed. I limited the list to VXLAN and GRE because that's what we had > ATM, but suppot GENEVE offloading support has definitely to be in

[ovs-dev] [PATCH] lib/lockfile.c: Fix the name of the lockfile on Windows

2014-07-25 Thread Nithin Raju
per Ben's suggestion. This fix is specific to Windows, since '/' is a valid character in a file or directory name in Linux. Signed-off-by: Nithin Raju --- lib/lockfile.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/lockfile.c b/lib/lockfile.c index 1ef6251..15a7e4

Re: [ovs-dev] [PATCH v2 0/3] Support for OVS datapath on Windows platform.

2014-07-25 Thread Nithin Raju
Alin, Saurabh shared the wireshark trace you sent him. I agree that the packets have protocol 0x01 - ICMP. So, ping packets are directly being sent over the wire without encap. To start with, let's clear out the following variables: 1. Is there a patch port at all between br-int and br-pif? I re

Re: [ovs-dev] plan to integrate Hyper-V support

2014-07-28 Thread Nithin Raju
10.00 AM Pacific - Sounds good to me. hi Alessandro, We'll be meeting tomorrow. In the light of that, we had the following items on mind that we could discuss. Pls. feel free to edit the list: 1. Helping Alin to run some tests successfully (with the V2 patch that Saurabh posted last week).

[ovs-dev] Meeting summary and action items (7/29)

2014-07-30 Thread Nithin Raju
hi Folks, Alessandro might be writing up a more detailed transcript of the IRC meeting we had on Tuesday. I just wanted to cover things at a high level: Attendees: >From VMware : Justin Pettit, Ben Pfaff, Guru Shetty, Saurabh, Ankur, Nithin >and Eitan >From Cloudbase: Alin Serdean and SamuelG, A

[ovs-dev] Documentation to get a working setup for OVS on Windows

2014-07-31 Thread Nithin Raju
hi Alin, In the light of issues filed on github that are a side effect of mis-configuration, I wanted to point out that we have documented the steps to get a basic working setup in INSTALL.Windows. There is documentation to setup a VXLAN network, and a VLAN network. I posted the same on one of t

Re: [ovs-dev] [PATCH] datapath-windows - fix crash when internal port is removed

2014-07-31 Thread Nithin Raju
On Aug 1, 2014, at 12:17 AM, Eitan Eliahu wrote: > BSOD while setting AllowManagementOS on $false #13 > https://urldefense.proofpoint.com/v1/url?u=https://github.com/openvswitch/ovs/issues/13&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=ubrOpIWavCMqX4l4j1LEVpTfDj%2FD5Qyn8KCoJIBGvzo%3D%0A&m=nJEdnLEDoAO

Re: [ovs-dev] [PATCH] datapath-windows - fix crash when internal port is removed

2014-07-31 Thread Nithin Raju
On Jul 31, 2014, at 5:22 PM, Eitan Eliahu wrote: > 3. If clearing the context from will be removed from > OvsCompleteNBLForwardingCtx then we need to call OvsClearTunCtx() on all > error paths of this function. Apply it only to this path does not buy > anything here. Currently, it does so.

Re: [ovs-dev] [PATCH] datapath-windows - fix crash when internal port is removed

2014-08-01 Thread Nithin Raju
ntext->internalVport == NULL) { > +OvsClearTunTxCtx(ovsFwdCtx); > +OvsCompleteNBLForwardingCtx(ovsFwdCtx, > +L"OVS-Dropped since internal port is absent"); > +return NDIS_STATUS_FAILURE; > +} > ovsFwdCtx->srcVportNo = > ((

[ovs-dev] Implementation for netlink based interface on Windows

2014-08-04 Thread Nithin Raju
hi, This is a followup to the discussion on 7/29 between the VMware and the Cloudbase teams working on OVS for Hyper-V, regarding Netlink based interface implementation between kernel and userspace. It was agreed that VMware folks would look at the kernel code posted on 7/29 by Cloudbase team, and

[ovs-dev] Items to discuss for 8/4 IRC meeting

2014-08-04 Thread Nithin Raju
hi Alessandro, We have the following items to discuss for tomorrow's meeting: 1. Netlink implementation. (A note has been sent out about this) 2. Discuss issues that Cloudbase found during their testing. 3. Followup from previous week. Like last week, pls. feel free to add more items. thanks, Ni

[ovs-dev] [PATCH] Add include/odp-netlink.h to build instructions in INSTALL.Windows

2014-08-05 Thread Nithin Raju
Since commit 837eefc7 (Do not seemingly #include Linux-specific headers on other platforms), openvswitch.h is being auto-generated as include/odp-netlink.h. On Windows, the auto-generated files are explicitly built. In this change, we update the list of auto-generated files to also refer to inclu

Re: [ovs-dev] Queuing packets to userspace and NBL info problem

2014-08-05 Thread Nithin Raju
This "issue" is not limited to missed packets only. This is applicable when there is a flow in the kernel as well. When a VIF requests IPsec offload, and such a packet needs to be tunneled, we might need to complete the IPsec offload requested before we encap the packet to form an outer packet.

[ovs-dev] [PATCH] Update build instructions INSTALL.Windows to do 'make'

2014-08-05 Thread Nithin Raju
We no-longer need to build individual targets on Windows. This information was lost when we committed the hyper-v changes to the repo. Resurrecting that information in this change. Also, added the testing instructions on how to setup a VLAN based network. Signed-off-by: Nithin Raju

Re: [ovs-dev] Queuing packets to userspace and NBL info problem

2014-08-05 Thread Nithin Raju
On Aug 5, 2014, at 7:24 AM, Samuel Ghinet wrote: > Hello Nithin, > > Even with having this IPSec problem: > a) The other NBL info items are still standing. > b) There is no IPSec worry for the cases where we do not do tunneling (I > believe). Yes and No. In general, we don't need to complete

Re: [ovs-dev] [PATCH] Update build instructions INSTALL.Windows to do 'make'

2014-08-05 Thread Nithin Raju
On Aug 5, 2014, at 10:36 AM, Ben Pfaff wrote: > On Tue, Aug 05, 2014 at 08:58:08AM -0700, Gurucharan Shetty wrote: >> On Tue, Aug 5, 2014 at 8:30 AM, Nithin Raju wrote: >>> We no-longer need to build individual targets on Windows. This information >>> was lost wh

Re: [ovs-dev] [PATCH] rename solution name

2014-08-05 Thread Nithin Raju
-windows/{extensions.sln => ovsext.sln} (100%) > > diff --git a/datapath-windows/extensions.sln b/datapath-windows/ovsext.sln > similarity index 100% > rename from datapath-windows/extensions.sln > rename to datapath-windows/ovsext.sln Acked-by: Nithin Raju __

Re: [ovs-dev] [PATCH] rename solution name

2014-08-05 Thread Nithin Raju
On Aug 5, 2014, at 1:47 PM, Ben Pfaff wrote: > diff --git a/datapath-windows/automake.mk b/datapath-windows/automake.mk I didn't realize that we have a datapath-windows/automake.mk. I missed this. My bad. -- Nithin ___ dev mailing list dev@openvswi

Re: [ovs-dev] datapath-windows: Could we rename the files please?

2014-08-05 Thread Nithin Raju
Sam, One thing to note is that there's thought that has gone into organizing the files by functionality, and the names of the files indicate so. For someone familiar with how a OVS datapath works, it should not take a lot of time to figure out which file implements a particular functionality. I

Re: [ovs-dev] [PATCH] Update to the ovsext.sln

2014-08-05 Thread Nithin Raju
o%3D%0A&m=N3EnO8zQgjzNalr%2FXQYRKqXm2MX%2BV4DSCCKbhVSAqGw%3D%0A&s=c412f105afd7a199178382e05d15138cee8df314113f9b485dcda14072fd41e3 > > Signed-off-by: Alin Gabriel Serdean > --- > datapath-windows/ovsext.sln | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) Acked-by: Nithin Raju We eventually want to get rid of support

Re: [ovs-dev] datapath-windows: Could we rename the files please?

2014-08-05 Thread Nithin Raju
Jarno >> >> (*) include directory and Linux compat code are exceptions, but >> usually that does not matter. include/openflow is about the only >> significant directory there, and it is rather stable :-) >> >>> On Aug 5, 2014, at 3:43 PM, Nithin Raju

Re: [ovs-dev] datapath-windows: Could we rename the files please?

2014-08-06 Thread Nithin Raju
On Aug 6, 2014, at 2:48 AM, Samuel Ghinet wrote: > Hello Nithin, > > I'd like to highlight two points here: > 1. the "datapath" on linux doesn't have all files Ovs-prefixed. I don't think > there's a specific requirement for datapath-windows for that. Sure, we don't have a requirement that t

Re: [ovs-dev] [PATCH 03/15] datapath-windows: Add WinlProtocol

2014-08-06 Thread Nithin Raju
hi Sam, Thanks for posting the patch series. We'll review them. I am a little confused the netlink patch. From the IRC meeting on 8/5, my understanding is that we'd come up with a proposal for how to go about making these changes: VMware would come up with something on the kernel side, and clou

Re: [ovs-dev] datapath-windows: Could we rename the files please?

2014-08-06 Thread Nithin Raju
On Aug 6, 2014, at 11:07 AM, Saurabh Shah wrote: > My 2 cents, I am not in favor of redoing the directory structure in the > anticipation of it becoming more complex. When/If it becomes complex, we > can do the re-structuring. I donĀ¹t see any need to do it right now. I agree with Saurabh on thi

Re: [ovs-dev] [PATCH 02/15] datapath-windows: Move and Rename files

2014-08-06 Thread Nithin Raju
On Aug 6, 2014, at 12:36 PM, Alin Serdean wrote: > One another thing that comes to mind would be to have filenames in lowercase, > but maybe that is just me. Alin, Windows seems to encourage CamelCasing. Hence we named the files as such. -- Nithin _

Re: [ovs-dev] Design notes for provisioning Netlink interface from the OVS Windows driver (Switch extension)

2014-08-06 Thread Nithin Raju
Eitan, Thanks so much for writing this up. This should clarify the questions that the folks had during the IRC meeting. Alin, Pls. feel free to send out a writeup if you have anything to discuss regarding the changes in dpif-linux.c. If not, if you can cleanup dpif-linux.c, and submit it with t

Re: [ovs-dev] Recent series of patches

2014-08-06 Thread Nithin Raju
BTW, CONTRIBUTING file mentions a "Reported-at: " that we could use to provide specific links to the issue addressed. -- Nithin On Aug 6, 2014, at 2:01 PM, Saurabh Shah wrote: >> Since our issue tracker is in a different repo from the code, I think you >> need >> to reference issues in the f

Re: [ovs-dev] Design notes for provisioning Netlink interface from the OVS Windows driver (Switch extension)

2014-08-06 Thread Nithin Raju
On Aug 6, 2014, at 2:12 PM, Alin Serdean wrote: > I will have it in mind when I will write the patches for dpif. If I have > further questions can I get back to you Eitan? Absolutely, we'll start working on the patches based on this design, and while we do so, we'll leverage existing code as

Re: [ovs-dev] [PATCH] odp-netlink.h: Autogenerate a version of odp-netlink for windows kernel.

2014-08-06 Thread Nithin Raju
approach, this patch looks good to me. Acked-by: Nithin Raju thanks, Nithin On Aug 6, 2014, at 4:30 PM, Ankur Sharma wrote: > odp-netlink.h: Autogenerate a version of odp-netlink for windows kernel. > > Autogenerated odp-netlink.h will not compile with windows kernel, as >

Re: [ovs-dev] Design notes for provisioning Netlink interface from the OVS Windows driver (Switch extension)

2014-08-07 Thread Nithin Raju
rdean; dev@openvswitch.org; Rajiv Krishnamurthy; Ben Pfaff; > Kaushik Guha; Ben Pfaff; Justin Pettit; Nithin Raju; Ankur Sharma; Samuel > Ghinet; Linda Sun; Keith Amidon > Subiect: RE: Design notes for provisioning Netlink interface from the OVS > Windows driver (Switch extension)

[ovs-dev] Agenda for IRC neeting for 8/13

2014-08-11 Thread Nithin Raju
hi folks, Here are the items to discuss. Pls. feel free to fill in more items. 1. Netlink implementation discussion - design discussions, status. 2. Discussion about the persistent ports patch that Cloudbase is tasked with. 3. Discussion about P0 issues. 4. Discussion of other issues. 5. Samuel's

Re: [ovs-dev] Agenda for IRC neeting for 8/13

2014-08-11 Thread Nithin Raju
On Aug 11, 2014, at 10:04 AM, Ben Pfaff wrote: > On Mon, Aug 11, 2014 at 04:19:41PM +0000, Nithin Raju wrote: >> 5. Samuel's reviews: >> * I'll let Sam and Alin fill this in. > > I hope that code reviews will be mainly on the mailing list. That's

Re: [ovs-dev] [PATCH v2] odp-netlink.h: Autogenerate a version of odp-netlink for windows kernel.

2014-08-11 Thread Nithin Raju
On Aug 11, 2014, at 4:01 PM, Ankur Sharma wrote: > Hi Ben, > > Thanks a lot for your reply. > > The reason we did not generate header file in build directory is because as > of now the windows datapath build is not coupled with user-space build. > The userspace build system is 'make' and com

[ovs-dev] [PATCH] datapath-windows: check source port during tunnel Tx

2014-08-12 Thread Nithin Raju
pif-windows.c): - Was able to perform VTEP <-> VTEP ping with the configuration posted in the issue. - Was able to perform VIF <-> VIF ping when the setup was configured correctly. Signed-off-by: Nithin Raju Reported-by: Alin Serdean Reported-at: https://github.com/openvsw

Re: [ovs-dev] [PATCH] datapath-windows: Create a NBL for each NB when required

2014-08-13 Thread Nithin Raju
Samuel, Were you able to test cases where the multiple NBL case originated from a VM, and was subject to tunneling? I'll look at your patch. thanks, Nithin On Aug 13, 2014, at 7:25 AM, Samuel Ghinet wrote: > Create a NBL for each NB when required > > ovs/ovs-issues#15 > > All NET_BUFFERs o

Re: [ovs-dev] Design notes for provisioning Netlink interface from the OVS Windows driver (Switch extension)

2014-08-13 Thread Nithin Raju
On Aug 13, 2014, at 7:05 AM, Samuel Ghinet wrote: > [QUOTE]The driver does not care about multiple threads concurrently executing > dump as any DeviceIOContol will be self-contained. Also, the user mode > implementation guarantees that there are no simultaneous dumps for a given > socket.[/

Re: [ovs-dev] datapath-windows: Renaming files proposal

2014-08-13 Thread Nithin Raju
Sam, OvsDpInterface.h is basically the OVS datapath's interface. It is being generated in a separate directory - sort of public for the datapath - to be sure. I'm inclined to leave the Ovs keyword alone for this 'OVS interface' file. Is that reasonable? thanks, Nithin On Aug 13, 2014, at 8:11

Re: [ovs-dev] Agenda for IRC neeting for 8/13

2014-08-13 Thread Nithin Raju
comments and have discussions on the ML itself. Just wanted to communicate this. thanks, Nithin On Aug 11, 2014, at 9:19 AM, Nithin Raju mailto:nit...@vmware.com>> wrote: hi folks, Here are the items to discuss. Pls. feel free to fill in more items. 1. Netlink implementation disc

Re: [ovs-dev] [PATCH] datapath-windows: check source port during tunnel Tx

2014-08-13 Thread Nithin Raju
On Aug 13, 2014, at 8:24 AM, Alin Serdean wrote: > I will take a look over the patch after the meeting. Sounds good. thanks, Nithin ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] datapath-windows: Renaming files proposal

2014-08-13 Thread Nithin Raju
On Aug 13, 2014, at 8:29 AM, Samuel Ghinet wrote: > However, I would remove "Ovs" from OvsPub.h and OvsNetlink.h. > Would that be ok to you? Totally fine! OvsPub.h is the legacy interface and will be nuked as soon as the netlink based interface is ready. OvsNetlink.h will be moved back within

Re: [ovs-dev] [PATCH] datapath-windows: Create a NBL for each NB when required

2014-08-13 Thread Nithin Raju
Sure. I'll take a look. There may be some complications with the existing code if we process an NBL with multiple NBs through tunneling. Maybe your changes fixes some of it. -- Nithin On Aug 13, 2014, at 9:00 AM, Samuel Ghinet wrote: > Hello Nithin, > > I did only a very basic test for thi

Re: [ovs-dev] [PATCH] datapath-windows: check source port during tunnel Tx

2014-08-13 Thread Nithin Raju
On Aug 13, 2014, at 1:07 PM, Alin Serdean wrote: > Very sporadic times. > > Will continue my testing and review tomorrow. > > Just wanted to let you know :). Thanks Alin for the review and validation. I also left a VIF <-> VIF VXLAN based ping overnight. Still going strong. -- Nithin

Re: [ovs-dev] datapath-windows: Renaming files proposal

2014-08-13 Thread Nithin Raju
. Thanks! -- Nithin From: Ankur Sharma Sent: Wednesday, August 13, 2014 4:31 PM To: Saurabh Shah; Samuel Ghinet; Nithin Raju Cc: dev@openvswitch.org Subject: RE: [ovs-dev] datapath-windows: Renaming files proposal Correct, i think userspace interaction headers should have Ovs prefix. Regards, A

Re: [ovs-dev] datapath-windows: Renaming files proposal

2014-08-13 Thread Nithin Raju
On Aug 13, 2014, at 5:21 PM, Samuel Ghinet mailto:sghi...@cloudbasesolutions.com>> wrote: OvsEth.h -> Ethernet.h [TELL ME IF YOU PREFER "Eth.h"] I like Eth.h, just my opinion though. The following will be left intact: OvsDpInterface.h Because it is a userspace interaction file and it is a gen

Re: [ovs-dev] datapath-windows: Renaming files proposal

2014-08-13 Thread Nithin Raju
On Aug 13, 2014, at 5:32 PM, Samuel Ghinet mailto:sghi...@cloudbasesolutions.com>> wrote: I meant, tell me whether you prefer Eth.h or Ethernet.h I have a slight preference for Ethernet.h, but it's no big deal to me. hi Sam, Since you are making the change, I'll go with your preference. Etherne

[ovs-dev] [PATCH 4/4] netlink-socket.c: implement get pid support on Windows

2014-08-13 Thread Nithin Raju
being checked in. Signed-off-by: Nithin Raju --- lib/netlink-socket.c | 68 +++-- 1 files changed, 54 insertions(+), 14 deletions(-) diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 3dbfe59..e7449c2 100644 --- a/lib/netlink-socket.c +++

[ovs-dev] [PATCH 2/4] datapath-windows: Add OvsDatapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-13 Thread Nithin Raju
27;ll turn it to 1. Since OvsDatapath.[ch] containes code copied from OvsIoctl.[ch], acking the original author as well. Signed-off-by: Nithin Raju Co-authored-by: Guolin Yang --- datapath-windows/ovsext/OvsActions.c |1 - datapath-windows/ovsext/OvsDatapath.c |

[ovs-dev] [PATCH 1/4] Add extentions to the standard datapath interface

2014-08-13 Thread Nithin Raju
OvsDpInterfaceExt.h. Also, we define three ioctls in OvsDpInterfaceExt.h: read: provides an output buffer (mimics a recv) write:provides an input buffer (mimics a send) transact: provides an input and optionally an output buffer. (mimics a send followed by recv) Signed-off-by: Nithin Raju

[ovs-dev] [PATCH 3/4] datapath-windows: add infrastructure for supporting netlink

2014-08-13 Thread Nithin Raju
recv, send, and send-recv in userspace netlink. This interface is subject to change as iron out the details of the user-kernel interface for operations around packet receive, events, dump, etc. We also turn on OVS_USE_NL_INTERFACE to 1 in the ovsext project. Signed-off-by: Nithin Raju --- datapath

Re: [ovs-dev] Agenda for IRC neeting for 8/13

2014-08-14 Thread Nithin Raju
hi, I just wanted to send out the meeting minutes for any future reference: Attendees: Alin Serdean, Samuel Ghinet, Ankur Sharma, Saurabh Shah, Ben Pfaff, Nithin Raju. 1. Netlink implementation discussion - design discussions, status

[ovs-dev] [PATCH] datapath-windows: define a OVS_VPORTNO_DEFAULT instead of using 0

2014-08-14 Thread Nithin Raju
Signed-off-by: Nithin Raju --- datapath-windows/ovsext/OvsActions.c |2 +- datapath-windows/ovsext/OvsSwitch.h |1 + datapath-windows/ovsext/OvsUser.c|3 ++- datapath-windows/ovsext/OvsVport.c | 10 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a

Re: [ovs-dev] [PATCH] datapath-windows: check source port during tunnel Tx

2014-08-14 Thread Nithin Raju
> I saw that Ben already applied this patch yesterday. However, I just have one > comment below. Np. I'll take care of review comments in a followup patch. >> +/* >> + * Tx: >> + * The destination port is a tunnel port. Encapsulation must be >> + * performed only

Re: [ovs-dev] [PATCH 2/4] datapath-windows: Add OvsDatapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-14 Thread Nithin Raju
On Aug 14, 2014, at 4:41 PM, Ankur Sharma wrote: > Changes are fine (if we want to keep both devices till netlink integration > is done). > Lets wait for alin/sam's comments as well. Thanks. I am keeping the 2 devices, since that is what we communicated in the design document. I'll check wit

Re: [ovs-dev] [PATCH] Add build of ovsext.sln using MSBuild

2014-08-14 Thread Nithin Raju
Alin, Thanks for making this change. It is great that we can build via command line now. Some comments I had are: 1. Somewhere at the top we should mention that the 'forwarding extension' is a 'kernel driver'. For someone now familiar with Windows, it might make it more obvious as to which is t

Re: [ovs-dev] [PATCH 1/4] Add extentions to the standard datapath interface

2014-08-14 Thread Nithin Raju
On Aug 14, 2014, at 5:01 PM, Saurabh Shah wrote: >> +#define OVS_DEVICE_NAME_USER TEXT(".\\OpenVSwitchDevice") >> + > > Should be "OpenvSwitchDevice". Sure. I'll change this. >> +#ifdef _WIN32 >> +#include "OvsDpInterfaceExt.h" >> +#endif > > Since we define & control the dp interface,

Re: [ovs-dev] [PATCH 1/4] Add extentions to the standard datapath interface

2014-08-14 Thread Nithin Raju
On Aug 14, 2014, at 5:56 PM, Nithin Raju wrote: >> Since we define & control the dp interface, why not just include >> OvsDpInterfaceExt.h directly? (Just like what we used to do earlier by >> including OvsPub.h.) > > If we include OvsDpInterfaceExt.h, we'll

Re: [ovs-dev] [PATCH] datapath-windows: define a OVS_VPORTNO_DEFAULT instead of using 0

2014-08-14 Thread Nithin Raju
On Aug 14, 2014, at 4:46 PM, Saurabh Shah wrote: > $ grep PORT_NO datapath-windows/include/OvsPub.h > #define OVS_DEFAULT_PORT_NO 0x I named it the way you had suggested initially, then changed it to OVS_VPORTNO_DEFAULT, since other constants in the file were named like OVS__DEFAULT_

Re: [ovs-dev] [PATCH 3/4] datapath-windows: add infrastructure for supporting netlink

2014-08-14 Thread Nithin Raju
On Aug 14, 2014, at 4:53 PM, Ankur Sharma wrote: > a. I think we should add the cmd handler installation in following format: > > /* Netlink control family: this is a Windows specific family. */ > NETLINK_CMD nlControlFamilyCmdOps[] = { >{OVS_CTRL_CMD_WIN_GET_PID, OvsGetPidCmdHandler, OVS_TR

Re: [ovs-dev] [PATCH 2/4] datapath-windows: Add OvsDatapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-14 Thread Nithin Raju
On Aug 14, 2014, at 5:08 PM, Saurabh Shah wrote: > Naming the file OvsIoctl.[ch] seems much clearer to me. I don't know why > these files are being renamed. Also, if these are not going to be shared with > the userspace, you should drop the Ovs prefix from the file name. hi Saurabh, The legac

[ovs-dev] [PATCH 1/4 v2] Add extentions to the standard datapath interface

2014-08-14 Thread Nithin Raju
OvsDpInterfaceExt.h. Also, we define three ioctls in OvsDpInterfaceExt.h: read: provides an output buffer (mimics a recv) write:provides an input buffer (mimics a send) transact: provides an input and optionally an output buffer. (mimics a send followed by recv) Signed-off-by: Nithin Raju

[ovs-dev] [PATCH 4/4 v2] netlink-socket.c: implement get pid support on Windows

2014-08-14 Thread Nithin Raju
being checked in. Signed-off-by: Nithin Raju --- lib/netlink-socket.c | 94 +++--- 1 files changed, 74 insertions(+), 20 deletions(-) diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 3dbfe59..45bbd9b 100644 --- a/lib/netlink-socket.c +++

[ovs-dev] [PATCH 2/4 v2] datapath-windows: Add Datapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-14 Thread Nithin Raju
rn it to 1. Since Datapath.[ch] containes code copied from OvsIoctl.[ch], acking the original author as well. Signed-off-by: Nithin Raju Co-authored-by: Guolin Yang --- datapath-windows/ovsext/Datapath.c | 407 datapath-windows/ovsext/{OvsIoctl.h => Da

[ovs-dev] [PATCH 3/4 v2] datapath-windows: add infrastructure for supporting netlink

2014-08-14 Thread Nithin Raju
recv, send, and send-recv in userspace netlink. This interface is subject to change as iron out the details of the user-kernel interface for operations around packet receive, events, dump, etc. We also turn on OVS_USE_NL_INTERFACE to 1 in the ovsext project. Signed-off-by: Nithin Raju --- datapath

Re: [ovs-dev] [PATCH] datapath-windows: define a OVS_VPORTNO_DEFAULT instead of using 0

2014-08-14 Thread Nithin Raju
On Aug 14, 2014, at 7:03 PM, Saurabh Shah wrote: > Can your rename OVS_VPORTNO_DEFAULT to something else? Having two defaults > with similar name, but different value is confusing. My bad, I didn't realize that you had pointed me to OVS_DEFAULT_PORT_NO earlier. New patch will be up on a bit.

[ovs-dev] [PATCH v3] datapath-windows: Use OVS_DEFAULT_PORT_NO instead of 0 in a few places

2014-08-14 Thread Nithin Raju
Signed-off-by: Nithin Raju --- datapath-windows/ovsext/OvsActions.c |2 +- datapath-windows/ovsext/OvsUser.c|3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/datapath-windows/ovsext/OvsActions.c b/datapath-windows/ovsext/OvsActions.c index 635becc..321f53a

Re: [ovs-dev] [PATCH 1/4 v2] Add extentions to the standard datapath interface

2014-08-15 Thread Nithin Raju
On Aug 15, 2014, at 1:24 PM, Ben Pfaff wrote: > I'm fine with this. I'd like someone else to review the actual > Windows-specific bits. Thanks Ben. Ankur and Saurabh have reviewed the Windows bits and are fine with it. I am waiting for Alin and Samuel's review. thanks, Nithin ___

Re: [ovs-dev] [PATCH 01/15] datapath-windows: Update CodingStyle

2014-08-15 Thread Nithin Raju
Samuel, Thanks for writing this up. I don't agree with some of them, but do like some of the suggestions. I am actually encouraged that the CodingStyle for datapath-windows is evolving. > - For types, use all upper case for all letters with words separated by '_'. > If > - camel casing is pre

Re: [ovs-dev] [PATCH 3/4] Changes needed to compile dpif-linux.c with MSVC

2014-08-15 Thread Nithin Raju
On Aug 13, 2014, at 8:16 AM, Alin Serdean wrote: > The following changes are just a start to begin a discussion. > > Bypass all epoll functionality. > > IOCP work the other way around than epoll: you get if the operation finished > for a HANDLE in contrast of getting the number of file descrip

Re: [ovs-dev] [PATCH] datapath-windows: Create a NBL for each NB when required

2014-08-15 Thread Nithin Raju
On Aug 13, 2014, at 7:25 AM, Samuel Ghinet wrote: > Create a NBL for each NB when required > > ovs/ovs-issues#15 > > All NET_BUFFERs of a NET_BUFFER_LIST must go through > the pipeline: extract, find flow, execute. Previously, > only the first NET_BUFFER of a NET_BUFFER_LIST was going > throug

Re: [ovs-dev] [PATCH 11/15] datapath-windows: Add RefCount.h

2014-08-15 Thread Nithin Raju
On Aug 6, 2014, at 9:14 AM, Samuel Ghinet wrote: > How it works: > Say we have a list of OVS_FLOWs, where OVS_FLOW uses OVS_REF_COUNT. > > * The OVS_REF_COUNT must be initialized to 0 at object creation. > * Assign a destruction function to the func ptr "Destroy" of OVS_REF_COUNT. > * When you

Re: [ovs-dev] [PATCH 10/15] datapath-windows: Compile as C by default

2014-08-15 Thread Nithin Raju
hi Sam, I don't understand this change completely. Can you pls. give some background? If someone else can ack it, that is fine with me. > - Condition="'$(Configuration)|$(Platform)'=='Win8.1 > Debug|x64'">..\..\datapath\linux\compat\include\linux;$(IntDir);%(AdditionalIncludeDirectories);.

Re: [ovs-dev] [PATCH 07/15] datapath-windows: Replace Types.h

2014-08-15 Thread Nithin Raju
On Aug 6, 2014, at 9:11 AM, Samuel Ghinet wrote: > Replace Types.h > > The coding style on windows kernel is to use uppercase for all types. This > also applies to builtin types. > We shouldn't use int64_t, uint64_t, etc. Instead, we should use windows style > builtin types: INT64, UINT64, et

Re: [ovs-dev] [PATCH 09/15] datapath-windows: Add macros in Debug.h

2014-08-15 Thread Nithin Raju
Sam, There are lot of assumptions here about how code should be structured and written. eg. there's an implicit assumption that 'Cleanup' should be defined. Let's table this for sometime till we get the current code starts working with netlink. If you can point me to some code what is using the

Re: [ovs-dev] [PATCH 12/15] datapath-windows: Add FixedSizedArray

2014-08-15 Thread Nithin Raju
Samuel, Is this a pre-cursor for implementing the persistent ports feature that the cloudbase repo had implemented. We really liked that feature to be able to set the port name from userspace. Can the persistent port patch be implemented on the of the VPORT array data structure we have today in

Re: [ovs-dev] [PATCH 13/15] datapath-windows: Add Core.h

2014-08-16 Thread Nithin Raju
Sam, I don't have a strong opinion here. I am fine if you want to change the utility functions in OvsUtil.c to allocate and free the memory. These are different implementations to do the same thing, and not significantly different. If you want to go ahead and make this change, pls. make it in Ov

Re: [ovs-dev] Netlink Reviews

2014-08-18 Thread Nithin Raju
; I will try to take a look over the patches if I get a chance. >> >> Thank you for looking up our patches. >> >> Thanks, >> Alin. >> >> -Mesaj original- >> De la: Nithin Raju [mailto:nit...@vmware.com] >> Trimis: Friday, August 15, 201

Re: [ovs-dev] Netlink Reviews

2014-08-18 Thread Nithin Raju
On Aug 18, 2014, at 7:19 AM, Nithin Raju wrote: > +ovs-dev > > hi Sam/Alin, > I want to propose that I can go ahead get my patches committed, since we am > working on more patches that are dependent on this. Any review comments that > I get from you folks, I'll

Re: [ovs-dev] [PATCH 2/4 v2] datapath-windows: Add Datapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-18 Thread Nithin Raju
On Aug 18, 2014, at 5:17 PM, Alin Serdean wrote: > Good place to start in my opinion but I will leave the final review to Sam > because he is working on the Netlink integration part aswell. Alin, Thanks for taking a look late into the night :) So, I'll take this as an ACK from you. It is fin

Re: [ovs-dev] [PATCH 1/4 v2] Add extentions to the standard datapath interface

2014-08-18 Thread Nithin Raju
On Aug 18, 2014, at 5:14 PM, Alin Serdean wrote: > I'm fine with this patch with the idea in mind that OvsDpInterfaceExt.h can > be added to odp-netlink.h. Not sure about the name though :). Alin, As the name indicates, the idea is to add "extensions" to the DP interface. We could add the co

Re: [ovs-dev] [PATCH 2/4 v2] datapath-windows: Add Datapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-18 Thread Nithin Raju
On Aug 18, 2014, at 5:35 PM, Alin Serdean wrote: > I worked mostly on the userspace last week and Sam worked on multiple NB to > NBL. > > I will redo my patches with the build and userspace somewhere tomorrow and > will repost Sam's patch (we spent some time in the weekend testing it). Sound

Re: [ovs-dev] [PATCH 2/4 v2] datapath-windows: Add Datapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-18 Thread Nithin Raju
On Aug 18, 2014, at 5:35 PM, Alin Serdean wrote: > I think you can work with Sam together this week to get the Netlink part in > the kernel up and running. Alin, Just one question here. From my understanding, VMware folks are working on the kernel patch to add netlink support, and Alin (and p

Re: [ovs-dev] [PATCH 4/4 v2] netlink-socket.c: implement get pid support on Windows

2014-08-19 Thread Nithin Raju
On Aug 18, 2014, at 5:08 PM, Alin Serdean wrote: > Hi Nithin, > > Just a few thoughts: > Since get PID is a special case would it not be better to treat it as a > DeviceIoControl;dwIoControlCode like OVS_IOCTL_TRANSACT (i.e. > OVS_IOCTL_GET_PID)? > > We can drop the extra headers and the wh

Re: [ovs-dev] [PATCH 1/4 v2] Add extentions to the standard datapath interface

2014-08-19 Thread Nithin Raju
> Is there any objection if we directly include OvsDpInterfaceExt.h in > userspace (with the right #ifdefs, of course)? I don't understand why we > would want to auto-generate a file just to include the kernel header file. > This is what the auto-generated file is supposed to look like - > > /* >

[ovs-dev] [PATCH 4/4 v3] netlink-socket.c: implement get pid support on Windows

2014-08-19 Thread Nithin Raju
being checked in. Signed-off-by: Nithin Raju --- lib/netlink-socket.c | 93 +++--- 1 files changed, 73 insertions(+), 20 deletions(-) diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 3dbfe59..91a4809 100644 --- a/lib/netlink-socket.c +++

[ovs-dev] [PATCH 4/4 v3] netlink-socket.c: implement get pid support on Windows

2014-08-19 Thread Nithin Raju
being checked in. Signed-off-by: Nithin Raju Acked-by: Alin Serdean Acked-by: Ankur Sharma Acked-by: Saurabh Shah Reported-at: https://github.com/openvswitch/ovs-issues/issues/18 --- lib/netlink-socket.c | 93 +++--- 1 files changed, 73 insertions(+

[ovs-dev] [PATCH 3/4 v3] datapath-windows: add infrastructure for supporting netlink

2014-08-19 Thread Nithin Raju
recv, send, and send-recv in userspace netlink. This interface is subject to change as iron out the details of the user-kernel interface for operations around packet receive, events, dump, etc. We also turn on OVS_USE_NL_INTERFACE to 1 in the ovsext project. Signed-off-by: Nithin Raju Acked-by: Alin

[ovs-dev] [PATCH 2/4 v3] datapath-windows: Add Datapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-19 Thread Nithin Raju
rn it to 1. Since Datapath.[ch] containes code copied from OvsIoctl.[ch], acking the original author as well. Signed-off-by: Nithin Raju Co-authored-by: Guolin Yang Acked-by: Alin Serdean Acked-by: Ankur Sharma Acked-by: Saurabh Shah --- datapath-windows/ovsext/Datapath.c |

[ovs-dev] [PATCH 1/4 v3] Add extentions to the standard datapath interface

2014-08-19 Thread Nithin Raju
OvsDpInterfaceExt.h: read: provides an output buffer (mimics a recv) write:provides an input buffer (mimics a send) transact: provides an input and optionally an output buffer. (mimics a send followed by recv) Signed-off-by: Nithin Raju Co-Authored-by: Ben Pfaff Acked-by: Alin Serdean Acked-by

[ovs-dev] [PATCH 2/4 v4] datapath-windows: Add Datapath.[ch] and OVS_USE_NL_INTERFACE CPP

2014-08-19 Thread Nithin Raju
rn it to 1. Since Datapath.[ch] containes code copied from OvsIoctl.[ch], acking the original author as well. Signed-off-by: Nithin Raju Co-authored-by: Guolin Yang Acked-by: Alin Serdean Acked-by: Ankur Sharma Acked-by: Saurabh Shah --- datapath-windows/ovsext/Datapath.c |

[ovs-dev] [PATCH 1/4 v4] Add extentions to the standard datapath interface

2014-08-19 Thread Nithin Raju
OvsDpInterfaceExt.h: read: provides an output buffer (mimics a recv) write:provides an input buffer (mimics a send) transact: provides an input and optionally an output buffer. (mimics a send followed by recv) Signed-off-by: Nithin Raju Co-Authored-by: Ben Pfaff Acked-by: Alin Serdean Acked-by

[ovs-dev] [PATCH 4/4 v4] netlink-socket.c: implement get pid support on Windows

2014-08-19 Thread Nithin Raju
it back to userspace. dpif-linux.c was ported to Windows (similar to Alin's change in the cloudbase repo) and was able to exercise the code changes in netlink-socket.c to read the PID. dpif-linux.c changes are not being checked in. Signed-off-by: Nithin Raju Acked-by: Alin Serdean Acked-by:

[ovs-dev] [PATCH 3/4 v4] datapath-windows: add infrastructure for supporting netlink

2014-08-19 Thread Nithin Raju
recv, send, and send-recv in userspace netlink. This interface is subject to change as iron out the details of the user-kernel interface for operations around packet receive, events, dump, etc. We also turn on OVS_USE_NL_INTERFACE to 1 in the ovsext project. Signed-off-by: Nithin Raju Acked-by: Alin

Re: [ovs-dev] OvsIpHelper vs the ARP method

2014-08-20 Thread Nithin Raju
hi Samuel, Thanks for resending. I'm CCing Ben if he as more points. At a high level, IP helper uses the host Hyper-V's ARP and IP routing stack functionality. At a high level it consists of the following parts: 1. Data structures the maintain the L2 and L3 cache. 2. Functionality to Query the

[ovs-dev] OVS on HyperV: meeting minutes for 8/20 IRC meeting

2014-08-20 Thread Nithin Raju
hi, Just sending out the meeting minutes for future reference. Attendees: Alin Serdean, Samuel Ghinet, Ankur Sharma, Saurabh Shah, Nithin Raju 1. Review http://openvswitch.org/pipermail/dev/2014-August/044315.html -- - VMware

Re: [ovs-dev] [PATCH 1/3] datapath-windows: add netlink message parsing APIs

2014-08-21 Thread Nithin Raju
Ankur, Thanks for working on this. I had the following overall comments. I have annotated the patch with specific comments as appropriate. I didn't realize initially that the Netlink.c, Netlink.h that you are introducing have major modifications compared to the userspace netlink.c and netlink.h

Re: [ovs-dev] [PATCH 2/3] datapath-windows: Using windows kernel netlink parsing APIs.

2014-08-21 Thread Nithin Raju
hi Ankur, Thanks for working on this. Looks good overall, but for the minor comments I had. On Aug 20, 2014, at 9:46 AM, Ankur Sharma wrote: > In this patch we incorporate the usage of netlink message > and the parsing APIs that were added in previous commit. > > Change-Id: If627ba5a10d78b9366

Re: [ovs-dev] [PATCH 3/3] datapath-windows: remove reference to OvsNetlink.h

2014-08-21 Thread Nithin Raju
hi Ankur, Looks good, but for a few minor comments. On Aug 20, 2014, at 9:46 AM, Ankur Sharma wrote: > In this patch we remove reference to OvsNetlink.h. > Since we do not refer to lib/netlink-protocol.h anymore, > hence removed the WIN_DP based check. > > Change-Id: I281a0c6478e3de2e9b04c988be

Re: [ovs-dev] [PATCH] Create a NBL for each NB when required

2014-08-21 Thread Nithin Raju
hi Alin/Sam, Like I said earlier, this is a critical fix, and thanks for working on this. I started looking at OvsPacketIO.c, and you are right in using the OvsPartialCopyToMultipleNBLs() API. However, is it required to update many of the functions to process an NB instead of an NBL? From my und

[ovs-dev] netlink-socket.c: add support for do_lookup_genl_family on Windows

2014-08-22 Thread Nithin Raju
call into the kernel, but that in itself may not buy anything more than this approach. This patch is a precursor to make progress of the other commands. The next hurdle is to support nl_lookup_genl_mcgroup(). Signed-off-by: Nithin Raju --- lib/netlink-socket.c | 68

  1   2   3   4   5   6   7   8   9   10   >