Re: [ovs-dev] [PATCH] vswitch.xml: Fix a typo.

2014-08-26 Thread Justin Pettit
Acked-by: Justin Pettit --Justin On August 25, 2014 at 10:42:24 PM, Alex Wang (al...@nicira.com) wrote: > Signed-off-by: Alex Wang > --- > vswitchd/vswitch.xml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml > index 6c49250..

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

2014-08-26 Thread Thomas Graf
On 08/25/14 at 08:10pm, Jesse Gross wrote: > On Mon, Aug 25, 2014 at 7:19 PM, Jarno Rajahalme > wrote: > > instead of: > > > > set(ipv4(src=35.8.2.41/0.0.0.0,dst=172.16.0.20/0.0.0.0,proto=6/0xff,tos=0x80/0,ttl=128/0,frag=no/0)) > > > > we could have: > > > > set(ipv4(proto=6)) > > Yes, that's wh

Re: [ovs-dev] [patch net-next RFC 04/12] rtnl: expose physical switch id for particular device

2014-08-26 Thread Jiri Pirko
Fri, Aug 22, 2014 at 09:08:39PM CEST, john.fastab...@gmail.com wrote: >On 08/21/2014 09:18 AM, Jiri Pirko wrote: >>The netdevice represents a port in a switch, it will expose >>IFLA_PHYS_SWITCH_ID value via rtnl. Two netdevices with the same value >>belong to one physical switch. >> >>Signed-off-by

Re: [ovs-dev] [patch net-next RFC 03/12] net: introduce generic switch devices support

2014-08-26 Thread Jiri Pirko
Sun, Aug 24, 2014 at 01:46:05PM CEST, tg...@suug.ch wrote: >On 08/21/14 at 06:18pm, Jiri Pirko wrote: >> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h >> index 39294b9..8b5d14c 100644 >> --- a/include/linux/netdevice.h >> +++ b/include/linux/netdevice.h >> @@ -49,6 +49,8 @@ >>

[ovs-dev] [PATCH v2] miniflow: Remove unused values_inline branch from miniflow_move()

2014-08-26 Thread Thomas Graf
The branch is unused as size < sizeof dst->inline_values must always be true for inlined values. Hitting the branch would lead to corruption as inline_values is accessed out of bounds. Remove branch and add assertion. Cc: Jarno Rajahalme Signed-off-by: Thomas Graf --- v2: fixed assertion lib/

[ovs-dev] [PATCH] json: Fix leaked nodes in json_hash_object()

2014-08-26 Thread Thomas Graf
nodes is allocated through shash_sort() but never freed. Signed-off-by: Thomas Graf --- lib/json.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/json.c b/lib/json.c index 167c40c..9c819d7 100644 --- a/lib/json.c +++ b/lib/json.c @@ -461,6 +461,7 @@ json_hash_object(const struct shash *

[ovs-dev] [PATCH] build: Use errtrace to simplify travis-ci failure detection

2014-08-26 Thread Thomas Graf
Causes the build script to fail if any command inside the script returns nonzero. Signed-off-by: Thomas Graf --- .travis/build.sh | 43 --- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/.travis/build.sh b/.travis/build.sh index e9bb9e2..a

Re: [ovs-dev] [patch net-next RFC 02/12] net: rename netdev_phys_port_id to more generic name

2014-08-26 Thread Or Gerlitz
On 21/08/2014 19:18, Jiri Pirko wrote: --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -868,7 +868,7 @@ static noinline size_t if_nlmsg_size(const struct net_device *dev, + rtnl_port_size(dev, ext_filter_mask) /* IFLA_VF_PORTS + IFLA_PORT_SELF */ + rtnl_li

Re: [ovs-dev] [PATCH] build: Add travis continuous integration support

2014-08-26 Thread Thomas Graf
On 08/25/14 at 06:13pm, Thomas Graf wrote: > I'll work out the travis.yml details, looks like extending it > with something like below should do: > > notifications: > email: > recipients: > - $BUILD_CI_LIST > > Can you setup a mailing list for the reports on openvswitch.org > and set

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Roopa Prabhu
On 8/25/14, 3:50 PM, Thomas Graf wrote: On 08/25/14 at 12:15pm, Jamal Hadi Salim wrote: On 08/25/14 10:17, Thomas Graf wrote: On 08/25/14 at 09:53am, Jamal Hadi Salim wrote: fdb_add() *is* flow based. At least in my understanding, the whole point here is to extend the idea of fdb_add() and make

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Jamal Hadi Salim
On 08/25/14 18:11, Thomas Graf wrote: First of all, thanks for the animated discussion, wouldn't want to miss our arguments ;-) Passion is key my friend;-> It is said that ancient Greeks would ask of a person whose funeral they are thinking to attend "was s/he passionate in life?" And if the a

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Jiri Pirko
Tue, Aug 26, 2014 at 03:50:21PM CEST, ro...@cumulusnetworks.com wrote: >On 8/25/14, 3:50 PM, Thomas Graf wrote: >>On 08/25/14 at 12:15pm, Jamal Hadi Salim wrote: >>>On 08/25/14 10:17, Thomas Graf wrote: On 08/25/14 at 09:53am, Jamal Hadi Salim wrote: fdb_add() *is* flow based. At least in m

Re: [ovs-dev] [patch net-next RFC 02/12] net: rename netdev_phys_port_id to more generic name

2014-08-26 Thread Jiri Pirko
Tue, Aug 26, 2014 at 02:23:24PM CEST, ogerl...@mellanox.com wrote: >On 21/08/2014 19:18, Jiri Pirko wrote: >>--- a/net/core/rtnetlink.c >>+++ b/net/core/rtnetlink.c >>@@ -868,7 +868,7 @@ static noinline size_t if_nlmsg_size(const struct >>net_device *dev, >> + rtnl_port_size(dev, ext_f

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Thomas Graf
On 08/26/14 at 10:00am, Jamal Hadi Salim wrote: > >I would argue that swflow is a superset of a Netlink route. It > >may infact be very useful to extend the API with something that > >understands the Netlink representation of a route and have the > >API translate that to a classifier that can be of

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Jamal Hadi Salim
On 08/25/14 18:50, Thomas Graf wrote: On 08/25/14 at 12:15pm, Jamal Hadi Salim wrote: On 08/25/14 10:17, Thomas Graf wrote: I dont think we have a problem handling any of this today. Yes we do. It's restricted to L2 and we can't extend it easily It is restricted to L2 because it is L2 pro

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Jamal Hadi Salim
On 08/26/14 10:06, Jiri Pirko wrote: Yes. Flows are phase one. The api will be extended in for whatever is needed for l2/l3 as you said. Also I see a possibility to implement the l2/l3 use case with flows as well. And as a note: This is where i have the disagreement. It is good there is acknow

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Scott Feldman
On Aug 26, 2014, at 6:50 AM, Roopa Prabhu wrote: > On 8/25/14, 3:50 PM, Thomas Graf wrote: >> On 08/25/14 at 12:15pm, Jamal Hadi Salim wrote: >>> On 08/25/14 10:17, Thomas Graf wrote: On 08/25/14 at 09:53am, Jamal Hadi Salim wrote: fdb_add() *is* flow based. At least in my understandin

[ovs-dev] [PATCH] debian: Fix debian packaging build failures due to dot-files in tree.

2014-08-26 Thread Ben Pfaff
openvswitch/* no longer matches all the files since commit 826bc7b61345a5d (build: Add travis continuous integration support) added files with names beginning with ".". VMware-BZ: #1298353 Signed-off-by: Ben Pfaff --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Jamal Hadi Salim
On 08/26/14 11:01, Scott Feldman wrote: I don’t see it that way. I believe sw_flow can be the intermediary representation to span flow-based and non-flow-based HW, and from flow-based world and traditional l2/l3 world. Is there more magic to this than what Thomas just presented in this

Re: [ovs-dev] [PATCH] debian: Fix debian packaging build failures due to dot-files in tree.

2014-08-26 Thread Justin Pettit
Acked-by: Justin Pettit --Justin On August 26, 2014 at 8:07:55 AM, Ben Pfaff (b...@nicira.com) wrote: > openvswitch/* no longer matches all the files since commit 826bc7b61345a5d > (build: Add travis continuous integration support) added files with names > beginning with ".". > > VMware-BZ: #1

Re: [ovs-dev] [PATCH] debian: Fix debian packaging build failures due to dot-files in tree.

2014-08-26 Thread Ben Pfaff
Applied, thanks! On Tue, Aug 26, 2014 at 08:15:07AM -0700, Justin Pettit wrote: > Acked-by: Justin Pettit > > --Justin > > > On August 26, 2014 at 8:07:55 AM, Ben Pfaff (b...@nicira.com) wrote: > > openvswitch/* no longer matches all the files since commit 826bc7b61345a5d > > (build: Add travi

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Jiri Pirko
Tue, Aug 26, 2014 at 04:58:54PM CEST, j...@mojatatu.com wrote: >On 08/26/14 10:06, Jiri Pirko wrote: > >>Yes. Flows are phase one. The api will be extended in for whatever is >>needed for l2/l3 as you said. Also I see a possibility to implement the >>l2/l3 use case with flows as well. > >And as a n

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Jamal Hadi Salim
On 08/26/14 11:22, Jiri Pirko wrote: I do not think that really matters. Phase one is flows. After that we can focus on l2/l3. If we would be able to fit in in flows (some drivers may), then ok. If not, we extend the api with couple of more l2/l3 related ndos. I see no problem there. Well, it

Re: [ovs-dev] [PATCH] debian: Ignore openvswitch-vtep directory generated during packaging.

2014-08-26 Thread Ben Pfaff
Thanks, applied. On Mon, Aug 25, 2014 at 10:38:12AM -0700, Andy Zhou wrote: > LGTM, Also tested the change. > Acked-by: Andy Zhou > > On Thu, Aug 14, 2014 at 11:14 AM, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > > --- > > debian/.gitignore | 1 + > > 1 file changed, 1 insertion(+) > > >

Re: [ovs-dev] [PATCH] odp-util: Initialize tun_key and tun_key_mask

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 02:49:55AM +0200, Thomas Graf wrote: > tun_key_to_attr() accesses tp_src and tp_dst which are currently > uinitialized. > > Signed-off-by: Thomas Graf Hmm, maybe we need to parse and format these fields too, but initializing them predictably is a good start. Applied, tha

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Jiri Pirko
Tue, Aug 26, 2014 at 05:29:10PM CEST, j...@mojatatu.com wrote: >On 08/26/14 11:22, Jiri Pirko wrote: > >>I do not think that really matters. Phase one is flows. After that we >>can focus on l2/l3. If we would be able to fit in in flows (some drivers >>may), then ok. If not, we extend the api with c

Re: [ovs-dev] [PATCH] build: Add travis continuous integration support

2014-08-26 Thread Ben Pfaff
On Mon, Aug 25, 2014 at 06:13:14PM +0200, Thomas Graf wrote: > Can you setup a mailing list for the reports on openvswitch.org > and set an environment variable in the github settings to contain > the address of the list? [1] Justin, can we create an "ovs-build" or "ovs-ci" mailing list? _

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Andy Gospodarek
On Tue, Aug 26, 2014 at 05:44:59PM +0200, Jiri Pirko wrote: > Tue, Aug 26, 2014 at 05:29:10PM CEST, j...@mojatatu.com wrote: > >On 08/26/14 11:22, Jiri Pirko wrote: > > > >>I do not think that really matters. Phase one is flows. After that we > >>can focus on l2/l3. If we would be able to fit in in

Re: [ovs-dev] [PATCH] build: Add travis continuous integration support

2014-08-26 Thread Justin Pettit
> On Aug 26, 2014, at 8:48 AM, Ben Pfaff wrote: > >> On Mon, Aug 25, 2014 at 06:13:14PM +0200, Thomas Graf wrote: >> Can you setup a mailing list for the reports on openvswitch.org >> and set an environment variable in the github settings to contain >> the address of the list? [1] > > Justin, c

[ovs-dev] [PATCH] datapath-windows: trivial formatting changes in Netlink.c

2014-08-26 Thread Nithin Raju
--- datapath-windows/ovsext/Netlink.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/datapath-windows/ovsext/Netlink.c b/datapath-windows/ovsext/Netlink.c index 1c8d054..7b50221 100644 --- a/datapath-windows/ovsext/Netlink.c +++ b/datapath-windows/ovsext/N

[ovs-dev] [PATCH] netlink-socket.c: fix typo to get_sock_pid_from_kernel()

2014-08-26 Thread Nithin Raju
A typo crept in while respinning get_sock_pid_from_kernel() in the previous patch. Fixing it now. Also, get_sock_pid_from_kernel() doesn't need an OUT argument. Fixing that too. --- lib/netlink-socket.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/netlink-s

Re: [ovs-dev] [PATCH v2] miniflow: Remove unused values_inline branch from miniflow_move()

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 12:01:34PM +0200, Thomas Graf wrote: > The branch is unused as size < sizeof dst->inline_values must > always be true for inlined values. Hitting the branch would lead > to corruption as inline_values is accessed out of bounds. > > Remove branch and add assertion. > > Cc:

Re: [ovs-dev] [PATCH] json: Fix leaked nodes in json_hash_object()

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 12:23:03PM +0200, Thomas Graf wrote: > nodes is allocated through shash_sort() but never freed. > > Signed-off-by: Thomas Graf Wow, that's a long-standing bug. It looks like in practice we only ever hash objects used as identifiers in the OVSDB protocol, and it's not lik

[ovs-dev] [PATCH] datapath-windows: Update netlink family IDs

2014-08-26 Thread Nithin Raju
I didn't realize earlier while defining OvsDpInterfaceExt.h that there are special values defined in netlink-protocol.h for nlmsg_type. For Eg. NLMSG_ERROR is defined to be 2. In this patch, we update the values of the family IDs to not clash with the special defines. I'm using NLMSG_MIN_TYPE as a

Re: [ovs-dev] [PATCH] build: Use errtrace to simplify travis-ci failure detection

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 12:24:04PM +0200, Thomas Graf wrote: > Causes the build script to fail if any command inside the > script returns nonzero. > > Signed-off-by: Thomas Graf We don't seem to have the file that this modifies. Did I miss a patch? __

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Thomas Graf
On 08/26/14 at 11:54am, Andy Gospodarek wrote: > It is easy to *say* it could be added later, but connecting to software > forwarding in the kernel outside of OVS (which is important to some) > would take significant effort since this set only connects switch > hardware to OVS. Can you explain why

Re: [ovs-dev] [PATCH] datapath-windows: trivial formatting changes in Netlink.c

2014-08-26 Thread Ankur Sharma
Hi, Changes are fine. Acked. Regards, Ankur From: Nithin Raju Sent: Tuesday, August 26, 2014 9:02 AM To: dev@openvswitch.org; Ankur Sharma Cc: Nithin Raju Subject: [PATCH] datapath-windows: trivial formatting changes in Netlink.c --- datapath-windows/ov

Re: [ovs-dev] [PATCH] build: Use errtrace to simplify travis-ci failure detection

2014-08-26 Thread Thomas Graf
On 08/26/14 at 09:15am, Ben Pfaff wrote: > On Tue, Aug 26, 2014 at 12:24:04PM +0200, Thomas Graf wrote: > > Causes the build script to fail if any command inside the > > script returns nonzero. > > > > Signed-off-by: Thomas Graf > > We don't seem to have the file that this modifies. Did I miss

Re: [ovs-dev] [PATCH] datapath-windows: trivial formatting changes in Netlink.c

2014-08-26 Thread Ankur Sharma
Acked-by: Ankur Sharma Regards, Ankur From: Ankur Sharma Sent: Tuesday, August 26, 2014 9:21 AM To: Nithin Raju; dev@openvswitch.org Subject: RE: [PATCH] datapath-windows: trivial formatting changes in Netlink.c Hi, Changes are fine. Acked. Regards, Ank

Re: [ovs-dev] Agenda for IRC neeting for 8/13 (Nithin Raju)

2014-08-26 Thread Samuel Ghinet
Thanks Ben! From: Ben Pfaff [b...@nicira.com] Sent: Friday, August 22, 2014 7:59 PM To: Samuel Ghinet Cc: dev@openvswitch.org Subject: Re: [ovs-dev] Agenda for IRC neeting for 8/13 (Nithin Raju) On Fri, Aug 22, 2014 at 04:27:01PM +, Samuel Ghinet wrote:

[ovs-dev] [PATCH] odp-util: Only add recirc_id mask to Netlink message if mask is provided

2014-08-26 Thread Thomas Graf
Current unconditional call may result in NULL being passed to nl_msg_put_u32(). Cc: Andy Zhou Signed-off-by: Thomas Graf --- lib/odp-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index 19d0627..8a96068 100644 --- a/lib/odp-util.c +

[ovs-dev] [PATCH] dpif-netdev: Fix leaked port and port->rxq in error path

2014-08-26 Thread Thomas Graf
Signed-off-by: Thomas Graf --- lib/dpif-netdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 7401293..c7a1242 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -669,6 +669,8 @@ do_add_port(struct dp_netdev *dp, const char *devname, co

Re: [ovs-dev] [PATCH 1/2] datapath-windows: define mcgroup IDs for VPORT and other families

2014-08-26 Thread Samuel Ghinet
Hello Nithin, If there are great odds that only the VPORT multicast group will be used, I think it would be best not to add the other multicast group ids. If a need will arise in the future to add support for multicast groups for datapath, packet, etc. it would be best done only then. I think t

Re: [ovs-dev] [patch net-next RFC 02/12] net: rename netdev_phys_port_id to more generic name

2014-08-26 Thread Stephen Hemminger
On Tue, 26 Aug 2014 15:23:24 +0300 Or Gerlitz wrote: > just a nit, but if this approach/patch goes in, any reason not to change > IFLA_PHYS_PORT_ID to IFLA_PHYS_ITEM_ID? Userspace API ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mai

[ovs-dev] OVS-on-HyperV: Agenda for IRC meeting on 8/27

2014-08-26 Thread Nithin Raju
hi Alin/Sam, These were the items we wanted to discuss: 1. Netlink implementation: * status * work has been spread out now, and issues have been created for each individual task. There should be no confusion now. This was the plan all along, BTW. We'll discuss anything that is not clear. 2.

Re: [ovs-dev] [PATCH 1/2] datapath-windows: define mcgroup IDs for VPORT and other families

2014-08-26 Thread Nithin Raju
hi Samuel, Sure, I can trim the list to have only the OVS_WIN_NL_VPORT_MCGRP_ID defined and nothing else. Pls. do note that we also need the OVS_WIN_NL_MCGRP_START_ID. I'll respin the patch and send it out. thanks, Nithin On Aug 26, 2014, at 9:55 AM, Samuel Ghinet wrote: > Hello Nithin, > >

Re: [ovs-dev] Cloning packets for "action: set field"

2014-08-26 Thread Samuel Ghinet
Hi Saurabh, That may not be a very easy answer, but, a better way would be, I believe: headRoom -> encapBytes copySize -> headersSize copySize + headRoom -> (new variable) newMdlSize It would also be very useful to have documentation comments on the parameters, e.g. /* * headersSize:the numb

Re: [ovs-dev] [PATCH v2] test-controller: Rename to ovs-testcontroller, again install.

2014-08-26 Thread Ben Pfaff
On Fri, Aug 22, 2014 at 04:31:11PM -0700, Justin Pettit wrote: > On Fri, Aug 15, 2014 at 10:28 AM, Ben Pfaff wrote: > > diff --git a/NEWS b/NEWS > > index 1ea7bda..656f750 100644 > > --- a/NEWS > > +++ b/NEWS > > @@ -17,6 +17,9 @@ Post-v2.3.0 > > * OpenFlow 1.5 (draft) Copy-Field action is n

Re: [ovs-dev] [PATCH 1/2] datapath-windows: define mcgroup IDs for VPORT and other families

2014-08-26 Thread Samuel Ghinet
Nithin, Perhaps it will also be useful if you could show the relationship between OVS_WIN_NL_VPORT_MCGRP_ID and OVS_WIN_NL_MCGRP_START_ID in OvsDpInterfaceExt.h. Something like: [CODE] #define OVS_WIN_NL_MCGRP_START_ID100 #define OVS_WIN_NL_VPORT_MCGRP_ID (OVS_WIN_NL_MCGRP

Re: [ovs-dev] [PATCH] vswitch.xml: Fix a typo.

2014-08-26 Thread Alex Wang
Thx, applied to master and branch-2.3, On Tue, Aug 26, 2014 at 12:26 AM, Justin Pettit wrote: > Acked-by: Justin Pettit > > --Justin > > > On August 25, 2014 at 10:42:24 PM, Alex Wang (al...@nicira.com) wrote: > > Signed-off-by: Alex Wang > > --- > > vswitchd/vswitch.xml | 2 +- > > 1 file chan

Re: [ovs-dev] [RFC 07/14] upcall: Create ukeys in handler threads.

2014-08-26 Thread Ben Pfaff
On Thu, Aug 21, 2014 at 05:42:02PM +1200, Joe Stringer wrote: > Currently, when a revalidator thread first dumps a flow, it creates a > 'udpif_key' object and caches a copy of a kernel flow key. This allows > us to perform lookups in the classifier to attribute stats and validate > the correctness

[ovs-dev] Bug#757761: Bug #757761 -- needed for jessie?

2014-08-26 Thread Ben Pfaff
Is your mininet packaging targeted at jessie? That is, do you need ovs-testcontroller in jessie or just in jessie+1? It makes a difference because jessie will have Open vSwitch 2.3, but the ovs-testcontroller change will only be in 2.4, and I do not want to backport the change to 2.3 unless I rea

Re: [ovs-dev] [PATCH] build: Use errtrace to simplify travis-ci failure detection

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 06:25:13PM +0200, Thomas Graf wrote: > On 08/26/14 at 09:15am, Ben Pfaff wrote: > > On Tue, Aug 26, 2014 at 12:24:04PM +0200, Thomas Graf wrote: > > > Causes the build script to fail if any command inside the > > > script returns nonzero. > > > > > > Signed-off-by: Thomas G

Re: [ovs-dev] [PATCH] datapath-windows: trivial formatting changes in Netlink.c

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 09:02:07AM -0700, Nithin Raju wrote: > --- Needs a Signed-off-by. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] netlink-socket.c: fix typo to get_sock_pid_from_kernel()

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 09:08:16AM -0700, Nithin Raju wrote: > A typo crept in while respinning get_sock_pid_from_kernel() in the previous > patch. Fixing it now. Also, get_sock_pid_from_kernel() doesn't need an OUT > argument. Fixing that too. Needs a Signed-off-by. __

Re: [ovs-dev] [PATCH] datapath-windows: Update netlink family IDs

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 09:15:07AM -0700, Nithin Raju wrote: > I didn't realize earlier while defining OvsDpInterfaceExt.h that > there are special values defined in netlink-protocol.h for nlmsg_type. > For Eg. NLMSG_ERROR is defined to be 2. In this patch, we update the > values of the family IDs

Re: [ovs-dev] [PATCH] odp-util: Only add recirc_id mask to Netlink message if mask is provided

2014-08-26 Thread Andy Zhou
Thanks for the fix. Will push in a short while. Acked-by: Andy Zhou On Tue, Aug 26, 2014 at 9:34 AM, Thomas Graf wrote: > Current unconditional call may result in NULL being passed to > nl_msg_put_u32(). > > Cc: Andy Zhou > Signed-off-by: Thomas Graf > --- > lib/odp-util.c | 4 +++- > 1 file

Re: [ovs-dev] [PATCH] dpif-netdev: Fix leaked port and port->rxq in error path

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 06:36:08PM +0200, Thomas Graf wrote: > Signed-off-by: Thomas Graf > --- > lib/dpif-netdev.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c > index 7401293..c7a1242 100644 > --- a/lib/dpif-netdev.c > +++ b/lib/dpif-netdev.c

Re: [ovs-dev] [PATCH] odp-util: Only add recirc_id mask to Netlink message if mask is provided

2014-08-26 Thread Ben Pfaff
Too late, I already got this one ;-) On Tue, Aug 26, 2014 at 11:24:17AM -0700, Andy Zhou wrote: > Thanks for the fix. Will push in a short while. > > Acked-by: Andy Zhou > > On Tue, Aug 26, 2014 at 9:34 AM, Thomas Graf wrote: > > Current unconditional call may result in NULL being passed to >

Re: [ovs-dev] [PATCH] odp-util: Only add recirc_id mask to Netlink message if mask is provided

2014-08-26 Thread Andy Zhou
Git also told me so. :). Thanks. On Tue, Aug 26, 2014 at 11:30 AM, Ben Pfaff wrote: > Too late, I already got this one ;-) > > On Tue, Aug 26, 2014 at 11:24:17AM -0700, Andy Zhou wrote: >> Thanks for the fix. Will push in a short while. >> >> Acked-by: Andy Zhou >> >> On Tue, Aug 26, 2014 at 9:3

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Andy Gospodarek
On Tue, Aug 26, 2014 at 05:19:56PM +0100, Thomas Graf wrote: > On 08/26/14 at 11:54am, Andy Gospodarek wrote: > > It is easy to *say* it could be added later, but connecting to software > > forwarding in the kernel outside of OVS (which is important to some) > > would take significant effort since

Re: [ovs-dev] [PATCH] datapath: Fix recirc bug where skb is double freed.

2014-08-26 Thread Andy Zhou
On Mon, Aug 25, 2014 at 6:32 PM, Pravin Shelar wrote: > On Mon, Aug 25, 2014 at 3:24 PM, Andy Zhou wrote: >> If recirc action is the last action of a action list, the SKB triggers >> the recirc will be freed twice. This patch fixes this bug. >> >> Reported-by: Justin Pettit >> Signed-off-by: And

Re: [ovs-dev] [PATCH v2] miniflow: Remove unused values_inline branch from miniflow_move()

2014-08-26 Thread Jarno Rajahalme
On Aug 26, 2014, at 3:01 AM, Thomas Graf wrote: > The branch is unused as size < sizeof dst->inline_values must > always be true for inlined values. Hitting the branch would lead > to corruption as inline_values is accessed out of bounds. > Miniflows can also be dynamically allocated to have m

Re: [ovs-dev] [patch net-next RFC 06/12] net: introduce dummy switch

2014-08-26 Thread Andy Gospodarek
On Thu, Aug 21, 2014 at 06:18:59PM +0200, Jiri Pirko wrote: > Dummy switch implementation using switchdev interface > [...] > + if (!data || !data[IFLA_DYMMYSWPORT_PHYS_SWITCH_ID]) [...] > + dsp->psid.id_len = nla_len(data[IFLA_DYMMYSWPORT_PHYS_SWITCH_ID]); > + memcpy(dsp->psid.id, nla

Re: [ovs-dev] Cloning packets for "action: set field"

2014-08-26 Thread Saurabh Shah
Hi Samuel, > -Original Message- > From: Samuel Ghinet [mailto:sghi...@cloudbasesolutions.com] > Sent: Tuesday, August 26, 2014 10:40 AM > To: Saurabh Shah > Cc: dev@openvswitch.org > Subject: RE: Cloning packets for "action: set field" > > Hi Saurabh, > > That may not be a very easy answ

Re: [ovs-dev] [PATCH] datapath-windows: trivial formatting changes in Netlink.c

2014-08-26 Thread Saurabh Shah
>--- > datapath-windows/ovsext/Netlink.c | 16 +--- > 1 files changed, 9 insertions(+), 7 deletions(-) Acked-by: Saurabh Shah ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] netlink-socket.c: fix typo to get_sock_pid_from_kernel()

2014-08-26 Thread Saurabh Shah
>A typo crept in while respinning get_sock_pid_from_kernel() in the >previous >patch. Fixing it now. Also, get_sock_pid_from_kernel() doesn't need an OUT >argument. Fixing that too. >--- > lib/netlink-socket.c | 10 +- > 1 files changed, 5 insertions(+), 5 deletions(-) Acked-by: Saurabh

[ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
Hi, I have a simple question. When we use metadata as flow-rule, Does all traffic forward ofproto to match it because there is no match field in "struct sw_flow" in datapath? Thanks, Junguk ___ dev mailing list dev@openvswitch.org http://openvswitch.org/

Re: [ovs-dev] [PATCH v2] miniflow: Remove unused values_inline branch from miniflow_move()

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 12:02:48PM -0700, Jarno Rajahalme wrote: > > On Aug 26, 2014, at 3:01 AM, Thomas Graf wrote: > > > The branch is unused as size < sizeof dst->inline_values must > > always be true for inlined values. Hitting the branch would lead > > to corruption as inline_values is acce

Re: [ovs-dev] [PATCH] datapath: Fix recirc bug where skb is double freed.

2014-08-26 Thread Pravin Shelar
On Tue, Aug 26, 2014 at 11:45 AM, Andy Zhou wrote: > On Mon, Aug 25, 2014 at 6:32 PM, Pravin Shelar wrote: >> On Mon, Aug 25, 2014 at 3:24 PM, Andy Zhou wrote: >>> If recirc action is the last action of a action list, the SKB triggers >>> the recirc will be freed twice. This patch fixes this bug

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 01:36:04PM -0600, Junguk Cho wrote: > Hi, I have a simple question. > When we use metadata as flow-rule, > Does all traffic forward ofproto to match it because there is no match > field in "struct sw_flow" in datapath? No, metadata matching still allows for kernel forwardin

Re: [ovs-dev] [PATCH 2/2 v2] netlink-socket.c: add support for nl_lookup_genl_mcgroup()

2014-08-26 Thread Ben Pfaff
On Mon, Aug 25, 2014 at 09:45:08AM -0700, Nithin Raju wrote: > While we work out whether nl_sock_join_mcgroup() will be the mechanism > to support VPORT events, it is easy to add support for > nl_lookup_genl_mcgroup() and make progress on the other commands. > > In this patch, we implement support

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
Oh, really? Basically, what I understood is datapath keeps some tables based on "struct sw_flow_key" and used it for evaluating if incoming packet is matched or not. Is it right or do I miss something? If I miss something, can you forward me to metadata matching in datapath? Thanks, Junguk 2

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Ben Pfaff
Metadata is always 0 at the point that a packet enters the OpenFlow pipeline, so there's no need for the datapath to match on it--it would always be a match against 0. On Tue, Aug 26, 2014 at 01:44:56PM -0600, Junguk Cho wrote: > Oh, really? > > Basically, what I understood is datapath keeps some

Re: [ovs-dev] [PATCH] datapath: Fix recirc bug where skb is double freed.

2014-08-26 Thread Andy Zhou
On Tue, Aug 26, 2014 at 12:39 PM, Pravin Shelar wrote: > On Tue, Aug 26, 2014 at 11:45 AM, Andy Zhou wrote: >> On Mon, Aug 25, 2014 at 6:32 PM, Pravin Shelar wrote: >>> On Mon, Aug 25, 2014 at 3:24 PM, Andy Zhou wrote: If recirc action is the last action of a action list, the SKB triggers

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
Ok. I got it. Maybe I misunderstood the concept of metadata. Metadata is passed between tables. It is not from packets. One more question, if we used metadata, is metadata stored in "tun_in" in "struct ovs_key_ipv4_tunnel"? Which data structure keeps metadata information? Thanks, Junguk 2014-08

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 01:57:32PM -0600, Junguk Cho wrote: > One more question, if we used metadata, is metadata stored in "tun_in" in > "struct ovs_key_ipv4_tunnel"? No. > Which data structure keeps metadata information? struct flow's "metadata" member.

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

2014-08-26 Thread Jarno Rajahalme
On Aug 26, 2014, at 1:01 AM, Thomas Graf wrote: > On 08/25/14 at 08:10pm, Jesse Gross wrote: >> On Mon, Aug 25, 2014 at 7:19 PM, Jarno Rajahalme >> wrote: >>> instead of: >>> >>> set(ipv4(src=35.8.2.41/0.0.0.0,dst=172.16.0.20/0.0.0.0,proto=6/0xff,tos=0x80/0,ttl=128/0,frag=no/0)) >>> >>> we c

[ovs-dev] [PATCH] Rename files under datapath-windows

2014-08-26 Thread Samuel Ghinet
This patch includes the file renaming and accommodations needed for the file renaming to build the forwarding extension for Hyper-V. This patch is also a follow-up for the thread: http://openvswitch.org/pipermail/dev/2014-August/044005.html Signed-off-by: Samuel Ghinet Co-authored-by: Alin Gabr

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Alexei Starovoitov
On Tue, Aug 26, 2014 at 9:19 AM, Thomas Graf wrote: > > Wait... I don't want to use OpenFlow to configure my laptop ;-) +1 > We should leave the controller out of this discussion though. A > controller is not required to run OVS at all. OpenStack Neutron > is a very good example for that. There

Re: [ovs-dev] Cloning packets for "action: set field"

2014-08-26 Thread Samuel Ghinet
"Let me think a little more about this. The functionality is meant to be generic, so I don't like calling the variable 'encapBytes', since it becomes a specific usage of the API." I know, but I think "encapBytes" is the only usage we could ever have for the project. We could also use something

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-26 Thread Thomas Graf
On 08/26/14 at 01:13pm, Alexei Starovoitov wrote: > I think it's important distinction. In-kernel OVS is not OF. > It's a networking function that has hard-coded packet parser, > N-tuple match and programmable actions. > There were times when HW vendors were using OF check-box > to sell more chips,

Re: [ovs-dev] [PATCH] dpif-netdev: Fix leaked port and port->rxq in error path

2014-08-26 Thread Thomas Graf
On 08/26/14 at 11:28am, Ben Pfaff wrote: > On Tue, Aug 26, 2014 at 06:36:08PM +0200, Thomas Graf wrote: > > Signed-off-by: Thomas Graf > > --- > > lib/dpif-netdev.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c > > index 7401293..c7a1242 1

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
But, it is in "struct flow" in lib/flow.h. It is not from "struct sw_flow_key" in /datapath/flow.h. I assume metadata is used in action in datapath. Is it right? Thanks, Junguk 2014-08-26 14:00 GMT-06:00 Ben Pfaff : > On Tue, Aug 26, 2014 at 01:57:32PM -0600, Junguk Cho wrote: > > One more qu

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 03:14:10PM -0600, Junguk Cho wrote: > But, it is in "struct flow" in lib/flow.h. > It is not from "struct sw_flow_key" in /datapath/flow.h. > > I assume metadata is used in action in datapath. metadata is not a datapath concept. There is no need for it to be a datapath co

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
What I thought is to generally use metadata as matching rule in datapath. It is not just between tables. Thanks, Junguk 2014-08-26 15:15 GMT-06:00 Ben Pfaff : > On Tue, Aug 26, 2014 at 03:14:10PM -0600, Junguk Cho wrote: > > But, it is in "struct flow" in lib/flow.h. > > It is not from "stru

Re: [ovs-dev] [RFC 07/14] upcall: Create ukeys in handler threads.

2014-08-26 Thread Joe Stringer
On 27 August 2014 06:09, Ben Pfaff wrote: > On Thu, Aug 21, 2014 at 05:42:02PM +1200, Joe Stringer wrote: > > Currently, when a revalidator thread first dumps a flow, it creates a > > 'udpif_key' object and caches a copy of a kernel flow key. This allows > > us to perform lookups in the classifie

[ovs-dev] Bug#757761: Bug #757761 -- needed for jessie?

2014-08-26 Thread Tomasz Buchert
On 26/08/14 11:13, Ben Pfaff wrote: > Is your mininet packaging targeted at jessie? That is, do you need > ovs-testcontroller in jessie or just in jessie+1? It makes a > difference because jessie will have Open vSwitch 2.3, but the > ovs-testcontroller change will only be in 2.4, and I do not wan

Re: [ovs-dev] [PATCH v2] test-controller: Rename to ovs-testcontroller, again install.

2014-08-26 Thread Jarno Rajahalme
Not sure if it was this patch, but after git pull: tests/test-controller.8.in not found in: . . make[2]: *** [manpages.mk] Error 1 make[2]: Failed to remake makefile `Makefile'. make[2]: *** No rule to make target `tests/test-controller.c', needed by `tests/test-controller.o’. Jarno On Aug 26

Re: [ovs-dev] [PATCH v2] miniflow: Remove unused values_inline branch from miniflow_move()

2014-08-26 Thread Thomas Graf
On 08/26/14 at 12:02pm, Jarno Rajahalme wrote: > Miniflows can also be dynamically allocated to have more inline space than > the default amount. classifier.c makes use of that, but it never calls > miniflow_move (even indirectly) so you are not getting an assert fail. The > motivation for right

Re: [ovs-dev] [PATCH v2] test-controller: Rename to ovs-testcontroller, again install.

2014-08-26 Thread Ben Pfaff
You probably need to "autoreconf". On Tue, Aug 26, 2014 at 03:17:32PM -0700, Jarno Rajahalme wrote: > Not sure if it was this patch, but after git pull: > > tests/test-controller.8.in not found in: . . > make[2]: *** [manpages.mk] Error 1 > make[2]: Failed to remake makefile `Makefile'. > make[2]

[ovs-dev] [v2] datapath: Fix recirc bug where skb is double freed.

2014-08-26 Thread Andy Zhou
If recirc action is the last action of a action list, the SKB triggers the recirc will be freed twice. This patch fixes this bug. Reported-by: Justin Pettit Signed-off-by: Andy Zhou --- datapath/actions.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff -

[ovs-dev] [PATCH] lib/flow.h: Improve struct miniflow comment and definition.

2014-08-26 Thread Jarno Rajahalme
Miniflows can nowadays be dynamically allocated to different inline sizes, as done by lib/classifier.c, but this had not been documented at the struct miniflow definition. Also, MINI_N_INLINE had a different value for 32-bit and 64-bit builds due to a historical reason. Now we use 8 for both. Fi

[ovs-dev] [PATCH] ovsdb: Catch negative timeout values

2014-08-26 Thread Thomas Graf
Although the check is present already, a missing !error branch in the next condition prevents the error from being reported back. Signed-off-by: Thomas Graf --- ovsdb/execution.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ovsdb/execution.c b/ovsdb/execution.c index 6314757..2be131d 10

Re: [ovs-dev] [PATCH] lib/flow.h: Improve struct miniflow comment and definition.

2014-08-26 Thread Thomas Graf
On 08/26/14 at 03:42pm, Jarno Rajahalme wrote: > Miniflows can nowadays be dynamically allocated to different inline > sizes, as done by lib/classifier.c, but this had not been documented > at the struct miniflow definition. > > Also, MINI_N_INLINE had a different value for 32-bit and 64-bit build

Re: [ovs-dev] [PATCH v2] miniflow: Remove unused values_inline branch from miniflow_move()

2014-08-26 Thread Jarno Rajahalme
On Aug 26, 2014, at 3:29 PM, Thomas Graf wrote: > On 08/26/14 at 12:02pm, Jarno Rajahalme wrote: >> Miniflows can also be dynamically allocated to have more inline space than >> the default amount. classifier.c makes use of that, but it never calls >> miniflow_move (even indirectly) so you are

[ovs-dev] [PATCH] ovsdb: Fix leaked row in ovsdb_execute_wait()

2014-08-26 Thread Thomas Graf
An error returned from ovsdb_row_from_json() currently results in leaking of row. Signed-off-by: Thomas Graf --- ovsdb/execution.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovsdb/execution.c b/ovsdb/execution.c index 7a1db0c..6314757 100644 --- a/ovsdb/execution.c +++ b/ovsdb/execution

Re: [ovs-dev] [PATCH] lib/flow.h: Improve struct miniflow comment and definition.

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 03:42:33PM -0700, Jarno Rajahalme wrote: > Finally, use change the storage type of 'values_inline' to uint8_t, as > uint64_t looks kind of wide for a boolean, even though we intend the > bit be carved out from the uint64_t where 'map' resides. It can't be type "bool"? _

Re: [ovs-dev] [PATCH] lib/flow.h: Improve struct miniflow comment and definition.

2014-08-26 Thread Jarno Rajahalme
On Aug 26, 2014, at 3:53 PM, Ben Pfaff wrote: > On Tue, Aug 26, 2014 at 03:42:33PM -0700, Jarno Rajahalme wrote: >> Finally, use change the storage type of 'values_inline' to uint8_t, as >> uint64_t looks kind of wide for a boolean, even though we intend the >> bit be carved out from the uint64_

Re: [ovs-dev] [PATCH] lib/flow.h: Improve struct miniflow comment and definition.

2014-08-26 Thread Jarno Rajahalme
On Aug 26, 2014, at 3:44 PM, Thomas Graf wrote: > On 08/26/14 at 03:42pm, Jarno Rajahalme wrote: >> Miniflows can nowadays be dynamically allocated to different inline >> sizes, as done by lib/classifier.c, but this had not been documented >> at the struct miniflow definition. >> >> Also, MINI_

  1   2   >