Re: [ovs-dev] [PATCH] datapath: remove flow member from struct ovs_skb_cb

2014-08-26 Thread Joe Stringer
I've been having a bit of trouble with ovs after this patch was applied, ovs-vswitchd locks up on Debian 7.6 (VBox VM). Kernel is 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux. I have a fairly typical phy bridge + int bridge setup, with dhclient running on br-int: # ovs-vsctl show

[ovs-dev] [PATCH v2] 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

[ovs-dev] [PATCH v2] 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. Signed-off-by: Nithin Raju --- lib/netlink-socket.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-

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

2014-08-26 Thread Nithin Raju
dpif-linux.c makes a nl_lookup_genl_mcgroup(OVS_VPORT_FAMILY) that is not implemented yet on Windows yet. Multicast group is used currently to subscribe to events related to VPORTs. Whether the exact same mechanism would be used is unclear yet. In the interim, we can implement code to support nl_l

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

2014-08-26 Thread Nithin Raju
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 for nl_lookup_genl_mcgroup() only for the VPORT family though, which i

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

2014-08-26 Thread Tom Herbert
On Thu, Aug 21, 2014 at 9:41 AM, Ben Hutchings wrote: > On Thu, 2014-08-21 at 18:18 +0200, Jiri Pirko wrote: >> The goal of this is to provide a possibility to suport various switch >> chips. Drivers should implement relevant ndos to do so. Now there is a >> couple of ndos defines: >> - for gettin

[ovs-dev] [PATCH] fix nx-match.c and execution.c memory leak find by the tool of fortify

2014-08-26 Thread \y00206114
From: yinpeijun Signed-off-by: yinpeijun --- lib/nx-match.c| 1 + ovsdb/execution.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/nx-match.c b/lib/nx-match.c index 1d3205f..54712cc 100644 --- a/lib/nx-match.c +++ b/lib/nx-match.c @@ -109,6 +109,7 @@ check_mask_consistency(const

Re: [ovs-dev] [RFC] Proposal for enhanced select groups

2014-08-26 Thread Simon Horman
On Fri, Aug 22, 2014 at 08:30:08AM -0700, Ben Pfaff wrote: > On Fri, Aug 22, 2014 at 09:19:41PM +0900, Simon Horman wrote: > > I have been working with Netronome on examining the possibilities of > > providing (richer) load balancing facilities in Open vSwitch. > > > > It seems to us that the curr

[ovs-dev] [PATCH] vtep-ctl: coverity - free error string before return from cmd_remove

2014-08-26 Thread Madhu Challa
error string should be freed in all cases. Signed-off-by: Madhu Challa --- vtep/vtep-ctl.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vtep/vtep-ctl.c b/vtep/vtep-ctl.c index 0b9463a..064ad1f 100644 --- a/vtep/vtep-ctl.c +++ b/vtep/vtep-ctl.c @@ -3199,11 +3199,13 @@

[ovs-dev] [PATCH] lib/odp: coverity null check in odp_execute_sample

2014-08-26 Thread Madhu Challa
call odp_execute_actions__ only if there are any subactions to prevent null pointer dereference in nl_attr_get(). Signed-off-by: Madhu Challa --- lib/odp-execute.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/odp-execute.c b/lib/odp-execute.c index e1e9b57..607af03 100644 --- a/

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

2014-08-26 Thread Andy Zhou
Pushed with the fix suggested. Thanks. On Tue, Aug 26, 2014 at 5:15 PM, Pravin Shelar wrote: > On Tue, Aug 26, 2014 at 3:36 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-

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

2014-08-26 Thread Saurabh Shah
> -Original Message- > From: Ben Pfaff [mailto:b...@nicira.com] > Sent: Tuesday, August 26, 2014 5:03 PM > To: Saurabh Shah > Cc: Samuel Ghinet; dev@openvswitch.org > Subject: Re: [ovs-dev] [PATCH] Rename files under datapath-windows > > On Wed, Aug 27, 2014 at 12:00:33AM +, Saurabh Sh

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

2014-08-26 Thread Pravin Shelar
On Tue, Aug 26, 2014 at 3:36 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: Andy Zhou > --- > datapath/actions.c | 26 -

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

2014-08-26 Thread Ben Pfaff
On Wed, Aug 27, 2014 at 12:11:34AM +, Saurabh Shah wrote: > > -Original Message- > > From: Ben Pfaff [mailto:b...@nicira.com] > > Sent: Tuesday, August 26, 2014 4:56 PM > > To: Saurabh Shah > > Cc: Jarno Rajahalme; dev@openvswitch.org > > Subject: Re: [ovs-dev] [PATCH] lib/flow.h: Impro

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

2014-08-26 Thread Saurabh Shah
> -Original Message- > From: Ben Pfaff [mailto:b...@nicira.com] > Sent: Tuesday, August 26, 2014 4:56 PM > To: Saurabh Shah > Cc: Jarno Rajahalme; dev@openvswitch.org > Subject: Re: [ovs-dev] [PATCH] lib/flow.h: Improve struct miniflow comment > and definition. > > On Tue, Aug 26, 2014 at

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

2014-08-26 Thread Ben Pfaff
On Wed, Aug 27, 2014 at 12:00:33AM +, Saurabh Shah wrote: > I manually patched the change but I wasn't able to build it. Haven't > spent much time figuring out why. Possibly you need to rerun autoreconf. ___ dev mailing list dev@openvswitch.org http:

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

2014-08-26 Thread Saurabh Shah
Hi Samuel, I manually patched the change but I wasn't able to build it. Haven't spent much time figuring out why. link -nologo -DEBUG -out:ovsdb/ovsdb-server.exe ovsdb/ovsdb-server.obj -LIBPATH: C:/pthread/lib/x86 ovsdb/.libs/libovsdb.lib lib/.libs/libopenvswitch.lib pthread VC2.lib ws2_32.lib L

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 11:32:55PM +, Saurabh Shah 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 f

[ovs-dev] [PATCH 2/2] datapath: Use nla_parse_strict() for netlink parsing.

2014-08-26 Thread Joe Stringer
Signed-off-by: Joe Stringer --- datapath/flow_netlink.c | 219 +++ 1 file changed, 86 insertions(+), 133 deletions(-) diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c index 69d1919..aa2cece 100644 --- a/datapath/flow_netlink.c +++ b/data

[ovs-dev] [PATCH 1/2] datapath: Add nla_parse_strict().

2014-08-26 Thread Joe Stringer
This function allows netlink attributes to be parsed more strictly, to check for duplicate attributes, attribute max lengths, and detecting attributes with only non-zero values. Signed-off-by: Joe Stringer --- acinclude.m4 |2 + datapath/linux/Modules.mk

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

2014-08-26 Thread Saurabh Shah
Hey Alin, Are you planning on re-spinning this patch? Saurabh >This commit adds to the automake build system the full build required by >the >forwarding extension solution. > >It will help a lot in the future CI to check the full build of the >project. > >Also the documentation was updated. > >Si

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

2014-08-26 Thread Saurabh Shah
>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 b

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 04:05:31PM -0700, Jarno Rajahalme wrote: > I forgot to add your Reviewed-by:, and it seems it is not possible > to ?git commit ?amend? a commit that already is at github ? or is > it? You can do it with a forced push, e.g. "git push --force". It is risky, though, so one sh

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 04:04:09PM -0700, Jarno Rajahalme wrote: > > 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 f

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

2014-08-26 Thread Ben Pfaff
I wish there were a way to make "make" do it automatically, but I do not know of one. On Tue, Aug 26, 2014 at 04:06:26PM -0700, Jarno Rajahalme wrote: > I forgot about that, sorry. ./boot.sh and ./configure worked for me. > > Jarno > > On Aug 26, 2014, at 3:31 PM, Ben Pfaff wrote: > > > You

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

2014-08-26 Thread Jarno Rajahalme
I forgot about that, sorry. ./boot.sh and ./configure worked for me. Jarno On Aug 26, 2014, at 3:31 PM, Ben Pfaff wrote: > 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: >> >> test

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_

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 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"? _

[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 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

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

[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

[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] [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 -

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]

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 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

[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] [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

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] 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
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] [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] [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] 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 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

[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 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

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] 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] [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 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] 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] [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 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] 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] [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

[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] 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

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] 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 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] [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] 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 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] 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] 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] 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 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] 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] 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: 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] 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

[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] [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

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] [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 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] 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 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, > >

[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 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

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

[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

[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 +

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:

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] [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
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 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] 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? __

[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] 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

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:

[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

[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

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

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 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? _

  1   2   >