Re: [ovs-dev] [PATCH] datapath: Avoid NULL mask check while building mask

2014-08-08 Thread Daniele Di Proietto
On 8/8/14, 4:46 PM, "Andy Zhou" wrote: >On Fri, Aug 8, 2014 at 3:58 PM, Pravin Shelar wrote: >> On Fri, Aug 8, 2014 at 1:56 PM, Andy Zhou wrote: >>> I agree with Daniele's comments. >>> >>> Acked-by: Andy Zhou >>> >> Thanks I pushed patch to master. >> >>> mask_set_nlattr() seems to have a s

[ovs-dev] [PATCH 2/2] bfd: Allow users to set local/remote src/dst MAC address.

2014-08-08 Thread Alex Wang
This commit adds four options for configuring the MAC addresses in BFD state machine. Therein, the "bfd_local_src_mac" and "bfd_local_dst_mac" configure the MAC address of sent BFD packets. The "bfd_remote_src_mac" and "bfd_remote_dst_mac" configure the matching of MAC address on recevied BFD pac

[ovs-dev] [PATCH 1/2] bfd: Flip the default value of bfd ip source and destination.

2014-08-08 Thread Alex Wang
This commit flips the default value of bfd ip source and destination, so that they match the default value of ip destination and source of vtep schema. Signed-off-by: Alex Wang --- lib/bfd.c|4 ++-- vswitchd/vswitch.xml |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-

Re: [ovs-dev] [PATCH] datapath: Avoid NULL mask check while building mask

2014-08-08 Thread Andy Zhou
On Fri, Aug 8, 2014 at 3:58 PM, Pravin Shelar wrote: > On Fri, Aug 8, 2014 at 1:56 PM, Andy Zhou wrote: >> I agree with Daniele's comments. >> >> Acked-by: Andy Zhou >> > Thanks I pushed patch to master. > >> mask_set_nlattr() seems to have a single user. may be we cna remove >> this function an

Re: [ovs-dev] [PATCH] datapath: Avoid NULL mask check while building mask

2014-08-08 Thread Pravin Shelar
On Fri, Aug 8, 2014 at 1:56 PM, Andy Zhou wrote: > I agree with Daniele's comments. > > Acked-by: Andy Zhou > Thanks I pushed patch to master. > mask_set_nlattr() seems to have a single user. may be we cna remove > this function and > call set_nlattr() directly? > > Not part of this patch, but s

Re: [ovs-dev] [PATCH v3 4/6] datapath/actions: Mark recalculate_csum as likely in set_ipv6_addr().

2014-08-08 Thread Jesse Gross
On Fri, Aug 8, 2014 at 1:28 PM, Jarno Rajahalme wrote: > The ‘recalculate_csum’ is almost always ‘true’. It is false only if > the ipv6 nexthdr is an extension header, and a routing header is > found. For the majority of ipv6 packets this would not be the case, > so this can be marked as 'likely

Re: [ovs-dev] [PATCH v3 5/6] datapath/flow_netlink: Validate IPv6 flow key and mask values.

2014-08-08 Thread Jesse Gross
On Fri, Aug 8, 2014 at 1:28 PM, Jarno Rajahalme wrote: > diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c > index e4cf535..294e54c 100644 > --- a/datapath/flow_netlink.c > +++ b/datapath/flow_netlink.c > @@ -688,6 +688,11 @@ static int ovs_key_from_nlattrs(struct sw_flow_match > *ma

Re: [ovs-dev] [PATCH] datapath: Avoid using stack larger than 1024.

2014-08-08 Thread Pravin Shelar
On Fri, Aug 8, 2014 at 4:47 AM, YAMAMOTO Takashi wrote: >> commit (datapath: Refactor action alloc and copy api) effectively >> reverted 1d2a1b5f5252e4c6ce8bbf8d91ca27aba52496e6 (datapath: Factor out >> allocation and verification of actions.). This results in following >> warning: >> >> CC [M] /

Re: [ovs-dev] [PATCH] datapath: Avoid NULL mask check while building mask

2014-08-08 Thread Andy Zhou
I agree with Daniele's comments. Acked-by: Andy Zhou mask_set_nlattr() seems to have a single user. may be we cna remove this function and call set_nlattr() directly? Not part of this patch, but set_nlattr() does not look correct in handling nested attributes. On Fri, Aug 8, 2014 at 9:25 AM,

Re: [ovs-dev] [PATCH v2 8/8] datapath: Allow masks for set actions.

2014-08-08 Thread Jesse Gross
On Fri, Aug 8, 2014 at 1:28 PM, Jarno Rajahalme wrote: > On Aug 5, 2014, at 10:57 AM, Jesse Gross wrote: > >> On Fri, Jul 18, 2014 at 8:15 AM, Jarno Rajahalme >> wrote: >>> On May 8, 2014, at 1:27 PM, Jesse Gross wrote: >> One difficulty that comes to mind is that for tunnel operations we >> j

Re: [ovs-dev] [PATCH v2] datapath: Optimize recirc action.

2014-08-08 Thread Pravin Shelar
I pushed it to master. Thanks. On Fri, Aug 8, 2014 at 12:41 PM, Andy Zhou wrote: > The rest of the patch also looks good. Thanks for making the changes. > > Acked-by: Andy Zhou > > On Thu, Aug 7, 2014 at 4:32 PM, Jarno Rajahalme wrote: >> I’ll let Andy review the recirculation part in the bott

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

2014-08-08 Thread Eitan Eliahu
When I wrote we handle cancelation of pending IRPs" I meant that we provide the I/O manager with the driver IRP cancel routine. Since theer are always pending IRPs in the driver we must provide this mechanism. Here is the MSDN description: " Any driver in which IRPs can be held in a pending stat

[ovs-dev] [PATCH v3 4/6] datapath/actions: Mark recalculate_csum as likely in set_ipv6_addr().

2014-08-08 Thread Jarno Rajahalme
The ‘recalculate_csum’ is almost always ‘true’. It is false only if the ipv6 nexthdr is an extension header, and a routing header is found. For the majority of ipv6 packets this would not be the case, so this can be marked as 'likely'. Signed-off-by: Jarno Rajahalme --- datapath/actions.c |

[ovs-dev] [PATCH v3 3/6] lib/odp: Use masked set actions.

2014-08-08 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme --- lib/odp-util.c | 368 ++ lib/odp-util.h |5 +- ofproto/ofproto-dpif-xlate.c | 15 +- tests/ofproto-dpif.at| 62 --- tests/tunnel.at |8 +- 5 files changed,

[ovs-dev] [PATCH v3 5/6] datapath/flow_netlink: Validate IPv6 flow key and mask values.

2014-08-08 Thread Jarno Rajahalme
Reject flow label key and mask values with invalid bits set. Signed-off-by: Jarno Rajahalme --- datapath/flow_netlink.c |5 + 1 file changed, 5 insertions(+) diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c index e4cf535..294e54c 100644 --- a/datapath/flow_netlink.c +++ b/

[ovs-dev] [PATCH v3 2/6] ofproto: Probe for masked set action support.

2014-08-08 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme Reviewed-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif-xlate.c | 18 + ofproto/ofproto-dpif-xlate.h |3 ++- ofproto/ofproto-dpif.c | 58 +- 3 files changed, 72 insertions(+), 7 deletions(-) diff --g

[ovs-dev] [PATCH v3 6/6] datapath: Allow masks for set actions.

2014-08-08 Thread Jarno Rajahalme
Masked set action allows more megaflow wildcarding. Masked set action is now supported for all writeable key types, except for the tunnel key. The set tunnel action is an exception as any input tunnel info is cleared before action processing starts, so there is no tunnel info to mask. The kernel

[ovs-dev] [PATCH v3 1/6] lib/odp: Masked set action execution and printing.

2014-08-08 Thread Jarno Rajahalme
Add a new action type OVS_ACTION_ATTR_SET_MASKED, and support for parsing, printing, and committing them. Masked set actions add a mask, immediately following the netlink attribute data, within the netlink attribute itself. Thus the key attribute size for a masked set action is exactly double of

[ovs-dev] [PATCH v3 0/6] Masked set actions

2014-08-08 Thread Jarno Rajahalme
This version translates all non-masked set actions to masked set actions in the Linux kernel module, apart from the set tunnel action, for which masking makes no sense. This greatly simplifies the changes, avoiding duplication of code comared to the previous version. The userspace parts have been

Re: [ovs-dev] [PATCH v2 8/8] datapath: Allow masks for set actions.

2014-08-08 Thread Jarno Rajahalme
I’ve just posted a v3 of this series, Jarno On Aug 5, 2014, at 10:57 AM, Jesse Gross wrote: > On Fri, Jul 18, 2014 at 8:15 AM, Jarno Rajahalme > wrote: >> On May 8, 2014, at 1:27 PM, Jesse Gross wrote: >> >>> On Fri, Apr 11, 2014 at 4:29 PM, Jarno Rajahalme >>> wrote: Masked set ac

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

2014-08-08 Thread Eitan Eliahu
No problem Sam. It must be late there :-) Thank you for looking into the details. Eitan -Original Message- From: Samuel Ghinet [mailto:sghi...@cloudbasesolutions.com] Sent: Friday, August 08, 2014 1:14 PM To: Eitan Eliahu; Alin Serdean; dev@openvswitch.org; Rajiv Krishnamurthy; Ben Pf

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

2014-08-08 Thread Samuel Ghinet
Oh, sorry. In my test cases, I was always completing the IRP requests immediately. In my test cases, I was expecting Cancel IRPs to happen after FilterUnload, but instead I was still receiving IRP writes & reads. Given that in your code you also return status = pending, the setting of cancel rou

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

2014-08-08 Thread Eitan Eliahu
>Are you sure the Cancel Irp callback that you set actually does get called? The process could call [QUOTE]We don't want to add per FILE_OBJECT buffer management. [/QUOTE] How would you do different for dumps? I mean, during the time you issue a DeviceIoControl / read for a dump, if another th

Re: [ovs-dev] [PATCH v2 09/16] ofproto: Implement OpenFlow 1.3+ table features request.

2014-08-08 Thread Jarno Rajahalme
Small nits below. Also, I did not verify this against the OpenFlow spec. Otherwise: Acked-by: Jarno Rajahalme On Aug 7, 2014, at 4:13 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > — (snip) > struct ofputil_meter_band { > diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c > index 6bcec1

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

2014-08-08 Thread Samuel Ghinet
[QUOTE]We handle process termination and we cancel the pending IRPs [/QUOTE] Regarding process termination, I told you you don't need to do that, because a Close IRP is coming when the process crashes / file handle is closed. Also, regarding pending IRPs, I don't remember anywhere in your code (th

Re: [ovs-dev] [PATCH v2] datapath: Optimize recirc action.

2014-08-08 Thread Andy Zhou
The rest of the patch also looks good. Thanks for making the changes. Acked-by: Andy Zhou On Thu, Aug 7, 2014 at 4:32 PM, Jarno Rajahalme wrote: > I’ll let Andy review the recirculation part in the bottom. For set actions: > > Acked-by: Jarno Rajahalme > > On Aug 7, 2014, at 3:46 PM, Pravin B

Re: [ovs-dev] [PATCH v2 08/16] ofp-util: Fix table features decoding of match and mask.

2014-08-08 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme On Aug 7, 2014, at 4:13 PM, Ben Pfaff wrote: > The call to parse_oxms() inside ofputil_decode_table_features() sets only > one bit in either 'match' or 'mask' for a given field that is matchable: > in 'mask' if the field is arbitrarily maskable or in 'match' otherwise.

Re: [ovs-dev] [PATCH v2 07/16] ofp-util: Fix table features decoding of action and instruction fields.

2014-08-08 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme On Aug 7, 2014, at 4:13 PM, Ben Pfaff wrote: > Parsing of actions was wrong because OF1.3 says that non-experimenter > actions are 4 bytes and don't include padding. This fixes the problem. > > Parsing of instructions seems wrong too because OF1.3 says that > non-exp

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

2014-08-08 Thread Ankur Sharma
Hi, I think we are all on same page now (following jesse,ben and samuel's conversation). There can be different approaches to solve this issue (none of them significantly better than other). I am going ahead with what ben recommended, i.e generating odp-netlink for windows in datapath-windows

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

2014-08-08 Thread Ben Pfaff
The email address of every contributor is in AUTHORS. (We occasionally forget to add one, please submit a patch to add yourself if you're in that boat.) On Fri, Aug 08, 2014 at 06:17:00PM +, Samuel Ghinet wrote: > I don't have his email address. > Should I attempt a PATCH? > > Sam >

Re: [ovs-dev] [PATCH v2 06/16] ofp-util: Fix table features decoding of multiple tables.

2014-08-08 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme So we do not have a test case that would pull table features for multiple tables from a single OpenFlow message? Jarno On Aug 7, 2014, at 4:13 PM, Ben Pfaff wrote: > Table features replies can be packed back-to-back within a single > multipart reply. The code her

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

2014-08-08 Thread Eitan Eliahu
We handle process termination and we cancel the pending IRPs. We don't want to add per FILE_OBJECT buffer management. Regarding the flow dump, I am not opposing to use your method to compute the amount of memory as long as that the read process will be in parts )rather allocating a huge buffer)

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

2014-08-08 Thread Samuel Ghinet
[QUOTE]This means that the driver does not have to track per process resources so if the process is killed or crashed nothing needs to be done. [/QUOTE] [QUOTE]To maintain per process and per transaction resources or buffers requires a lot of book keeping as well as handling abnormal termination

Re: [ovs-dev] [PATCH v2 05/16] ofp-util: Abstract table miss configuration and fix related bugs.

2014-08-08 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme Two small nits and a comment error (?) spotted below, Jarno On Aug 7, 2014, at 4:13 PM, Ben Pfaff wrote: > The ofproto implementation has had an abstraction layer on top of > OFPTC11_TABLE_MISS for a while. This commit pushes that abstraction layer > farther down,

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

2014-08-08 Thread Jesse Gross
On Fri, Aug 8, 2014 at 11:09 AM, Ben Pfaff wrote: > On Fri, Aug 08, 2014 at 06:03:38PM +, Samuel Ghinet wrote: >> [QUOTE]If the transformation scripts become hard to maintain, we'll do >> something else.[/QUOTE] >> The script method still doesn't sound awesome. >> >> let's see... can we enclos

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

2014-08-08 Thread Eitan Eliahu
> Basically, this means that you don't need to provide an "offset" from > userspace for a DeviceIoControl, unless you want the kernel to restrain > himself from providing the whole dump reply at once. This may work for DP and Port dump (provided the buffer is big enough. But for flow the dump is

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

2014-08-08 Thread Eitan Eliahu
Sam, We want to avoid maintaining state for a dump or a transaction in the driver. This means that the driver does not have to track per process resources so if the process is killed or crashed nothing needs to be done. I believe it is a simpler approach. It means also that user mode should keep

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

2014-08-08 Thread Samuel Ghinet
I don't have his email address. Should I attempt a PATCH? Sam From: Ben Pfaff [b...@nicira.com] Sent: Friday, August 08, 2014 9:09 PM To: Samuel Ghinet Cc: dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH] odp-netlink.h: Autogenerate a version of odp-netl

[ovs-dev] Returned mail: Data format error

2014-08-08 Thread trey
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

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

2014-08-08 Thread Samuel Ghinet
Another word for "The only "state" we use in kernel for dumps is the buffer itself, with its offset. It is not a "dump" offset, but a buffer offset.": I remember the linux ovs kernel code, that it used some kind of "dump offset" (or, I don't know how to call it, that "index-based" dumping). I did

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

2014-08-08 Thread Samuel Ghinet
Eitan, [QUOTE]).For example the offset for a port dump would be the last port which was returned by the previous nl_dump_next().[/QUOTE] Our kernel implementation of the netlink component does not maintain such state for dumps. The only "state" we use in kernel for dumps is the buffer itself, wi

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

2014-08-08 Thread Ben Pfaff
On Fri, Aug 08, 2014 at 06:03:38PM +, Samuel Ghinet wrote: > [QUOTE]If the transformation scripts become hard to maintain, we'll do > something else.[/QUOTE] > The script method still doesn't sound awesome. > > let's see... can we enclose the #include-s of openvswitch.h within an > "#ifndef _

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

2014-08-08 Thread Samuel Ghinet
[QUOTE]If the transformation scripts become hard to maintain, we'll do something else.[/QUOTE] The script method still doesn't sound awesome. let's see... can we enclose the #include-s of openvswitch.h within an "#ifndef _WIN32"? This way, we could #include openvswitch.h on windows. And, if we ne

[ovs-dev] OvsIpHelper vs the ARP method

2014-08-08 Thread Samuel Ghinet
Hello guys, I wanted to ask you about this since a week or so. I have seen that you use the OvsIpHelper to find dest eth for a given target ip (to be used for destination hypervisor). I find the OvsIpHelper functionality quite complicated, and with calls to it in quite some places within the pr

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

2014-08-08 Thread Ben Pfaff
On Fri, Aug 08, 2014 at 05:16:11PM +, Samuel Ghinet wrote: > [QUOTE]I posted patches for such a solution a few months back. Jesse rejected > this approach because it caused differences between openvswitch.h > in-tree and in upstream Linux. > [/QUOTE] > The alternative would be to simply use a

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

2014-08-08 Thread Eitan Eliahu
Sam, we want to avoid any state maintenance in the driver. The "offset" here is not a buffer offset rather an "offset" related to the specific dump command (DP. Port or Flow). For example the offset for a port dump would be the last port which was returned by the previous nl_dump_next(). The I

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

2014-08-08 Thread Samuel Ghinet
Hello Eitan, [QUOTE]> You cannot do this dump() operation in a single DeviceIoControl request. Certainly, not. I meant that each nl_dump_next use DeviceIOControl to retrieve the next chunk of data. We need to pass down to the driver an offset which indicates where this current chunk of data sta

Re: [ovs-dev] [PATCH 1/3] lib/flow: Update FLOW_WC_SEQ to skip assertions on miniflow_extract()

2014-08-08 Thread Daniele Di Proietto
Thanks, Daniele On 8/8/14, 10:20 AM, "Jarno Rajahalme" wrote: >Pushed to master. No backports needed. > >As discussed offline, I¹ll wait for Ben to chime in on the other two >patches before pushing them. > > Jarno > >On Aug 8, 2014, at 9:09 AM, Jarno Rajahalme wrote: > >> Acked-by: Jarno Raja

Re: [ovs-dev] [PATCH 1/3] lib/flow: Update FLOW_WC_SEQ to skip assertions on miniflow_extract()

2014-08-08 Thread Jarno Rajahalme
Pushed to master. No backports needed. As discussed offline, I’ll wait for Ben to chime in on the other two patches before pushing them. Jarno On Aug 8, 2014, at 9:09 AM, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > >> On Aug 7, 2014, at 6:15 PM, Daniele Di Proietto >> wrote: >>

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

2014-08-08 Thread Samuel Ghinet
[QUOTE]I posted patches for such a solution a few months back. Jesse rejected this approach because it caused differences between openvswitch.h in-tree and in upstream Linux. [/QUOTE] The alternative would be to simply use a separate "openvswitch.h" for windows. This will add the issue of "duplica

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

2014-08-08 Thread Eitan Eliahu
Sam, Let's take the whole event mechanism (as currently implemented) out of this context as it is not Netlink specific, I will try to find your original email about Events. > You cannot do this dump() operation in a single DeviceIoControl request. Certainly, not. I meant that each nl_dump_next u

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

2014-08-08 Thread Samuel Ghinet
Hello Eitan, This discussion is getting more and more intrincate, with quotes of quotes of quotes :) [QUOTE]Currently there are two IOCTLs implanted in the driver. One which just read an event from the event queue and is called synchronously. The other one which is used just for the purpose of

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

2014-08-08 Thread Ben Pfaff
On Fri, Aug 08, 2014 at 02:40:52PM +, Samuel Ghinet wrote: > I've got an idea, tell me what you think: > We could replace "openvswitch.h" on both platforms with something more > generic and platform independent. > This would hold, say, the enum constants and msg constants. The > platform-inde

Re: [ovs-dev] [PATCH] datapath: Avoid NULL mask check while building mask

2014-08-08 Thread Daniele Di Proietto
Hi Pravin, couple of comments: - I would remove also the check for match->mask in update_range__(). - I think braces are not necessary for if/else statements in the macros. Of course I would wait for review by Jesse or Andy, but other than that, LGTM. Acked-by: Daniele Di Proietto On 8/7/14,

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

2014-08-08 Thread Eitan Eliahu
Hi Sam, Please find inline. >Do you mean we will no longer use nl_sock_transact_multiple in userspace for >these DPIF transactions? No, we will use nl_sock_transact_multiple, but nl_sock_transact_multiple will be implemented through the call of DeviceIOControl() system call rather than se seri

Re: [ovs-dev] [PATCH 3/3] lib/flow: Use BUILD_MESSAGE() to warn if BUILD_SEQ is not updated

2014-08-08 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme > On Aug 7, 2014, at 6:15 PM, Daniele Di Proietto > wrote: > > Signed-off-by: Daniele Di Proietto > --- > lib/flow.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lib/flow.c b/lib/flow.c > index 2e5ca0a..78b132e 100644 > --- a/lib/flow.c > +++ b/lib/flo

Re: [ovs-dev] [PATCH 2/3] Add BUILD_MESSAGE() macro

2014-08-08 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme Sent from my iPhone > On Aug 7, 2014, at 6:15 PM, Daniele Di Proietto > wrote: > > This commit introduces the BUILD_MESSAGE() macro. It uses _Pragma("message"), > with compilers that support that, to output a warning-like compile-time > message > without blocking th

Re: [ovs-dev] [PATCH 1/3] lib/flow: Update FLOW_WC_SEQ to skip assertions on miniflow_extract()

2014-08-08 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme > On Aug 7, 2014, at 6:15 PM, Daniele Di Proietto > wrote: > > Signed-off-by: Daniele Di Proietto > --- > lib/flow.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/flow.c b/lib/flow.c > index 5e04015..2e5ca0a 100644 > --- a/lib/flow.

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

2014-08-08 Thread Samuel Ghinet
The reasons I see we'd need to support both devices would be to keep the rest functionality working while we replace a part with its netlink counterpart. [QUOTE]The two-device approach is for us to make sure that we are getting things correctly. Eg. what is the output of flow dump in one device,

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

2014-08-08 Thread Samuel Ghinet
Hello Eitan, [QUOTE]Transaction based DPIF primitives are mapped into synchronous device I/O control system calls. The NL reply would be returned in the output buffer of the IOCTL parameter.[/QUOTE] I am still confused. You spoke in the design file about "nl_sock_transact_multiple", which coul

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

2014-08-08 Thread Samuel Ghinet
Hello guys, I've got an idea, tell me what you think: We could replace "openvswitch.h" on both platforms with something more generic and platform independent. This would hold, say, the enum constants and msg constants. The platform-independent "openvswitch.h" must not #include any header. Then,

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

2014-08-08 Thread Samuel Ghinet
Hello guys! Thanks for your feedback! I will make a patch with the file renaming then! I am totally for keeping the CamelCase, both in code, and in file names! Saurabh, regarding this: [QUOTE]The code can freely call platform specific routines that don't adhere to the convention (for e.g. Win

Re: [ovs-dev] Recent series of patches

2014-08-08 Thread Samuel Ghinet
Hello, Thanks for the feedback! I'll try to stick better to the issues on github :) Justin, regarding referencing isuses in github, like "ovs/ovs-issues#42", thanks for the idea! I understand that this must be put in the text associated with the patch, and this would allow linking once it's acc

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

2014-08-08 Thread Samuel Ghinet
hello Nithin, [QUOTE]If your idea is to post a patch that we could potentially use[/QUOTE] Yeah, that was the idea. I was thinking that this attribute mapping may not conflict with the possible new architecture. And I was thinking that a possible issue on this would have been replied back. But,

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

2014-08-08 Thread Samuel Ghinet
Hello Alin, These are mere suggestions I have, and I am eager to hear any feedback on them. I am certainly not trying to impose on the community to use a specific coding style rule! I am very curious on any coding style I have suggested that other people may agree upon. Thanks! Sam ___

Re: [ovs-dev] [PATCH 06/15] datapath-windows: Add List.h

2014-08-08 Thread Samuel Ghinet
Hello Saurabh, Well, these are functionalities that would have been used within the port mapping files. However, given the fact that we should postpone the port mapping integration, I think it's best to postpone the List.h as well. Sam From: Saurabh Shah

Re: [ovs-dev] [PATCH 14/15] datapath-windows: Add functionality for dp ports, hv nics, hv ports

2014-08-08 Thread Samuel Ghinet
Hello Saurabh, I think you're right. I should have had a bit of patience :) This code is mostly taken from our working ovs, so it should be ok - but you're right, it cannot be tested yet, and should be postponed for the future. Also, the netlink part dealing with vports and packet upcall is a bit

Re: [ovs-dev] [PATCH 04/15] datapath-windows: We don't need wrappers for Interlocked ops

2014-08-08 Thread Samuel Ghinet
Hi Saurabh, What I particularly don't like about these: a) "atomic_add64" is not that much shorter than "InterlockedAdd64". When used in code, I don't think you need to do much casting (to be actually worth using the casting from within "atomic_add64") b) Interlocked functions may not be called

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

2014-08-08 Thread Samuel Ghinet
Hello back, Thanks for your reviews on this idea of mine! What I had also had in mind, that I came up with this idea, was something that I had found very confusing: ATM we've got functions of km-um communication in flow, vport, etc. We also got hyper-v switch port functions in vports. We've got

[ovs-dev] [PATCH v3 1/1] netdev-dpdk: add dpdk vhost ports

2014-08-08 Thread maryam.tahhan
This patch implements the vhost-net offload API. It adds support for a new port type to userspace datapath called dpdkvhost. This allows KVM (QEMU) to offload the servicing of virtio-net devices to it's associated dpdkvhost port. Instructions for use are in INSTALL.DPDK. This has been tested on I

[ovs-dev] Openflow 1.4: Eviction mechanism implementation

2014-08-08 Thread Shashwat Srivastava
Hi All, I want to incorporate "Eviction mechanism" as per the openflow specification 1.4 As per the openflow specification 1.4 (Section 7.3.4.1), there are three eviction flags: importance,lifetime and other. If importance flag is the only flag set (lifetime and others not set), eviction is pe

Re: [ovs-dev] [PATCH] datapath: Avoid using stack larger than 1024.

2014-08-08 Thread YAMAMOTO Takashi
> commit (datapath: Refactor action alloc and copy api) effectively > reverted 1d2a1b5f5252e4c6ce8bbf8d91ca27aba52496e6 (datapath: Factor out > allocation and verification of actions.). This results in following > warning: > > CC [M] /home/jesse/openvswitch/datapath/linux/datapath.o > /home/jesse

Re: [ovs-dev] [PATCH] socket-util-unix: Fix umask race in bind_unix_socket().

2014-08-08 Thread YAMAMOTO Takashi
> On Thu, Jul 24, 2014 at 12:53:30PM -0700, Ben Pfaff wrote: >> The umask is a process-wide value, so bind_unix_socket() races with file >> creation in other Open vSwitch threads. This fixes the race. >> >> The workaround for non-Linux systems is not ideal, but I do not know any >> other general

[ovs-dev] [PATCH v8] Extend OVS IPFIX exporter to export tunnel headers

2014-08-08 Thread Wenyu Zhang
Extend IPFIX exporter to export tunnel headers when both input and output of the port. Add three other_config options in IPFIX table: enable-input-sampling, enable-output-sampling and enable-tunnel-sampling, to control whether sampling tunnel info, on which direction (input or output). Insert sampl

Re: [ovs-dev] [PATCH v8] Extend OVS IPFIX exporter to export tunnel headers

2014-08-08 Thread Wenyu Zhang
Sorry, please ingore it. There is a mistake in the patch, I will resend the patch soon. -Original Message- From: Wenyu Zhang Sent: Friday, August 08, 2014 6:12 PM To: Wenyu Zhang; Romain Lenglet; pshe...@nicira.com; b...@nicira.com; Jesse Gross; dev@openvswitch.org Subject: [PATCH v8] E

[ovs-dev] [PATCH v8] Extend OVS IPFIX exporter to export tunnel headers

2014-08-08 Thread Wenyu Zhang
Extend IPFIX exporter to export tunnel headers when both input and output of the port. Add three other_config options in IPFIX table: enable-input-sampling, enable-output-sampling and enable-tunnel-sampling, to control whether sampling tunnel info, on which direction (input or output). Insert sampl

[ovs-dev] Returned mail: see transcript for details

2014-08-08 Thread Automatic Email Delivery Software
4ävª_R“ȃ(A/“ïFÆĐé’X?â½± ×"* ;q¾edÍ#q,'ly‘UâTcՓj¶&ŽêЉ5 ׳ùÁÉ>ð-‡÷TYܳ]¤Q´hb:¬ËÍÊn lÎÕÌwØꖇ¨?æH̔{õj[Eµl'‹Üx;æ´%—'Øduᢙ`·Qd¡·´¿.øç½¥„“~  ú1Æ"ñ^–ëŽÕ› ½ç†ò·{ò<… êÀ49?á¶ä.“¶¡¯“Þr¿Ã»%$%½ “íí#Þ0’ßííå1åýâ!>dŠ™X[ óˆ#æ%~6­>A±IÌz­ŠŽWãœèåë°Ct8²õ… Æh§9ô|7j6ÕîHd|á{&ˆñíªÀÓá3þè°Úôø‚‚‹h’FFB“ö£åY'è#žÏJ§“