Re: [ovs-dev] [PATCH] datapath-windows: Fixed tcp flags byte order in conntrack

2016-09-08 Thread Joe Stringer
On 8 September 2016 at 12:34, Guru Shetty wrote: > On 29 August 2016 at 12:11, Paul Boca wrote: > >> In user mode the flags are interpreted as little endian. >> This fix makes the kernel mode compatible with user mode. >> >> Signed-off-by: Paul-Daniel Boca >> > Applied, thank you. Does this nee

Re: [ovs-dev] Open vSwitch 2.6 release scheduled for Sept. 15

2016-09-09 Thread Joe Stringer
On 9 September 2016 at 08:55, Ben Pfaff wrote: > Our previously announced plan for OVS 2.6 is to release on Sept. 15, in > less than a week. In the OVN meeting in IRC yesterday, we already > discussed a few OVN bugs that should be fixed before the release. All > of them seem like they can be fix

Re: [ovs-dev] [PATCH] stream-unix: only use path-based socket names

2016-09-09 Thread Joe Stringer
On 19 July 2016 at 20:08, Ben Pfaff wrote: > On Tue, Jul 19, 2016 at 05:05:51PM -0300, Thadeu Lima de Souza Cascardo wrote: >> FreeBSD returns a socklen of sockaddr_storage when doing an accept on an unix >> STREAM socket. The current code will assume it means a sun_path larger than >> 0. >> >> T

[ovs-dev] [PATCH 0/3] OVSDB replication fixes.

2016-09-09 Thread Joe Stringer
ighted a segfault, a memory leak and some other warnings about "possibly lost" memory. This series addresses these particular issues. There's a couple of "possible loss" warnings for this test that I didn't address here, because they look less likely to cause problems in

[ovs-dev] [PATCH 1/3] ovsdb-monitor: Fix segfault during replication.

2016-09-09 Thread Joe Stringer
ain (ovsdb-server.c:429) Fixes: 60e0cd041958 ("ovsdb: Replication usability improvements") Signed-off-by: Joe Stringer --- This addresses the crash, but I don't understand the deeper reasoning why we get into this state in the first place so I welcome any counter proposals. Th

[ovs-dev] [PATCH 3/3] ovsdb: Fix replication memory leak.

2016-09-09 Thread Joe Stringer
0x44FFB6: unixctl_server_run (unixctl.c:400) ==18725==by 0x4081AC: main_loop (ovsdb-server.c:182) ==18725==by 0x406432: main (ovsdb-server.c:429) Fixes: 60e0cd041958 ("ovsdb: Replication usability improvements") Signed-off-by: Joe Stringer --- This also affects branch-2.6.

[ovs-dev] [PATCH 2/3] ovsdb-monitor: Fix valgrind 'possible loss' warnings.

2016-09-09 Thread Joe Stringer
By placing these nodes at the start of their respective structures, several "possibly lost" warnings from valgrind are silenced. Fixes: 60e0cd041958 ("ovsdb: Replication usability improvements") Signed-off-by: Joe Stringer --- Also affects branch-2.6. --- ovsdb/jsonrpc-se

Re: [ovs-dev] [v3] ovsdb: Replication usability improvements

2016-09-09 Thread Joe Stringer
On 8 September 2016 at 21:23, Ben Pfaff wrote: > On Tue, Sep 06, 2016 at 10:59:19AM -0700, Joe Stringer wrote: >> In the new test I'm seeing OVSDB segfault: >> >> #0 0x004313ad in ovsdb_datum_compare_3way (a=0x10ebaa0, b=0x0, >>type=0x10c29e8) at

Re: [ovs-dev] [PATCH] stream-unix: only use path-based socket names

2016-09-09 Thread Joe Stringer
On 9 September 2016 at 14:05, Ben Pfaff wrote: > On Fri, Sep 09, 2016 at 01:47:01PM -0700, Joe Stringer wrote: >> On 19 July 2016 at 20:08, Ben Pfaff wrote: >> > On Tue, Jul 19, 2016 at 05:05:51PM -0300, Thadeu Lima de Souza Cascardo >> > wrote: >>

Re: [ovs-dev] [PATCH] datapath: Use pre-routing hook for conntrack.

2016-09-09 Thread Joe Stringer
On 8 September 2016 at 08:49, Jesse Gross wrote: > On Wed, Sep 7, 2016 at 5:18 PM, Joe Stringer wrote: >> On 1 September 2016 at 18:08, Jesse Gross wrote: >>> On Thu, Sep 1, 2016 at 5:01 PM, Joe Stringer wrote: >>>> The upstream code uses NF_INET_PRE_ROUTIN

Re: [ovs-dev] [PATCH] vagrant: Add Debian Jessie support

2016-09-09 Thread Joe Stringer
On 9 September 2016 at 14:09, Thadeu Lima de Souza Cascardo wrote: > Now, vagrant up will test both Fedora 23 and Debian Jessie (8.0), which uses > Linux 3.16. > > Signed-off-by: Thadeu Lima de Souza Cascardo > --- > Vagrantfile | 44 ++-- > 1 file changed

Re: [ovs-dev] [PATCH] vagrant: Add Debian Jessie support

2016-09-12 Thread Joe Stringer
On 12 September 2016 at 03:57, Thadeu Lima de Souza Cascardo wrote: > On Fri, Sep 09, 2016 at 06:44:21PM -0700, Joe Stringer wrote: >> On 9 September 2016 at 14:09, Thadeu Lima de Souza Cascardo >> wrote: >> > Now, vagrant up will test both Fedora 23 and Debian Jessie

Re: [ovs-dev] [PATCH] replication: Be more careful about JSON parsing and simplify code.

2016-09-12 Thread Joe Stringer
ut this new implementation > leaves me more confident due to its simplicity. > > Reported-by: Joe Stringer > Reported-at: http://openvswitch.org/pipermail/dev/2016-September/079315.html > Fixes: 60e0cd041958 ("ovsdb: Replication usability i

Re: [ovs-dev] [PATCH 2/3] ovsdb-monitor: Fix valgrind 'possible loss' warnings.

2016-09-12 Thread Joe Stringer
On 10 September 2016 at 21:24, Ben Pfaff wrote: > On Fri, Sep 09, 2016 at 01:48:52PM -0700, Joe Stringer wrote: >> By placing these nodes at the start of their respective structures, >> several "possibly lost" warnings from valgrind are silenced. >> >> Fix

Re: [ovs-dev] [PATCH 3/3] ovsdb: Fix replication memory leak.

2016-09-12 Thread Joe Stringer
On 10 September 2016 at 21:26, Ben Pfaff wrote: > On Fri, Sep 09, 2016 at 01:48:53PM -0700, Joe Stringer wrote: >> Valgrind reports: >> >> ==18725== 32 bytes in 1 blocks are definitely lost in loss record 339 of 497 >> ==18725==at 0x4C29BBE: malloc (in >> /us

Re: [ovs-dev] [PATCH] datapath: compat: geneve: use ovs specific device type for compat geneve module.

2016-09-12 Thread Joe Stringer
On 12 September 2016 at 14:55, Jesse Gross wrote: > On Mon, Sep 12, 2016 at 2:48 PM, Pravin B Shelar wrote: >> This allows openvswitch and geneve module co-exist kernel on newer >> kernels. >> >> Reported-by: Joe Stringer >> Signed-off-by: Pravin B Shelar &

Re: [ovs-dev] [PATCH v2] vagrant: Add Debian Jessie support

2016-09-13 Thread Joe Stringer
On 13 September 2016 at 08:46, Thadeu Lima de Souza Cascardo wrote: > Now, vagrant up will test both Fedora 23 and Debian Jessie (8.0), which uses > Linux 3.16. > > Signed-off-by: Thadeu Lima de Souza Cascardo Thanks. It was also missing uuid-runtime which stopped the install_deb target from wor

Re: [ovs-dev] [PATCH] socket-util-unix: Avoid buffer read overrun in get_unix_name_len().

2016-09-15 Thread Joe Stringer
On 14 September 2016 at 20:39, Ben Pfaff wrote: > If the socket length does not include any of the bytes of the path, then > the code should not read even the first byte of the path. > > Found by valgrind. > > CC: Thadeu Lima de Souza Cascardo > Reported-by: Joe Stringer

Re: [ovs-dev] [PATCH] ofp-parse: Fix sparse warnings about comparing ofp_port_ts.

2016-09-15 Thread Joe Stringer
ting bits of using sparse, but on the whole I > think it saves us pretty often. > > CC: Jarno Rajahalme > Fixes: 6dd3c787f591 ("ofproto: Support packet_outs in bundles.") > Signed-off-by: Ben Pfaff Acked-by: Joe Stringer __

[ovs-dev] [PATCH] NEWS: Add known issues for v2.6.0.

2016-09-15 Thread Joe Stringer
Signed-off-by: Joe Stringer --- Pravin, does the GRE note look correct? --- NEWS | 19 +++ 1 file changed, 19 insertions(+) diff --git a/NEWS b/NEWS index 8c78b3676cf3..19570b96816f 100644 --- a/NEWS +++ b/NEWS @@ -124,6 +124,25 @@ v2.6.0 - xx xxx - Add 'mtu_re

Re: [ovs-dev] bug fix for miimon issue with ixgbe driver that half support mii

2016-09-16 Thread Joe Stringer
On 16 September 2016 at 07:41, David Hill wrote: > Hello guys, > >Our preliminary tests seems to indicate this solves the issue with the > ixgbe driver. My fear is now that other drivers might show the same > behavior. Patching ovs to fallback to ethtool is a good way to avoid this > imho.

Re: [ovs-dev] [PATCH] OVSDB: Fix segfalut during replication.

2016-09-20 Thread Joe Stringer
0, > is_backup=0xffefff2de) at ovsdb/ovsdb-server.c:198 > #12 0x000000406edb in main (argc=1, argv=0xffefff550) > at ovsdb/ovsdb-server.c:429 > > Reported-by: Joe Stringer > Reported-at: http://openvswitch.org/pipermail/dev/2016-September/079315.

[ovs-dev] [PATCH 1/6] revalidator: Refactor ukey->xout translation.

2016-09-20 Thread Joe Stringer
This patch shifts the code that directly calls xlate into a separate function, xlate_ukey(). Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 110 -- 1 file changed, 73 insertions(+), 37 deletions(-) diff --git a/ofproto/ofproto-dpif

[ovs-dev] [PATCH 2/6] revalidator: Don't modify ukey from xlate_ukey().

2016-09-20 Thread Joe Stringer
Refactor the newly introduced xlate_ukey() function to just perform the translation, not modify the ukey. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/ofproto/ofproto-dpif

[ovs-dev] [PATCH 0/6] Refactor revalidate_ukey().

2016-09-20 Thread Joe Stringer
de from the delete path is now shared with the dump path. The code is longer overall, but hopefully it's a bit easier to follow. Joe Stringer (6): revalidator: Refactor ukey->xout translation. revalidator: Don't modify ukey from xlate_ukey(). revalidator: Refactor revalidation

[ovs-dev] [PATCH 4/6] revalidator: Reuse xlate_ukey from deletion.

2016-09-20 Thread Joe Stringer
This code was already very similar to the actual revalidation code, but previously it wasn't structured quite closely enough to share it. Do so. xlate_actions_for_side_effects() is now unused, so remove it. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c

[ovs-dev] [PATCH 3/6] revalidator: Refactor revalidation early exit.

2016-09-20 Thread Joe Stringer
Shift the early-exit conditions for revalidation into a separate function. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 136 -- 1 file changed, 78 insertions(+), 58 deletions(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto

[ovs-dev] [PATCH 5/6] revalidator: Defer stats push to end of validation.

2016-09-20 Thread Joe Stringer
prepared and attached to the ukey, but the actual execution will be skipped since it will be executed on flow_delete very soon anyway with final stats. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 56 --- 1 file changed, 42 insertions

[ovs-dev] [PATCH 6/6] revalidator: Simplify full-revalidation code.

2016-09-20 Thread Joe Stringer
Simplify the remaining bits of the original revalidation codepath to only handle the "full-revalidation" case. Make the 'ukey' parameter purely const by pushing the only piece that gets changed into a separate argument. Signed-off-by: Joe Stringer --- ofproto/ofprot

Re: [ovs-dev] [RFC v2 5/5] ofproto-dpif-upcall: Add instant revalidation.

2016-09-20 Thread Joe Stringer
On 30 August 2016 at 18:47, Daniele Di Proietto wrote: > Sometimes the ofproto layer creates a flow which is not liked by the > revalidation for various reasons. This behavior, while not critical > might impact the performance. This commit adds a facility to detect > this issue early and log a w

[ovs-dev] [PATCH] travis: Work around glibtoolize error.

2016-09-21 Thread Joe Stringer
Signed-off-by: Joe Stringer --- .travis/osx-prepare.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis/osx-prepare.sh b/.travis/osx-prepare.sh index cf46d872edfa..611c0709d760 100755 --- a/.travis/osx-prepare.sh +++ b/.travis/osx-prepare.sh @@ -1,3 +1,5 @@ #!/bin/bash set -ev

Re: [ovs-dev] [PATCH] travis: Work around glibtoolize error.

2016-09-21 Thread Joe Stringer
On 21 September 2016 at 11:44, Lance Richardson wrote: >> From: "Joe Stringer" >> To: dev@openvswitch.org >> Sent: Wednesday, September 21, 2016 2:36:42 PM >> Subject: [ovs-dev] [PATCH] travis: Work around glibtoolize error. >> >> Signed-off-by: J

Re: [ovs-dev] [PATCH] NEWS: Add known issues for v2.6.0.

2016-09-21 Thread Joe Stringer
On 19 September 2016 at 11:18, Ben Pfaff wrote: > On Thu, Sep 15, 2016 at 04:26:05PM -0700, Joe Stringer wrote: >> Signed-off-by: Joe Stringer > > ... > >> + * When using the openvswitch module distributed with OVS against kernel >> + versions 4.4-4.6, th

[ovs-dev] [PATCH] ovs-lib: Fix SELinux contexts for created dirs.

2016-09-21 Thread Joe Stringer
actice, many of these should otherwise be handled by packaging scripts but if they exist then we should ensure the correct SELinux context is set. On systems where 'restorecon' is unavailable, this should be a no-op. VMware-BZ: #1732672 Signed-off-by: Joe Stringer --- Fortunately, th

[ovs-dev] [PATCHv2] ovs-lib: Fix SELinux contexts for created dirs.

2016-09-22 Thread Joe Stringer
actice, many of these should otherwise be handled by packaging scripts but if they exist then we should ensure the correct SELinux context is set. On systems where 'restorecon' is unavailable, this should be a no-op. VMware-BZ: #1732672 Signed-off-by: Joe Stringer Acked-by: Ansis Att

Re: [ovs-dev] [PATCH] ovs-lib: Fix SELinux contexts for created dirs.

2016-09-22 Thread Joe Stringer
On 22 September 2016 at 12:55, Ansis Atteka wrote: > On Thu, Sep 22, 2016 at 3:54 AM, Joe Stringer wrote: >> ovs-lib creates several directories directly from the script, but >> doesn't make any attempt to ensure that the correct SELinux context is >> applied to thes

Re: [ovs-dev] [PATCH v3 3/7] system-traffic: 802.1ad: Add datapath ping tests for CVLANs.

2016-09-22 Thread Joe Stringer
On 14 September 2016 at 17:26, Eric Garver wrote: > Signed-off-by: Eric Garver Hi Eric, I tried this series again on a variety of kernels and these initial ping over cvlan tests are failing for check-system-userspace on older kernels (3.10,3.13) due to reasons we had discussed a bit on the prev

Re: [ovs-dev] [PATCH v3 3/7] system-traffic: 802.1ad: Add datapath ping tests for CVLANs.

2016-09-23 Thread Joe Stringer
On 23 September 2016 at 05:51, Eric Garver wrote: > On Thu, Sep 22, 2016 at 06:48:09PM -0700, Joe Stringer wrote: >> On 14 September 2016 at 17:26, Eric Garver wrote: >> > Signed-off-by: Eric Garver >> >> Hi Eric, >> >> I tried this series again on a va

Re: [ovs-dev] [PATCH 1/4] Add OpenFlow command to flush conntrack table entries.

2016-09-23 Thread Joe Stringer
On 23 September 2016 at 01:53, Justin Pettit wrote: > Signed-off-by: Justin Pettit > --- > NEWS | 1 + > debian/changelog | 10 ++ > include/openflow/nicira-ext.h | 9 + > include/openvswitch/ofp-msgs.h | 4 > lib/dpif.c

Re: [ovs-dev] [PATCHv2] ovs-lib: Fix SELinux contexts for created dirs.

2016-09-23 Thread Joe Stringer
On 23 September 2016 at 06:25, Ansis Atteka wrote: > > > On 23 September 2016 at 03:25, Joe Stringer wrote: >> >> ovs-lib creates several directories directly from the script, but >> doesn't make any attempt to ensure that the correct SELinux context is >&

Re: [ovs-dev] [PATCH 1/4] Add OpenFlow command to flush conntrack table entries.

2016-09-23 Thread Joe Stringer
On 23 September 2016 at 12:13, Justin Pettit wrote: > >> On Sep 23, 2016, at 10:10 AM, Joe Stringer wrote: >> >> On 23 September 2016 at 01:53, Justin Pettit wrote: >>> >>> diff --git a/include/openflow/nicira-ext.h b/include/openflow/nicira-ext.h >

Re: [ovs-dev] [PATCH] testsuite: Ignore IPsec deprecation msg.

2016-09-26 Thread Joe Stringer
On 26 September 2016 at 13:24, Pravin B Shelar wrote: > Fixes test failure seen due to the IPsec tunnel deprecation > messages in test logs. > > Fixes: 9e9d0384910e ("openvswitch: deprecates support for IPsec tunnel > port."). > Reported-by: Joe Stringer > Signed-

Re: [ovs-dev] [PATCH] INSTALL.md: Add details about kernel module preference.

2016-09-26 Thread Joe Stringer
On 26 September 2016 at 07:13, Gurucharan Shetty wrote: > Signed-off-by: Gurucharan Shetty > --- > INSTALL.md | 22 +- > 1 file changed, 21 insertions(+), 1 deletion(-) > > diff --git a/INSTALL.md b/INSTALL.md > index bb40e4a..a9b70db 100644 > --- a/INSTALL.md > +++ b/INSTALL

Re: [ovs-dev] [PATCH] ofp-actions: Error on conntrack action inconsistency.

2016-09-27 Thread Joe Stringer
On 26 September 2016 at 18:46, Jarno Rajahalme wrote: > Setting up a datapath flow that has a conntrack action with 'alg=ftp', > but does not match on 'nw_proto=tcp' fails with 'WARN' in > ovs-vswitchd.log. It is better to flag such inconsistencies during > OpenFlow rule set-up time. Also, connt

Re: [ovs-dev] [PATCH 1/1] Using ethtool on failure using miimon

2016-09-27 Thread Joe Stringer
Hi David, Thanks for the submission. Since this is a bugfix for a long-running behaviour, I reduced the patch to just the functional changes and applied it to master, branch-2.6 and branch-2.5. Here's the final change, please let me know if it is still missing something: https://github.com/openvs

Re: [ovs-dev] [PATCH] travis: Work around glibtoolize error.

2016-09-27 Thread Joe Stringer
On 21 September 2016 at 14:01, Joe Stringer wrote: > On 21 September 2016 at 11:44, Lance Richardson wrote: >>> From: "Joe Stringer" >>> To: dev@openvswitch.org >>> Sent: Wednesday, September 21, 2016 2:36:42 PM >>> Subject: [ovs-d

Re: [ovs-dev] [PATCH v2 1/3] ofp-actions: Style fixes.

2016-09-27 Thread Joe Stringer
On 27 September 2016 at 14:32, Jarno Rajahalme wrote: > Replace a tab by a space and remove an unnecessary variable. > > Signed-off-by: Jarno Rajahalme Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.or

Re: [ovs-dev] [PATCH v2 2/3] ofp-actions: Check that 'alg=ftp' matches on TCP.

2016-09-27 Thread Joe Stringer
On 27 September 2016 at 14:32, Jarno Rajahalme wrote: > Datapath flow setup fails when setting the FTP helper on an > unsupported IP protocol. It is better to fail at the OpenFlow rule > set-up time instead. > > Signed-off-by: Jarno Rajahalme Acked-b

Re: [ovs-dev] [PATCH v2 3/3] ofp-actions: Always consider inconsistent CT actions as an error.

2016-09-27 Thread Joe Stringer
ahalme LGTM, minor spelling below. Thanks. Acked-by: Joe Stringer > --- > lib/ofp-actions.c | 7 +-- > tests/ofproto-dpif.at | 40 > tests/ovs-ofctl.at| 46 +++--- > 3 files chan

Re: [ovs-dev] [PATCH] sparse: Fix conflict between netinet/in.h and linux/in.h

2016-09-27 Thread Joe Stringer
On 8 June 2016 at 13:49, Daniele Di Proietto wrote: > > > > > > On 08/06/2016 13:30, "Ben Pfaff" wrote: > >>On Wed, Jun 08, 2016 at 01:07:32PM -0700, Ben Pfaff wrote: >>> On Wed, Jun 01, 2016 at 07:23:29PM -0700, Daniele Di Proietto wrote: >>> > linux/in.h (from linux uapi headers) carries many o

Re: [ovs-dev] [PATCH] system-traffic: Collapse FTP NAT tests.

2016-09-28 Thread Joe Stringer
On 27 September 2016 at 14:40, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme Thanks, applied to master. It doesn't apply cleanly to branch-2.6, so I don't plan to backport it unless you feel strongly about that. ___ dev mailing list dev@openvswitc

Re: [ovs-dev] [PATCH 2/6] revalidator: Don't modify ukey from xlate_ukey().

2016-09-28 Thread Joe Stringer
On 28 September 2016 at 14:22, Daniele Di Proietto wrote: > Is there any reason not to squash this with the previous patch? It was an attempt at separating functional changes from cosmetic. > If you want to keep two commits for clarity I would split it like: > > commit1) move the block above odp

Re: [ovs-dev] [PATCH 5/6] revalidator: Defer stats push to end of validation.

2016-09-28 Thread Joe Stringer
On 28 September 2016 at 14:22, Daniele Di Proietto wrote: > > > 2016-09-20 18:47 GMT-07:00 Joe Stringer : >> >> To make more of the core revalidate() functions do just one thing and >> not modify state on the way, refactor them to prepare the xcache then >> defe

Re: [ovs-dev] [PATCH 0/6] Refactor revalidate_ukey().

2016-09-28 Thread Joe Stringer
On 28 September 2016 at 14:22, Daniele Di Proietto wrote: > Thanks for doing this cleanup, my instant revalidation series should be much > simpler after this. > > It looks like this needs rebasing, but it is pretty trivial > > I've gone through the code, I only have a couple minor of comments abou

Re: [ovs-dev] [PATCH 0/6] Refactor revalidate_ukey().

2016-09-28 Thread Joe Stringer
On 28 September 2016 at 16:21, Joe Stringer wrote: > On 28 September 2016 at 14:22, Daniele Di Proietto > wrote: >> Thanks for doing this cleanup, my instant revalidation series should be much >> simpler after this. >> >> It looks like this needs rebasing, but i

Re: [ovs-dev] [RFC 1/5] Add initial sphinx configuration

2016-10-04 Thread Joe Stringer
On 2 October 2016 at 04:01, Stephen Finucane wrote: > This is essentially the output of 'sphinx-quickstart' but with parts of > the Makefile merged into the existing Makefile.am and a license added > to the index.rst file. > > Signed-off-by: Stephen Finucane > --- > I need to know who to assign c

Re: [ovs-dev] [PATCH ovs RFC 0/9] Introducing HW offload support for openvswitch

2016-10-05 Thread Joe Stringer
On 27 September 2016 at 21:45, Paul Blakey wrote: > Openvswitch currently configures the kerenel datapath via netlink over an > internal ovs protocol. > > This patch series offers a new provider: dpif-netlink-tc that uses the tc > flower protocol > to offload ovs rules into HW data-path through

[ovs-dev] [PATCH] json: Fix non-static json char lookup table.

2016-10-05 Thread Joe Stringer
a lookup table") Signed-off-by: Joe Stringer --- lib/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/json.c b/lib/json.c index e052a6a0af0d..40c8f718db72 100644 --- a/lib/json.c +++ b/lib/json.c @@ -1624,7 +1624,7 @@ json_serialize_array(const struct json_a

Re: [ovs-dev] [PATCH] json: Fix non-static json char lookup table.

2016-10-05 Thread Joe Stringer
On 6 October 2016 at 11:51, Ben Pfaff wrote: > On Thu, Oct 06, 2016 at 11:33:39AM +0900, Joe Stringer wrote: >> This warning breaks the build on travis: >> lib/json.c:1627:12: error: symbol 'chars_escaping' was not declared. >> Should it be static? >>

Re: [ovs-dev] [PATCH v4 0/7] system-traffic: add 802.1ad test cases

2016-10-17 Thread Joe Stringer
On 23 September 2016 at 12:16, Eric Garver wrote: > This series adds 802.1ad test cases for the check-* make targets. It is > meant as a counterpart to the 802.1ad work currently going on and being > discussed on the dev list. > > User space support for 802.1ad is being worked on by Xiao Liang (ba

Re: [ovs-dev] [PATCH v4 2/7] system-common-macros: Add macros to check for and test 802.1ad.

2016-10-17 Thread Joe Stringer
On 23 September 2016 at 12:16, Eric Garver wrote: > Add macros OVS_CHECK_8021AD(), ADD_SVLAN() and ADD_CVLAN(). > > Signed-off-by: Eric Garver > # ADD_OVS_TUNNEL([type], [bridge], [port], [remote-addr], [overlay-addr]) > # > # Add an ovs-based tunnel device in the root namespace, with name

Re: [ovs-dev] [PATCH v4 0/7] system-traffic: add 802.1ad test cases

2016-10-18 Thread Joe Stringer
On 18 October 2016 at 05:31, Eric Garver wrote: > On Mon, Oct 17, 2016 at 05:17:44PM -0700, Joe Stringer wrote: >> On 23 September 2016 at 12:16, Eric Garver wrote: >> > This series adds 802.1ad test cases for the check-* make targets. It is >> > meant as a coun

Re: [ovs-dev] [PATCH v3 07/12] dpif-netdev: Cache align netdev_flow_keys.

2016-10-19 Thread Joe Stringer
On 14 October 2016 at 07:37, Bhanuprakash Bodireddy wrote: > Aligning the 'keys' array seems to have positive performance impact. > > Signed-off-by: Bhanuprakash Bodireddy > Co-authored-by: Antonio Fischetti > Signed-off-by: Antonio Fischetti > Acked-by: Daniele Di Proietto It looks like the

Re: [ovs-dev] [PATCH] datapath: compat: tunnel: Check if device is UP.

2016-10-20 Thread Joe Stringer
On 19 October 2016 at 11:27, Pravin B Shelar wrote: > On upstream kernel datapath OVS make use of networking devices > where networking stack does check if device is UP. following > patch adds same check in case of compat tunneling implementation. > This check also fixes kernel crash in case vxlan

Re: [ovs-dev] [PATCH v2] datapath: compat: tunnel: Check if device is UP.

2016-10-21 Thread Joe Stringer
until output and proceeds past this check before the reconfiguration thread clears it. Probably the type of test to check this would be running heavy traffic through a vxlan port, then toggle the port up and down. Will you also check upstream? Anyway, this LGTM so: Acked-by: Joe Stringer

Re: [ovs-dev] [PATCH v2] datapath: compat: tunnel: Check if device is UP.

2016-10-21 Thread Joe Stringer
On 21 October 2016 at 11:37, Joe Stringer wrote: > On 21 October 2016 at 10:55, Pravin B Shelar wrote: >> On upstream kernel datapath OVS make use of networking devices >> where networking stack does check if device is UP. following >> patch adds same check in cas

Re: [ovs-dev] [PATCH 1/3] datapath: backport: vxlan: avoid using stale vxlan socket.

2016-10-31 Thread Joe Stringer
On 29 October 2016 at 21:33, Pravin B Shelar wrote: > Upstream commit: > commit c6fcc4fc5f8b592600c7409e769ab68da0fb1eca > Author: pravin shelar > Date: Fri Oct 28 09:59:15 2016 -0700 > > vxlan: avoid using stale vxlan socket. > > When vxlan device is closed vxlan socket is

Re: [ovs-dev] [PATCH 2/3] datapath: backport: geneve: avoid using stale geneve socket.

2016-10-31 Thread Joe Stringer
B Shelar > Acked-by: John W. Linville > Signed-off-by: David S. Miller > > Signed-off-by: Pravin B Shelar Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 3/3] lisp: avoid using stale lisp socket.

2016-10-31 Thread Joe Stringer
this situation. > > Signed-off-by: Pravin B Shelar Thanks, one style comment below. Otherwise: Acked-by: Joe Stringer > @@ -442,11 +449,13 @@ static int lisp_open(struct net_device *dev) > struct lisp_dev *lisp = netdev_priv(dev); > struct udp_tunnel_sock_cfg tunnel_

Re: [ovs-dev] [PATCH] ofproto-dpif: Log warning when ct action or its variants are not supported.

2016-10-31 Thread Joe Stringer
t it's more clear than just OpenFlow hexdumps telling you "OFPBAC". Maybe it should either say this, or this should be mentioned in the FAQ. Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] ofproto-dpif: Log warning when ct action or its variants are not supported.

2016-10-31 Thread Joe Stringer
On 31 October 2016 at 14:33, Ben Pfaff wrote: > On Mon, Oct 31, 2016 at 02:16:05PM -0700, Joe Stringer wrote: >> On 31 October 2016 at 13:23, Ben Pfaff wrote: >> > Some datapaths do not support the ct action, and others support only a >> > subset of its featur

Re: [ovs-dev] [PATCH v2] datapath: backport: vxlan: avoid using stale vxlan socket.

2016-10-31 Thread Joe Stringer
s closed vxlan socket is freed. This > operation can race with vxlan-xmit function which > dereferences vxlan socket. Following patch uses RCU > mechanism to avoid this situation. > > Signed-off-by: Pravin B Shelar > Signed-off-by: David S. Miller > >

Re: [ovs-dev] [PATCH] datapath: geneve: Handle vlan tag

2016-11-01 Thread Joe Stringer
On 31 October 2016 at 22:00, Pravin B Shelar wrote: > The compat vlan code ignores vlan tag for inner packet > on egress path. Following patch fixes this by inserting the > tag for inner packet before tunnel encapsulation. > > Signed-off-by: Pravin B Shelar Is this a problem upstream and for oth

Re: [ovs-dev] [PATCH] datapath: geneve: Handle vlan tag

2016-11-01 Thread Joe Stringer
On 1 November 2016 at 10:48, Pravin Shelar wrote: > On Tue, Nov 1, 2016 at 10:30 AM, Joe Stringer wrote: >> On 31 October 2016 at 22:00, Pravin B Shelar wrote: >>> The compat vlan code ignores vlan tag for inner packet >>> on egress path. Following patch fixes this b

Re: [ovs-dev] [PATCH v2] datapath: geneve: Handle vlan tag

2016-11-01 Thread Joe Stringer
On 1 November 2016 at 11:35, Pravin B Shelar wrote: > The compat vlan code ignores vlan tag for inner packet > on egress path. Following patch fixes this by inserting the > tag for inner packet before tunnel encapsulation. > > Signed-off-by: Pravin B Shelar Acked-b

Re: [ovs-dev] [PATCH 00/23] Convert next batch of docs to rST

2016-11-02 Thread Joe Stringer
On 30 October 2016 at 06:29, Stephen Finucane wrote: > This is the third conversion series. This one is larger yet again, > though many of the docs are rather small. After this series, only the > two tutorial docs in 'tutorial' require conversion (along with any > unsuffixed files I may have misse

Re: [ovs-dev] [PATCH 00/23] Convert next batch of docs to rST

2016-11-03 Thread Joe Stringer
On 3 November 2016 at 03:33, Stephen Finucane wrote: > On 2016-11-02 17:57, Joe Stringer wrote: >> >> On 30 October 2016 at 06:29, Stephen Finucane wrote: >>> >>> This is the third conversion series. This one is larger yet again, >>> though many of th

[ovs-dev] [PATCH] odp-util: Combine dpif_backer_support with odp_parms.

2015-06-30 Thread Joe Stringer
Both the ofproto layer and the odp-util layer have recently added notions about fields supported by the datapath. This commit merges the two into the same structure. Signed-off-by: Joe Stringer --- lib/dpif-netdev.c | 14 +++--- lib/odp-util.c| 4 ++-- lib

[ovs-dev] [PATCHv2] odp-util: Combine dpif_backer_support with odp_parms.

2015-06-30 Thread Joe Stringer
Both the ofproto layer and the odp-util layer have recently added notions about fields supported by the datapath. This commit merges the two into the same structure. Signed-off-by: Joe Stringer --- v2: Rebase against master. --- lib/dpif-netdev.c | 14 +++--- lib/odp-util.c

Re: [ovs-dev] [PATCHv2] odp-util: Combine dpif_backer_support with odp_parms.

2015-06-30 Thread Joe Stringer
On 30 June 2015 at 17:42, Andy Zhou wrote: > On Tue, Jun 30, 2015 at 4:52 PM, Joe Stringer wrote: >> Both the ofproto layer and the odp-util layer have recently added >> notions about fields supported by the datapath. This commit merges the >> two into the same structure

[ovs-dev] [PATCHv3] odp-util: Share fields between odp and dpif_backer.

2015-07-01 Thread Joe Stringer
Datapath support for some flow key fields is used inside ofproto-dpif as well as odp-util. Share these fields using the same structure. Signed-off-by: Joe Stringer --- v3: Reduce shared fields, as suggested by Andy. v2: Rebase against master. --- lib/dpif-netdev.c | 10

Re: [ovs-dev] [PATCHv3] odp-util: Share fields between odp and dpif_backer.

2015-07-06 Thread Joe Stringer
On 1 July 2015 at 15:52, Andy Zhou wrote: > LGTM. Thanks joe! > > Acked-by: Andy Zhou Thanks Andy, applied to master. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH RFC] ofproto-dpif-upcall: Increment dump_seq before instead of after dump.

2015-07-07 Thread Joe Stringer
On 6 July 2015 at 22:20, Ben Pfaff wrote: > When process_upcall() passes a miss upcall to upcall_xlate(), the new > ukey's dump_seq member is initialized from the current dump_seq. Later, > when udpif_revalidator() calls revalidate(), any dumped flow for which > ukey->dump_seq equals the current

Re: [ovs-dev] [PATCH RFC] ofproto-dpif-upcall: Increment dump_seq before instead of after dump.

2015-07-08 Thread Joe Stringer
On 7 July 2015 at 21:42, Ben Pfaff wrote: > On Tue, Jul 07, 2015 at 08:13:58PM -0700, Joe Stringer wrote: >> On 6 July 2015 at 22:20, Ben Pfaff wrote: >> > When process_upcall() passes a miss upcall to upcall_xlate(), the new >> > ukey's dump_seq member is initi

Re: [ovs-dev] [PATCH RFC] ofproto-dpif-upcall: Increment dump_seq before instead of after dump.

2015-07-08 Thread Joe Stringer
On 8 July 2015 at 17:10, Ben Pfaff wrote: > On Wed, Jul 08, 2015 at 01:12:26PM -0700, Joe Stringer wrote: >> On 7 July 2015 at 21:42, Ben Pfaff wrote: >> > On Tue, Jul 07, 2015 at 08:13:58PM -0700, Joe Stringer wrote: >> >> On 6 July 2015 at 22:20, Ben Pfaff wrot

Re: [ovs-dev] [RFC net-next 18/22] openvswitch: Make tunnel set action attach a metadata dst

2015-07-13 Thread Joe Stringer
Hi Thomas, On 10 July 2015 at 07:19, Thomas Graf wrote: > diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c > index ecfa530..05fe46b 100644 > --- a/net/openvswitch/flow_netlink.c > +++ b/net/openvswitch/flow_netlink.c > @@ -1548,11 +1548,45 @@ static struct sw_flow_acti

Re: [ovs-dev] [PATCH 1/2] flow: Factor out flag parsing and formatting routines.

2015-07-15 Thread Joe Stringer
On 15 July 2015 at 15:53, Jesse Gross wrote: > On Wed, Jul 15, 2015 at 11:35 AM, Ben Pfaff wrote: >> On Mon, Jul 13, 2015 at 02:53:56PM -0700, Jesse Gross wrote: >>> There are several implementations of functions that parse/format >>> flags and their binary representation. This factors them out i

[ovs-dev] [PATCH 1/4] ofp-parse: Fix typo in consistency check.

2015-07-15 Thread Joe Stringer
checks the pointer rather than the value. In practice, this seems to only come up for fields which are used internally in OVS and not exposed for matching from the controller, like tunnel flags or skb_priority. Found by MIT STACK analyzer. Signed-off-by: Joe Stringer --- lib/ofp-parse.c| 2 +-

[ovs-dev] [PATCH 2/4] vtep-ctl: Remove extraneous NULL pointer check.

2015-07-15 Thread Joe Stringer
OVS will exit if the allocations in this function fail, so this check is pointless. Found by MIT STACK analyzer. Signed-off-by: Joe Stringer --- vtep/vtep-ctl.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/vtep/vtep-ctl.c b/vtep/vtep-ctl.c index f065fc9..8dfd3ad

[ovs-dev] [PATCH 4/4] ovn: Fix extra token detection.

2015-07-15 Thread Joe Stringer
false. Furthermore, this behaviour may be optimised out by modern compilers due to the prior dereference in expr_parse(). Fix this to check the actual value of *errorp. Found by MIT STACK analyzer. Signed-off-by: Joe Stringer --- ovn/lib/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[ovs-dev] [PATCH 3/4] ovs-vsctl: Remove redundant checks.

2015-07-15 Thread Joe Stringer
In several places, "br" is dereferenced just before a check such as "if (br ...)". These checks may be optimised out, and they provide no additional safety, so this patch removes them. Found by MIT STACK analyzer. Signed-off-by: Joe Stringer --- utilities/ovs-vsctl.c |

[ovs-dev] [PATCH 0/4] Fixes to undefined behaviour.

2015-07-15 Thread Joe Stringer
out files, re-compiled and re-analysed the codebase to verify that the fix has removed the problem. [1]: https://github.com/xiw/stack Joe Stringer (4): ofp-parse: Fix typo in consistency check. vtep-ctl: Remove extraneous NULL pointer check. ovs-vsctl: Remove redundant checks. ovn: Fix extr

Re: [ovs-dev] [PATCH 1/2] flow: Factor out flag parsing and formatting routines.

2015-07-15 Thread Joe Stringer
On 15 July 2015 at 17:41, Jesse Gross wrote: > On Wed, Jul 15, 2015 at 5:31 PM, Joe Stringer wrote: >> On 15 July 2015 at 15:53, Jesse Gross wrote: >>> On Wed, Jul 15, 2015 at 11:35 AM, Ben Pfaff wrote: >>>> On Mon, Jul 13, 2015 at 02:53:56PM -0700, Jesse Gross

Re: [ovs-dev] [PATCH 4/4] ovn: Fix extra token detection.

2015-07-17 Thread Joe Stringer
On 16 July 2015 at 13:52, Ben Pfaff wrote: > On Wed, Jul 15, 2015 at 10:18:29PM -0700, Joe Stringer wrote: >> This code attempts to first check whether another error was detected for >> the string it is parsing, then if it's not at the end of the tokens, >> report an e

[ovs-dev] [PATCH] acinclude: Silence OVS_FIND_FIELD_IFELSE.

2015-07-17 Thread Joe Stringer
Signed-off-by: Joe Stringer --- acinclude.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index 14907ab..4f1e66c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -271,7 +271,7 @@ dnl translated to uppercase. AC_DEFUN([OVS_FIND_FIELD_IFELSE

Re: [ovs-dev] [PATCH] acinclude: Silence OVS_FIND_FIELD_IFELSE.

2015-07-20 Thread Joe Stringer
On 17 July 2015 at 12:58, Ben Pfaff wrote: > On Fri, Jul 17, 2015 at 11:23:31AM -0700, Joe Stringer wrote: >> Signed-off-by: Joe Stringer >> --- >> acinclude.m4 | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/acinclude.m4 b

Re: [ovs-dev] [PATCH] acinclude: Silence OVS_FIND_FIELD_IFELSE.

2015-07-20 Thread Joe Stringer
On 20 July 2015 at 10:51, Ben Pfaff wrote: > On Mon, Jul 20, 2015 at 10:12:31AM -0700, Joe Stringer wrote: >> On 17 July 2015 at 12:58, Ben Pfaff wrote: >> > On Fri, Jul 17, 2015 at 11:23:31AM -0700, Joe Stringer wrote: >> >> Signed-off-by: Joe Stringer >

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-upcall: Fix typo in comment.

2015-07-23 Thread Joe Stringer
On 23 July 2015 at 16:19, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-upcall: Indentation fix.

2015-07-23 Thread Joe Stringer
On 23 July 2015 at 16:19, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH 1/6] datapath: Whitespace fixes.

2015-07-29 Thread Joe Stringer
Signed-off-by: Joe Stringer --- datapath/actions.c | 6 +- datapath/datapath.c | 2 ++ datapath/flow.h | 1 - datapath/flow_netlink.c | 7 --- datapath/vport.c| 3 +-- datapath/vport.h| 1 - 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a

<    1   2   3   4   5   6   7   8   9   10   >