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

2014-08-12 Thread Nithin Raju
In the Windows datapath, Tx tunneling functionality is implemented by checking if the outport in the action is a tunnel port. If so, the packet is encapsulated and sent out on the PIF bridge for as second flow lookup. Basically, we don't use the hypervisor's IP stack to send out a packet, and short

[ovs-dev] [v3] datapath: Distinguish between nested and variable length attributes

2014-08-12 Thread Andy Zhou
-1 was used to indicate both nested and variable length attributes. This patch introduces OVS_KEY_LEN_NESTED and OVS_KEY_LEN_VARIABLE to tell them apart. Refactor nlattr_set() to support ovs netlink key attributes in a more general way. Signed-off-by: Andy Zhou Acked-by: Daniele Di Proietto --

Re: [ovs-dev] [PATCH 1/2] netdev-dpdk: Move to DPDK 1.7.0

2014-08-12 Thread Flavio Leitner
I have a couple comments not really related to this specific patch. See below. On Tue, Aug 12, 2014 at 10:43:35AM -0700, Daniele Di Proietto wrote: > With this commit we move our DPDK support to 1.7.0. > DPDK binaries (starting with dpdk 1.7.0) should be linked with --whole-archive > to include

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

2014-08-12 Thread Flavio Leitner
I've noticed that the directory eventfd_link and its Makefile.in are in the tarball generated by 'make dist'. However, the eventfd_link.c and eventfd_link.h are missing. I haven't looked at anything else in this patch. Thanks, fbl On Fri, Aug 08, 2014 at 01:28:55PM +0100, maryam.tahhan wrote: >

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

2014-08-12 Thread Jarno Rajahalme
Will do, tomorrow :-) Jarno > On Aug 12, 2014, at 1:58 PM, Ben Pfaff wrote: > > I'm happy enough with these patches. Jarno, do you want to apply > them? > >> On Fri, Aug 08, 2014 at 09:13:42AM -0700, Jarno Rajahalme wrote: >> Acked-by: Jarno Rajahalme >> >> Sent from my iPhone >> >>> On

[ovs-dev] [PATCHv2] dpif: Support flow_get in dpif_operate().

2014-08-12 Thread Joe Stringer
This cleans up the dpif interface to make it more consistent with the other dpif operations, and allows flows to be fetched in batches. Signed-off-by: Joe Stringer --- v2: Require callers to pass down an initialized buffer. Remove NLM_F_ECHO flag from get request. Rebase against master. R

Re: [ovs-dev] [PATCH 3/4] ofpbuf: Add ofpbuf_rss()

2014-08-12 Thread Pravin Shelar
On Tue, Jul 22, 2014 at 5:06 PM, Daniele Di Proietto wrote: > ofpbuf_rss() is introduced to get the RSS hash from the NIC. It works only for > packets received by DPDK (otherwise it returns 0, which tells the caller to > compute the hash in another way) > > This commit also configure DPDK devices

Re: [ovs-dev] [PATCH 2/4] dpif-netdev: Reintroduce ref_cnt for dp_netdev_flow

2014-08-12 Thread Pravin Shelar
On Tue, Jul 22, 2014 at 5:06 PM, Daniele Di Proietto wrote: > struct dp_netdev_flow used to have a reference counter. It has been replaced > by > RCU. Unfortunately RCU is not enough if we plan to hold a reference to the > dp_netdev_flow for a long time. So this commit reintroduces reference coun

Re: [ovs-dev] [PATCH 1/2] netdev-dpdk: Move to DPDK 1.7.0

2014-08-12 Thread Pravin Shelar
On Tue, Aug 12, 2014 at 10:43 AM, Daniele Di Proietto wrote: > With this commit we move our DPDK support to 1.7.0. > DPDK binaries (starting with dpdk 1.7.0) should be linked with --whole-archive > to include pmd drivers > I updated INSTALL.DPDK file and pushed patch to master. > Signed-off-by: D

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Keep calling rte_eth_tx_burst() until it returns 0

2014-08-12 Thread Pravin Shelar
On Tue, Aug 12, 2014 at 10:43 AM, Daniele Di Proietto wrote: > rte_eth_tx_burst() _should_ transmit every packet that it is passed unless the > queue is full. Nontheless some implementation of rte_eth_tx_burst (e.g. > ixgbe_xmit_pkts_vec()) does not transmit more than a fixed number (32) of > pack

Re: [ovs-dev] [PATCH 3/6] ofproto: Check actions also for packet outs and traces.

2014-08-12 Thread Ben Pfaff
On Tue, Aug 05, 2014 at 04:38:54PM -0700, Jarno Rajahalme wrote: > Make the packet out and trace processing perform the same actions > checks as flow mod processing does. > > This used to be the case before, but at some point these have diverged > to perform different combinations of checks. > >

Re: [ovs-dev] [PATCH 2/6] ovs-ofctl: Fix a typo in documentation.

2014-08-12 Thread Ben Pfaff
On Tue, Aug 05, 2014 at 04:38:53PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme > --- > utilities/ovs-ofctl.8.in |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/utilities/ovs-ofctl.8.in b/utilities/ovs-ofctl.8.in > index 5251c53..77eddb4 100644 > ---

Re: [ovs-dev] [PATCH 1/6] utilities/ovs-ofctl: Fix meter requests.

2014-08-12 Thread Ben Pfaff
On Tue, Aug 05, 2014 at 04:38:52PM -0700, Jarno Rajahalme wrote: > Meter requests should use dump/stats transaction, instead of > transact_noreply, which caused the output to go to stderr and an error > exit. > > Signed-off-by: Jarno Rajahalme Acked-by: Ben Pfaff ___

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

2014-08-12 Thread Ben Pfaff
On Mon, Aug 11, 2014 at 09:15:01AM -0700, Jarno Rajahalme wrote: > 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 bef

Re: [ovs-dev] [PATCH v4 3/4] lib/odp: Use masked set actions.

2014-08-12 Thread Ben Pfaff
On Mon, Aug 11, 2014 at 09:15:00AM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme The amount of redundancy in the code at this point is starting to give me a headache. How about a pattern like this (provided as an incremental)? diff --git a/lib/odp-util.c b/lib/odp-util.c index

Re: [ovs-dev] [v2] datapath: Distinguish between nested and variable length attributes

2014-08-12 Thread Daniele Di Proietto
Hi Andy, Two comments inline Other than those, LGTM, but review by others might be useful :) Acked-by: Daniele Di Proietto On 8/12/14, 1:45 PM, "Andy Zhou" wrote: >-1 was used to indicate both nested and variable length attributes. >This patch introduces OVS_KEY_LEN_NESTED and OVS_KEY_LEN_V

Re: [ovs-dev] [PATCH v4 2/4] ofproto: Probe for masked set action support.

2014-08-12 Thread Ben Pfaff
On Mon, Aug 11, 2014 at 09:14:59AM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme > Reviewed-by: YAMAMOTO Takashi Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v4 1/4] lib/odp: Masked set action execution and printing.

2014-08-12 Thread Ben Pfaff
On Mon, Aug 11, 2014 at 09:14:58AM -0700, Jarno Rajahalme wrote: > 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.

Re: [ovs-dev] [PATCH] openvswitch: Fix memory leak in ovs_vport_alloc() error path

2014-08-12 Thread David Miller
From: Christoph Jaeger Date: Tue, 12 Aug 2014 09:27:57 +0200 > ovs_vport_alloc() bails out without freeing the memory 'vport' points to. > > Picked up by Coverity - CID 1230503. > > Fixes: 5cd667b0a4 ("openvswitch: Allow each vport to have an array of > 'port_id's.") > Signed-off-by: Christoph

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

2014-08-12 Thread Ben Pfaff
I'm happy enough with these patches. Jarno, do you want to apply them? On Fri, Aug 08, 2014 at 09:13:42AM -0700, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > > Sent from my iPhone > > > On Aug 7, 2014, at 6:15 PM, Daniele Di Proietto > > wrote: > > > > This commit introduces the BUI

Re: [ovs-dev] [PATCH] ofp-errors: Use EXT-444 extension error codes for properties in OF1.3.

2014-08-12 Thread Ben Pfaff
Thank you. Applied. On Tue, Aug 12, 2014 at 11:49:03AM -0700, Alex Wang wrote: > Looks good to me, > > > On Mon, Aug 11, 2014 at 2:36 PM, Ben Pfaff wrote: > > > These error codes are proposed in the ONF extensibility working group as an > > OpenFlow 1.3 extension. > > > > Error codes are also

[ovs-dev] [v2] datapath: Distinguish between nested and variable length attributes

2014-08-12 Thread Andy Zhou
-1 was used to indicate both nested and variable length attributes. This patch introduces OVS_KEY_LEN_NESTED and OVS_KEY_LEN_VARIABLE to tell them apart. Refactor nlattr_set() to more more generally all ovs netlink key attributes. Signed-off-by: Andy Zhou --- datapath/flow_netlink.c | 88 ++

Re: [ovs-dev] [PATCH 2/2] Makefiles: Clean lib/ofp-actions.inc1 and lib/ofp-actions.inc2.

2014-08-12 Thread Ben Pfaff
Applied, thanks. On Tue, Aug 12, 2014 at 08:27:51PM +, Alin Serdean wrote: > Hi Ben, > > Also remember to add them under .gitignore: > Untracked files: > (use "git add ..." to include in what will be committed) > > lib/ofp-actions.inc1 > lib/ofp-actions.inc2 > > diff --git a/l

Re: [ovs-dev] [PATCH 2/2] Makefiles: Clean lib/ofp-actions.inc1 and lib/ofp-actions.inc2.

2014-08-12 Thread Alin Serdean
Hi Ben, Also remember to add them under .gitignore: Untracked files: (use "git add ..." to include in what will be committed) lib/ofp-actions.inc1 lib/ofp-actions.inc2 diff --git a/lib/.gitignore b/lib/.gitignore index 2d07244..32c1e4c 100644 --- a/lib/.gitignore +++ b/lib/.git

Re: [ovs-dev] [PATCH] learning-switch: Make test-controller work with OpenFlow 1.3+.

2014-08-12 Thread Ben Pfaff
Applied, thanks! On Tue, Aug 12, 2014 at 11:36:25AM -0700, Alex Wang wrote: > Looks good to me, > > Acked-by: Alex Wang > > > On Mon, Aug 4, 2014 at 1:02 PM, Ben Pfaff wrote: > > > On Wed, Jul 16, 2014 at 03:00:15PM -0700, Ben Pfaff wrote: > > > The controller setup in my personal test envir

Re: [ovs-dev] [PATCH] lib/netlink-protocol.h: Do not include headers for windows kernel build.

2014-08-12 Thread Ben Pfaff
On Tue, Aug 12, 2014 at 11:36:27AM -0700, Ankur Sharma wrote: > Added saurabh's fix to not to include some header files > in lib/netlink-protocol.h not needed by windows driver. > > This is a temporary fix to make sure that windows driver can compile. > > We are working in parallel on adding netl

Re: [ovs-dev] WINDOWS userspace build broken

2014-08-12 Thread Ben Pfaff
Thank you for the review. I'll apply this to master in a minute. On Tue, Aug 12, 2014 at 06:50:21PM +, Ankur Sharma wrote: > Hi Ben, > > Changes look good to me. > > Regards, > Ankur > > From: Ben Pfaff > Sent: Tuesday, August 12, 2014 11:45 AM > To:

Re: [ovs-dev] WINDOWS userspace build broken

2014-08-12 Thread Ben Pfaff
Thank you for the reviews. I'll apply this to master in a minute. On Tue, Aug 12, 2014 at 07:01:53PM +, Alin Serdean wrote: > Thanks for the quick fix Ben, I also tested it just to make sure everything > is in place. > > Alin. > > -Mesaj original- > De la: Ben Pfaff [mailto:bpf...@

Re: [ovs-dev] [PATCH 1/2] ofp-actions: Make struct ofpact constant size across implementations.

2014-08-12 Thread Alin Serdean
Acked-by : Alin Serdean -Mesaj original- De la: Ben Pfaff [mailto:b...@nicira.com] Trimis: Tuesday, August 12, 2014 9:44 PM Către: dev@openvswitch.org Cc: Ben Pfaff; Alin Serdean Subiect: [PATCH 1/2] ofp-actions: Make struct ofpact constant size across implementations. Before commit c2

Re: [ovs-dev] WINDOWS userspace build broken

2014-08-12 Thread Alin Serdean
Thanks for the quick fix Ben, I also tested it just to make sure everything is in place. Alin. -Mesaj original- De la: Ben Pfaff [mailto:bpf...@vmware.com] Trimis: Tuesday, August 12, 2014 9:45 PM Către: Alin Serdean Cc: dev@openvswitch.org Subiect: Re: WINDOWS userspace build broken O

Re: [ovs-dev] WINDOWS userspace build broken

2014-08-12 Thread Ankur Sharma
Hi Ben, Changes look good to me. Regards, Ankur From: Ben Pfaff Sent: Tuesday, August 12, 2014 11:45 AM To: Ankur Sharma Cc: Alin Serdean; dev@openvswitch.org Subject: Re: WINDOWS userspace build broken On Tue, Aug 12, 2014 at 10:45:30AM -0700, Ankur Shar

Re: [ovs-dev] [PATCH] ofp-errors: Use EXT-444 extension error codes for properties in OF1.3.

2014-08-12 Thread Alex Wang
Looks good to me, On Mon, Aug 11, 2014 at 2:36 PM, Ben Pfaff wrote: > These error codes are proposed in the ONF extensibility working group as an > OpenFlow 1.3 extension. > > Error codes are also proposed for the other three "bad property" error > codes, but those already have standardized Ope

Re: [ovs-dev] WINDOWS userspace build broken

2014-08-12 Thread Ben Pfaff
On Tue, Aug 12, 2014 at 10:45:30AM -0700, Ankur Sharma wrote: > Just to add to it. > make distcheck is also failing with following error > > ERROR: files left in build directory after distclean: > ./lib/ofp-actions.inc1 > ./lib/ofp-actions.inc2 Thanks for the report. I sent out a fix: ht

Re: [ovs-dev] WINDOWS userspace build broken

2014-08-12 Thread Ben Pfaff
On Tue, Aug 12, 2014 at 05:39:21PM +, Alin Serdean wrote: > c:\temp\12_08_2014\ovs\lib\ofp-actions.h(465) : error C2229: struct > 'ofpact_nest > ' has an illegal zero-sized array > make[2]: *** [lib/bundle.lo] Error 1 > make[2]: Leaving directory `/c/temp/12_08_2014/ovs' > make[1]: *** [all-re

[ovs-dev] [PATCH 1/2] ofp-actions: Make struct ofpact constant size across implementations.

2014-08-12 Thread Ben Pfaff
Before commit c2d936a44fa6 (ofp-actions: Centralize all OpenFlow action code for maintainability.), struct ofpact was 4 bytes with GCC and Clang, and 12 bytes with other compilers. That commit changed struct ofpact so that it remained 4 bytes with GCC and Clang but shrank to 8 bytes on other compi

[ovs-dev] [PATCH 2/2] Makefiles: Clean lib/ofp-actions.inc1 and lib/ofp-actions.inc2.

2014-08-12 Thread Ben Pfaff
Fixes a failure with make distcheck. Reported-by: Ankur Sharma Signed-off-by: Ben Pfaff --- lib/automake.mk |1 + 1 file changed, 1 insertion(+) diff --git a/lib/automake.mk b/lib/automake.mk index f4426f2..e95191d 100644 --- a/lib/automake.mk +++ b/lib/automake.mk @@ -438,6 +438,7 @@ lib/

Re: [ovs-dev] [PATCH] learning-switch: Make test-controller work with OpenFlow 1.3+.

2014-08-12 Thread Alex Wang
Looks good to me, Acked-by: Alex Wang On Mon, Aug 4, 2014 at 1:02 PM, Ben Pfaff wrote: > On Wed, Jul 16, 2014 at 03:00:15PM -0700, Ben Pfaff wrote: > > The controller setup in my personal test environment has been broken for > a > > while. I figured that it wasn't anything important, though,

[ovs-dev] [PATCH] lib/netlink-protocol.h: Do not include headers for windows kernel build.

2014-08-12 Thread Ankur Sharma
Added saurabh's fix to not to include some header files in lib/netlink-protocol.h not needed by windows driver. This is a temporary fix to make sure that windows driver can compile. We are working in parallel on adding netlink support in windows driver (https://github.com/openvswitch/ovs-issues/i

Re: [ovs-dev] [DPDK Upcalls v2 3/3] dpif-netdev: Streamline miss handling.

2014-08-12 Thread Ben Pfaff
On Wed, Aug 06, 2014 at 07:40:25PM -0700, Ethan Jackson wrote: > This patch avoids the relatively inefficient miss handling processes > dictated by the dpif process, by calling into ofproto-dpif directly > through a callback. > > Signed-off-by: Ethan Jackson In dp_netdev_input(), the variable na

[ovs-dev] [PATCH 1/2] netdev-dpdk: Move to DPDK 1.7.0

2014-08-12 Thread Daniele Di Proietto
With this commit we move our DPDK support to 1.7.0. DPDK binaries (starting with dpdk 1.7.0) should be linked with --whole-archive to include pmd drivers Signed-off-by: Daniele Di Proietto --- INSTALL.DPDK | 12 ++-- acinclude.m4 | 13 - lib/

[ovs-dev] [PATCH 2/2] netdev-dpdk: Keep calling rte_eth_tx_burst() until it returns 0

2014-08-12 Thread Daniele Di Proietto
rte_eth_tx_burst() _should_ transmit every packet that it is passed unless the queue is full. Nontheless some implementation of rte_eth_tx_burst (e.g. ixgbe_xmit_pkts_vec()) does not transmit more than a fixed number (32) of packets at a time. With this commit we assume that there's an error only

Re: [ovs-dev] WINDOWS userspace build broken

2014-08-12 Thread Ankur Sharma
Hi, Just to add to it. make distcheck is also failing with following error ERROR: files left in build directory after distclean: ./lib/ofp-actions.inc1 ./lib/ofp-actions.inc2 Regards, Ankur From: dev on behalf of Alin Serdean Sent: Tuesday, August 12,

Re: [ovs-dev] [DPDK Upcalls v2 2/3] ofproto: Reorganize in preparation for direct dpdk upcalls.

2014-08-12 Thread Ben Pfaff
On Wed, Aug 06, 2014 at 07:40:24PM -0700, Ethan Jackson wrote: > This patch reorganizes ofproto-dpif in preparation for future patches > which allow direct upcall processing from dpif-netdev. The main goals > are to share as much code as possible between the dpif-linux and > dpif-netdev upcall pat

[ovs-dev] WINDOWS userspace build broken

2014-08-12 Thread Alin Serdean
Hi Ben, I noticed today the windows build was broken. Error is: source='lib/bundle.c' object='lib/bundle.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ./build-aux/depcomp \ /bin/sh ./libtool --tag=CC --mode=compile ./build-aux/cccl -DHAVE_CON FIG_H -I. -I ./incl

Re: [ovs-dev] [v2] datapath: Update flow key before recirc

2014-08-12 Thread Andy Zhou
Thanks Pravin and Jarno for the review. Pushed to master. On Tue, Aug 12, 2014 at 9:47 AM, Pravin Shelar wrote: > On Mon, Aug 11, 2014 at 3:36 PM, Andy Zhou wrote: >> When flow key becomes invalid due to push or pop actions, current >> implementation leaves it as invalid, only rebuild the flow

Re: [ovs-dev] [PATCH] dpif-provider: Get rid of redundant operations.

2014-08-12 Thread Ben Pfaff
On Thu, Aug 07, 2014 at 02:25:42PM +1200, Joe Stringer wrote: > On 16 July 2014 11:09, Ben Pfaff wrote: > > > The dpif provider 'operate' call duplicates all of the features available > > from the 'flow_put', 'flow_del', and 'execute' calls, yielding redundant > > code in providers that support b

Re: [ovs-dev] [v2] datapath: Update flow key before recirc

2014-08-12 Thread Pravin Shelar
On Mon, Aug 11, 2014 at 3:36 PM, Andy Zhou wrote: > When flow key becomes invalid due to push or pop actions, current > implementation leaves it as invalid, only rebuild the flow key used > for recirculation. > > This works, but is less efficient in case of multiple recirc > actions. Each recirc a

[ovs-dev] Bug#757761: openvswitch-switch: Please include ovsk-controller

2014-08-12 Thread Tomasz Buchert
On 11/08/14 14:28, Ben Pfaff wrote: > On Mon, Aug 11, 2014 at 08:17:19PM +0200, Dariusz Dwornikowski wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > On 11.08.2014 17:38, Ben Pfaff wrote: > > > On Mon, Aug 11, 2014 at 09:53:09AM +0200, Dariusz Dwornikowski > > > wrote: > > >>

[ovs-dev] [PATCH] openvswitch: Fix memory leak in ovs_vport_alloc() error path

2014-08-12 Thread Christoph Jaeger
ovs_vport_alloc() bails out without freeing the memory 'vport' points to. Picked up by Coverity - CID 1230503. Fixes: 5cd667b0a4 ("openvswitch: Allow each vport to have an array of 'port_id's.") Signed-off-by: Christoph Jaeger --- net/openvswitch/vport.c | 4 +++- 1 file changed, 3 insertions(