Re: [ovs-dev] [PATCH] ovsdb: Improve documentation.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 01:37:44PM -0800, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff There were minor patch rejects so I fixed them and sent v2: https://patchwork.ozlabs.org/patch/846495/ ___ dev mailing list d...@openvswitch.org

[ovs-dev] [PATCH v2] ovsdb: Improve documentation.

2017-12-08 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- v1->v2: Rebase with minor changes. Documentation/automake.mk| 5 +- Documentation/conf.py| 6 + Documentation/ref/index.rst | 3 + Documentation/ref/ovsdb-server.7.rst | 393 +

Re: [ovs-dev] [PATCH v2 2/3] conntrack: Support conntrack flush by ct 5-tuple

2017-12-08 Thread Justin Pettit
> On Dec 8, 2017, at 6:23 PM, Darrell Ball wrote: > > >I believe the kernel clears out expectations. As we discussed off-line, I > think it would make sense to follow similar behavior, since presumably if the > control channel is being flushed, the related flows

Re: [ovs-dev] [PATCH v2 2/3] conntrack: Support conntrack flush by ct 5-tuple

2017-12-08 Thread Darrell Ball
On 12/6/17, 2:57 PM, "ovs-dev-boun...@openvswitch.org on behalf of Justin Pettit" wrote: > On Nov 21, 2017, at 5:00 PM, Yi-Hung Wei wrote: > > diff --git a/lib/conntrack.c

[ovs-dev] [patch v1] conntrack: Fix alg expectation cleanup.

2017-12-08 Thread Darrell Ball
Presently, alg expectations are removed by being time expired. This was intended to happen before the control connections and was intended to minimize the extra work involved for tracking and removing the expectations. This is not the best option and conceptually an expectation should not exist

Re: [ovs-dev] [PATCH] doc: Correct path of kernel system tests results directory.

2017-12-08 Thread Justin Pettit
> On Dec 8, 2017, at 3:28 PM, Ben Pfaff wrote: > > On Fri, Dec 08, 2017 at 03:18:42PM -0800, Justin Pettit wrote: >> Signed-off-by: Justin Pettit >> --- >> Documentation/topics/testing.rst | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git

Re: [ovs-dev] [PATCH] doc: Correct path of kernel system tests results directory.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 03:18:42PM -0800, Justin Pettit wrote: > Signed-off-by: Justin Pettit > --- > Documentation/topics/testing.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/topics/testing.rst > b/Documentation/topics/testing.rst

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Change assertion to log message.

2017-12-08 Thread Ben Pfaff
On Thu, Dec 07, 2017 at 01:55:58PM -0800, Gregory Rose wrote: > On 12/7/2017 1:01 PM, Ben Pfaff wrote: > >Until now, compose_output_action__() has asserted that a packet output to > >a patch port is not to be truncated. This commit changes this to an error > >that will be included in trace

[ovs-dev] [PATCH] doc: Correct path of kernel system tests results directory.

2017-12-08 Thread Justin Pettit
Signed-off-by: Justin Pettit --- Documentation/topics/testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/topics/testing.rst b/Documentation/topics/testing.rst index 85aa6a1fb495..1ecda00d069c 100644 ---

Re: [ovs-dev] [PATCH] ovsdb-server: Document monitor_cond_change behavior for unmentioned tables.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 02:39:36PM -0800, Justin Pettit wrote: > > > On Dec 8, 2017, at 12:53 PM, Ben Pfaff wrote: > > > > It seems best to be explicit about this. > > > > Signed-off-by: Ben Pfaff > > Acked-by: Justin Pettit Thanks! Applied to

Re: [ovs-dev] [PATCH] jsonrpc-server: Report monitor session ID properly in error message.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 02:40:58PM -0800, Justin Pettit wrote: > > > > On Dec 8, 2017, at 1:01 PM, Ben Pfaff wrote: > > > > The error message in question is about the monitor session ID but it > > actually reports the JSON-RPC request ID instead, which is surprising. > > > >

Re: [ovs-dev] [PATCH] tests: Always ignore "Broken pipe" and "Connection reset" log messages.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 02:43:54PM -0800, Justin Pettit wrote: > > > On Dec 8, 2017, at 1:28 PM, Ben Pfaff wrote: > > > > Until now, the ovn-controller-vtep, ovn-nbctl, and ovn-sbctl tests have > > ignored "Broken pipe" and "Connection reset" messages. The same rationale > > that

Re: [ovs-dev] [PATCH v2] ofproto, ovsdb, vswitchd: Avoid using protected as variable name

2017-12-08 Thread Ben Pfaff
On Mon, Dec 04, 2017 at 02:37:57PM -0800, Yi-Hung Wei wrote: > In C++, 'protected' is a keyword. This patch renames 'protected' > to 'protected_' in a couple files so that C++ compiler will > not get confused. > > Signed-off-by: Yi-Hung Wei > --- > ofproto/ofproto-dpif.c |

Re: [ovs-dev] [PATCH] tests: Always ignore "Broken pipe" and "Connection reset" log messages.

2017-12-08 Thread Justin Pettit
> On Dec 8, 2017, at 1:28 PM, Ben Pfaff wrote: > > Until now, the ovn-controller-vtep, ovn-nbctl, and ovn-sbctl tests have > ignored "Broken pipe" and "Connection reset" messages. The same rationale > that applies to them also applies to ovs-vsctl and other utilities. It > seems

Re: [ovs-dev] [PATCH] jsonrpc-server: Report monitor session ID properly in error message.

2017-12-08 Thread Justin Pettit
> On Dec 8, 2017, at 1:01 PM, Ben Pfaff wrote: > > The error message in question is about the monitor session ID but it > actually reports the JSON-RPC request ID instead, which is surprising. > > Found by inspection. > > Signed-off-by: Ben Pfaff Acked-by:

Re: [ovs-dev] [PATCH] ovsdb-server: Document monitor_cond_change behavior for unmentioned tables.

2017-12-08 Thread Justin Pettit
> On Dec 8, 2017, at 12:53 PM, Ben Pfaff wrote: > > It seems best to be explicit about this. > > Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --Justin ___ dev mailing list d...@openvswitch.org

Re: [ovs-dev] [PATCH] stream-unix: Give accepted sockets distinct names for log messages.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 02:17:54PM -0800, Justin Pettit wrote: > > > On Dec 8, 2017, at 11:36 AM, Ben Pfaff wrote: > > > > diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at > > index 4fbb10070342..ed37ebbc84a6 100644 > > --- a/tests/ofproto-macros.at > > +++

Re: [ovs-dev] [PATCH] stream-unix: Give accepted sockets distinct names for log messages.

2017-12-08 Thread Justin Pettit
> On Dec 8, 2017, at 11:36 AM, Ben Pfaff wrote: > > diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at > index 4fbb10070342..ed37ebbc84a6 100644 > --- a/tests/ofproto-macros.at > +++ b/tests/ofproto-macros.at > @@ -32,6 +32,7 @@ prt==1 { sub(/[ \t]*$/, ""); print $0 }

Re: [ovs-dev] [PATCH 2/2] test-ovsdb: Triggers should wake up other triggers immediately.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 02:12:49PM -0800, Justin Pettit wrote: > > > > On Dec 8, 2017, at 11:43 AM, Ben Pfaff wrote: > > > > When a trigger executes, it can make changes to the database that fulfill > > the conditions for some other trigger to execute. ovsdb-server implements >

[ovs-dev] OVS DPDK: dpdk_merge pull request

2017-12-08 Thread Stokes, Ian
Hi Ben, The following changes since commit 65d9759c4fc433dbda89ad3d7225c1f5eac274ca: ovsdb-data: Add OVS_WARN_UNUSED_RESULT annotations to function definitions. (2017-12-08 13:39:29 -0800) are available in the git repository at: https://github.com/istokes/ovs dpdk_merge for you to fetch

Re: [ovs-dev] [PATCH 2/2] test-ovsdb: Triggers should wake up other triggers immediately.

2017-12-08 Thread Justin Pettit
> On Dec 8, 2017, at 11:43 AM, Ben Pfaff wrote: > > When a trigger executes, it can make changes to the database that fulfill > the conditions for some other trigger to execute. ovsdb-server implements > this properly, but the code in test-ovsdb for testing triggers outside >

Re: [ovs-dev] [PATCH 1/2] test-ovsdb: Simplify code in do_trigger().

2017-12-08 Thread Justin Pettit
> On Dec 8, 2017, at 11:43 AM, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --Justin ___ dev mailing list d...@openvswitch.org

[ovs-dev] [PATCH V3 6/6] travis: Update kernel test list from kernel.org

2017-12-08 Thread Greg Rose
Signed-off-by: Greg Rose --- .travis.yml | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index f217840..8ca6d75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,17 +25,16 @@ sudo: false env: -

[ovs-dev] [PATCH V3 5/6] acinclude.m4: Enable Linux 4.14

2017-12-08 Thread Greg Rose
Signed-off-by: Greg Rose --- acinclude.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 6511a24..b815c58 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -143,10 +143,10 @@ AC_DEFUN([OVS_CHECK_LINUX], [

[ovs-dev] [PATCH V3 4/6] datapath: Fix SKB_GSO_UDP usage

2017-12-08 Thread Greg Rose
Using SKB_GSO_UDP breaks the compilation on Linux 4.14. Check for the HAVE_SKB_GSO_UDP compiler #define. Signed-off-by: Greg Rose --- datapath/datapath.c | 9 ++--- datapath/linux/compat/stt.c | 11 ++- 2 files changed, 16 insertions(+), 4 deletions(-)

[ovs-dev] [PATCH V3 3/6] datapath: conntrack: make protocol tracker pointers const

2017-12-08 Thread Greg Rose
From: Florian Westphal Upstream commit: commit b3480fe059ac9121b5714205b4ddae14b59ef4be Author: Florian Westphal Date: Sat Aug 12 00:57:08 2017 +0200 netfilter: conntrack: make protocol tracker pointers const Doesn't change generated code,

[ovs-dev] [PATCH V3 2/6] compat: Do not include headers when not compiling

2017-12-08 Thread Greg Rose
If the entire file is not going to be compiled because OVS is using upstream tunnel support then also don't bother pulling in the headers. Signed-off-by: Greg Rose --- datapath/linux/compat/ip_gre.c| 2 +- datapath/linux/compat/ip_output.c | 2 +- 2 files changed, 2

[ovs-dev] [PATCH V3 0/6] Enable OVS on Linux 4.14 kernel

2017-12-08 Thread Greg Rose
Various fixes and compat layer changes required to enable building OVS for the upstream Linux 4.14 kernel. The constant changing of the netdev_master_upper_dev_link parameters is a real headache. I couldn't think of any cleaner way to do it than the approach I used but I welcome suggestions on

[ovs-dev] [PATCH V3 1/6] datapath: Fix netdev_master_upper_dev_link for 4.14

2017-12-08 Thread Greg Rose
An extended netlink ack has been added for 4.14 - add compat layer changes so that it compiles for all kernels up to and including 4.14. Signed-off-by: Greg Rose --- acinclude.m4| 3 +++ datapath/linux/compat/include/linux/netdevice.h |

Re: [ovs-dev] [PATCH] ovsdb-data: Add OVS_WARN_UNUSED_RESULT annotations to function definitions.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 01:37:29PM -0800, Gregory Rose wrote: > On 12/8/2017 11:22 AM, Ben Pfaff wrote: > >The function prototypes in ovsdb-data.h already have these, but it seems > >more complete to have the annotation on the definitions too. > > > >Signed-off-by: Ben Pfaff > >---

[ovs-dev] [PATCH] ovsdb: Improve documentation.

2017-12-08 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- Documentation/automake.mk| 5 +- Documentation/conf.py| 6 + Documentation/ref/index.rst | 3 + Documentation/ref/ovsdb-server.7.rst | 393 + Documentation/ref/ovsdb.5.rst| 125

Re: [ovs-dev] [PATCH] ovsdb-data: Add OVS_WARN_UNUSED_RESULT annotations to function definitions.

2017-12-08 Thread Gregory Rose
On 12/8/2017 11:22 AM, Ben Pfaff wrote: The function prototypes in ovsdb-data.h already have these, but it seems more complete to have the annotation on the definitions too. Signed-off-by: Ben Pfaff --- lib/ovsdb-data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[ovs-dev] [PATCH] tests: Always ignore "Broken pipe" and "Connection reset" log messages.

2017-12-08 Thread Ben Pfaff
Until now, the ovn-controller-vtep, ovn-nbctl, and ovn-sbctl tests have ignored "Broken pipe" and "Connection reset" messages. The same rationale that applies to them also applies to ovs-vsctl and other utilities. It seems easier to just always ignore them. Signed-off-by: Ben Pfaff

[ovs-dev] [PATCH 5/5] ovsdb-idl: Tolerate initialization races for singleton tables.

2017-12-08 Thread Ben Pfaff
By verifying that singleton tables (that is, tables that should have exactly one row) are empty when they emit transactions that insert into them, ovs-vsctl and similar tools tolerate initialization races, where more than one client at a time tries to initialize a singleton table. The upshot is

[ovs-dev] [PATCH 4/5] ovsdb-idl: Remove 'uuid' member of struct ovsdb_idl.

2017-12-08 Thread Ben Pfaff
This was used to uniquely identify the monitor, but there's no need for that. A fixed monitor name works fine. Signed-off-by: Ben Pfaff --- lib/ovsdb-idl.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c

[ovs-dev] [PATCH 2/5] ovsdb-idl: Fix indentation in a couple of places.

2017-12-08 Thread Ben Pfaff
White space changes only. Signed-off-by: Ben Pfaff --- lib/ovsdb-idl.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 7e3abdee8e62..aede751412fb 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@

[ovs-dev] [PATCH 1/5] ovsdb-idl: Improve comments.

2017-12-08 Thread Ben Pfaff
This change documents the IDL state machine, adds other comments, and fixes a spelling error in a comment. Signed-off-by: Ben Pfaff --- lib/ovsdb-idl.c | 57 ++--- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git

[ovs-dev] [PATCH] jsonrpc-server: Report monitor session ID properly in error message.

2017-12-08 Thread Ben Pfaff
The error message in question is about the monitor session ID but it actually reports the JSON-RPC request ID instead, which is surprising. Found by inspection. Signed-off-by: Ben Pfaff --- ovsdb/jsonrpc-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[ovs-dev] [PATCH] jsonrpc-server: Enforce uniqueness of monitor IDs.

2017-12-08 Thread Ben Pfaff
This oversight allowed monitor IDs to be duplicated when the monitor_cond_change request changed them. Signed-off-by: Ben Pfaff --- ovsdb/jsonrpc-server.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/ovsdb/jsonrpc-server.c

[ovs-dev] [PATCH] table: Add --max-column-width option.

2017-12-08 Thread Ben Pfaff
This can make it easier to read tables that contain wide data in some columns. Signed-off-by: Ben Pfaff --- NEWS | 2 ++ lib/table.c | 22 +- lib/table.h | 13 ++--- lib/table.man | 5 + 4 files changed, 34 insertions(+), 8

[ovs-dev] [PATCH] ovsdb-server: Forbid user-specified databases with reserved names.

2017-12-08 Thread Ben Pfaff
Names that begin with "_" are reserved, but ovsdb-server didn't previously enforce this. At the same time, make ovsdb-client ignore databases with reserved names for the purpose of selecting a default database to work on. This is in preparation for ovsdb-server starting to serve a new database,

[ovs-dev] [PATCH] ovsdb-server: Document monitor_cond_change behavior for unmentioned tables.

2017-12-08 Thread Ben Pfaff
It seems best to be explicit about this. Signed-off-by: Ben Pfaff --- ovsdb/ovsdb-server.1.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ovsdb/ovsdb-server.1.in b/ovsdb/ovsdb-server.1.in index cf3884ccc294..f1c6466ccb75 100644 ---

[ovs-dev] [PATCH] ovsdb-client: Show even constraint-breaking data in "dump" output.

2017-12-08 Thread Ben Pfaff
The ovsdb-client "dump" command is a fairly low-level tool that can be used, among other purposes, to debug the OVSDB protocol. It's better if it just prints what the server sends without being too judgmental about it. Thus, we might as well ignore constraints for the purpose of dumping tables.

[ovs-dev] [PATCH 1/2] test-ovsdb: Simplify code in do_trigger().

2017-12-08 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- tests/test-ovsdb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c index 553a4f6a5bf1..ae679c1319e9 100644 --- a/tests/test-ovsdb.c +++ b/tests/test-ovsdb.c @@ -1531,10 +1531,10 @@

[ovs-dev] [PATCH] stream-unix: Give accepted sockets distinct names for log messages.

2017-12-08 Thread Ben Pfaff
At least on Linux, when process A connects to process B over a Unix domain socket, unless process A bound its socket to a name before it made the connection, process B gets an empty peer name. Until now, OVS has just reported the name of the connection as "unix". This is not meaningful, of

[ovs-dev] [PATCH] ovsdb-data: Add OVS_WARN_UNUSED_RESULT annotations to function definitions.

2017-12-08 Thread Ben Pfaff
The function prototypes in ovsdb-data.h already have these, but it seems more complete to have the annotation on the definitions too. Signed-off-by: Ben Pfaff --- lib/ovsdb-data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ovsdb-data.c

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Incorrect handling of errors in group action processing

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 10:03:06AM +, Vishal Deep Ajmera wrote: > On Wed, Dec 06, 2017 at 11:57:48AM +, Vishal Deep Ajmera wrote: > > Hi Ben,> From: Ben Pfaff [mailto:b...@ovn.org] > > Sent: Tuesday, December 05, 2017 12:52 AM > > To: Vishal Deep Ajmera >

[ovs-dev] Argumentación Jurídica

2017-12-08 Thread Cómo ganar casos difíciles en materia fiscal
Conozca, interprete y aplique la ley a su favor Argumentación jurídica para las áreas contable y financiera 18 de Diciembre - L.C. y L.D. Jacobo Meraz Sotelo 9am-6pm Es de suma importancia que los empresarios y los encargados de las áreas contables y administrativas conozcan la interpretación y

Re: [ovs-dev] [PATCH v3 2/2] netdev-dpdk: Add debug appctl to get mempool information.

2017-12-08 Thread Flavio Leitner
On Fri, Dec 08, 2017 at 06:38:11PM +0300, Ilya Maximets wrote: > New appctl 'netdev-dpdk/get-mempool-info' implemented to get result > of 'rte_mempool_list_dump()' function if no arguments passed and > 'rte_mempool_dump()' if DPDK netdev passed as argument. > > Could be used for debugging mbuf

Re: [ovs-dev] [PATCH] AUTHORS: Update email address for Thadeu Lima de Souza Cascardo.

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 02:09:30PM -0200, Thadeu Lima de Souza Cascardo wrote: > On Fri, Dec 08, 2017 at 07:51:08AM -0800, Ben Pfaff wrote: > > CC: Thadeu Lima de Souza Cascardo > > Signed-off-by: Ben Pfaff > > Acked-by: Thadeu Lima de Souza Cascardo

Re: [ovs-dev] [PATCH v3 1/2] vswitchd: Document netdev-dpdk commands.

2017-12-08 Thread Flavio Leitner
On Fri, Dec 08, 2017 at 06:38:10PM +0300, Ilya Maximets wrote: > netdev-dpdk appctl commands added to man pages. > > Signed-off-by: Ilya Maximets > Acked-by: Antonio Fischetti > --- > NEWS| 2 ++ > lib/automake.mk

Re: [ovs-dev] [RFC PATCH V4 0/9] netdev-dpdk: support multi-segment mbufs

2017-12-08 Thread Chandran, Sugesh
Thank you Mark & Michael Qiu for this work. I had looked at the patch series and have some high level comments as inline. I would like to test these patch on some of the test scenarios. so please send a proper patch series once the DPDK17.11 support is added in OVS. Regards _Sugesh >

Re: [ovs-dev] [RFC PATCH V4 9/9] netdev-dpdk: support multi-segment jumbo frames

2017-12-08 Thread Chandran, Sugesh
Hi Mark, For some reason, I could not apply this patch cleanly. I couldn't do much of testing on the feature as such. Can you please send a proper Patch after rebase. Regards _Sugesh > -Original Message- > From: Kavanagh, Mark B > Sent: Friday, December 8, 2017 12:02 PM > To:

Re: [ovs-dev] [RFC PATCH V4 8/9] netdev-dpdk: copy large packet to multi-seg. mbufs

2017-12-08 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Kavanagh, Mark B > Sent: Friday, December 8, 2017 12:02 PM > To: d...@openvswitch.org; qiud...@chinac.com > Cc: Stokes, Ian ; Loftus, Ciara > ; > santosh.shu...@caviumnetworks.com; Chandran,

Re: [ovs-dev] [RFC PATCH V4 6/9] dp-packet: copy mbuf info for packet copy

2017-12-08 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Kavanagh, Mark B > Sent: Friday, December 8, 2017 12:02 PM > To: d...@openvswitch.org; qiud...@chinac.com > Cc: Stokes, Ian ; Loftus, Ciara > ; > santosh.shu...@caviumnetworks.com; Chandran,

Re: [ovs-dev] [RFC PATCH V4 5/9] dp-packet: init specific mbuf fields to 0

2017-12-08 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Kavanagh, Mark B > Sent: Friday, December 8, 2017 12:02 PM > To: d...@openvswitch.org; qiud...@chinac.com > Cc: Stokes, Ian ; Loftus, Ciara > ; > santosh.shu...@caviumnetworks.com; Chandran,

Re: [ovs-dev] [RFC PATCH V4 3/9] dp-packet: fix put_uninit for multi-seg mbufs

2017-12-08 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Kavanagh, Mark B > Sent: Friday, December 8, 2017 12:02 PM > To: d...@openvswitch.org; qiud...@chinac.com > Cc: Stokes, Ian ; Loftus, Ciara > ; > santosh.shu...@caviumnetworks.com; Chandran,

Re: [ovs-dev] [PATCH] tests: add-del-add sequence for interface

2017-12-08 Thread Yi-Hung Wei
On Tue, Dec 5, 2017 at 9:23 AM, Ashish Varma wrote: > added a unit test case for testing the condition when a tap interface > is added to br0 and then the tap interface is deleted from the > system and added back with the same name. > > Signed-off-by: Ashish Varma

Re: [ovs-dev] [RFC PATCH V4 1/9] netdev-dpdk: fix mbuf sizing

2017-12-08 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Kavanagh, Mark B > Sent: Friday, December 8, 2017 12:02 PM > To: d...@openvswitch.org; qiud...@chinac.com > Cc: Stokes, Ian ; Loftus, Ciara > ; > santosh.shu...@caviumnetworks.com; Chandran,

Re: [ovs-dev] [PATCH v3 1/3] dpif-netdev: Refactor PMD performance into dpif-netdev-perf

2017-12-08 Thread O Mahony, Billy
Hi Jan, I had problems applying later patches in this series so just reviewing this one for now. I tried several revisions to apply them. The second patch ([ovs-dev,v3,2/3] dpif-netdev: Detailed performance stats for PMDs ) fails with fatal: patch fragment without header at line 708: @@

Re: [ovs-dev] [PATCH V6 1/2] netdev-dpdk: DPDK v17.11 upgrade

2017-12-08 Thread Stokes, Ian
> > > > > >What happened to my request to add here that running OVS 2.9 with > > >DPDK datapath in a VM with virtio interfaces may itself suffer from > > >the DPDK 17.11 bug in OVS' own virtio PMD? The work-around for this > > >could be to enable the mrg_rxbuf feature in Qemu for the OVS VM as > >

Re: [ovs-dev] [PATCH v6 1/7] dpif-netdev: Refactor PMD thread structure for further extension.

2017-12-08 Thread Stokes, Ian
> >On 07/12/17 14:28, Ilya Maximets wrote: > >> Thanks for review, comments inline. > >> > >> On 07.12.2017 15:49, Eelco Chaudron wrote: > >>> On 01/12/17 16:44, Ilya Maximets wrote: > This is preparation for 'struct dp_netdev_pmd_thread' modification > in upcoming commits. Needed to

Re: [ovs-dev] [PATCH v6 0/4] nsh: add new nsh key ttl and action dec_nsh_ttl

2017-12-08 Thread Gregory Rose
On 12/8/2017 6:04 AM, Yi Yang wrote: v5->v6 - Rebase v5 to master - Refactor netlink message format to align to NSH kernel implementation - Add dec_nsh_ttl unit test into tests/nsh.at - Fix unit test unstable issue v4->v5 - Remove fix patch 1 in v4 because it is merged -

Re: [ovs-dev] [PATCH v3 2/2] netdev-dpdk: Add debug appctl to get mempool information.

2017-12-08 Thread Kavanagh, Mark B
>From: Ilya Maximets [mailto:i.maxim...@samsung.com] >Sent: Friday, December 8, 2017 3:38 PM >To: ovs-dev@openvswitch.org >Cc: Heetae Ahn ; Fischetti, Antonio >; Loftus, Ciara ; >Kavanagh, Mark B

Re: [ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-12-08 Thread Bodireddy, Bhanuprakash
> >On 08.12.2017 18:44, Bodireddy, Bhanuprakash wrote: >>> >>> On 08.12.2017 16:45, Stokes, Ian wrote: > All instances of struct dp_netdev_pmd_thread are allocated by > xzalloc and therefore doesn't guarantee memory allocation aligned > on CACHE_LINE_SIZE boundary. Due to this any

Re: [ovs-dev] [PATCH] tunnel: fix tnl_find() after packet_type changed

2017-12-08 Thread Jan Scheurich
Hi Zoltan, Please find answers below. Regards, Jan > -Original Message- > From: Zoltán Balogh > Sent: Friday, 08 December, 2017 12:56 > To: Jan Scheurich ; d...@openvswitch.org > Cc: Ben Pfaff > Subject: RE: [PATCH] tunnel: fix tnl_find() after

Re: [ovs-dev] [PATCH] AUTHORS: Update email address for Thadeu Lima de Souza Cascardo.

2017-12-08 Thread Thadeu Lima de Souza Cascardo
On Fri, Dec 08, 2017 at 07:51:08AM -0800, Ben Pfaff wrote: > CC: Thadeu Lima de Souza Cascardo > Signed-off-by: Ben Pfaff Acked-by: Thadeu Lima de Souza Cascardo > --- > AUTHORS.rst | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-12-08 Thread Ilya Maximets
On 08.12.2017 18:44, Bodireddy, Bhanuprakash wrote: >> >> On 08.12.2017 16:45, Stokes, Ian wrote: All instances of struct dp_netdev_pmd_thread are allocated by xzalloc and therefore doesn't guarantee memory allocation aligned on CACHE_LINE_SIZE boundary. Due to this any padding done

Re: [ovs-dev] two possible bugs about ipv6 multicast

2017-12-08 Thread Ben Pfaff
On Fri, Dec 08, 2017 at 12:14:45PM -0200, Thadeu Lima de Souza Cascardo wrote: > Ben, Flavio brought me this email to my attention. As I am not receiving > emails from casca...@redhat.com anymore, should there be an update to > AUTHORS? Not sure if it tracks the original email, which may indicate

Re: [ovs-dev] [PATCH v2 1/3] vswitchd: Document netdev-dpdk commands.

2017-12-08 Thread Kavanagh, Mark B
>From: Ilya Maximets [mailto:i.maxim...@samsung.com] >Sent: Friday, December 8, 2017 3:26 PM >To: Kavanagh, Mark B ; ovs-dev@openvswitch.org >Cc: Heetae Ahn ; Fischetti, Antonio >; Loftus, Ciara

[ovs-dev] [PATCH] AUTHORS: Update email address for Thadeu Lima de Souza Cascardo.

2017-12-08 Thread Ben Pfaff
CC: Thadeu Lima de Souza Cascardo Signed-off-by: Ben Pfaff --- AUTHORS.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AUTHORS.rst b/AUTHORS.rst index 075b2f72d47d..446a43925878 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -310,7

Re: [ovs-dev] [PATCH] dpif-netdev: Allocate dp_netdev_pmd_thread struct by xzalloc_cacheline.

2017-12-08 Thread Bodireddy, Bhanuprakash
> >On 08.12.2017 16:45, Stokes, Ian wrote: >>> All instances of struct dp_netdev_pmd_thread are allocated by xzalloc >>> and therefore doesn't guarantee memory allocation aligned on >>> CACHE_LINE_SIZE boundary. Due to this any padding done inside the >>> structure with this assumption might

[ovs-dev] [PATCH v3 2/2] netdev-dpdk: Add debug appctl to get mempool information.

2017-12-08 Thread Ilya Maximets
New appctl 'netdev-dpdk/get-mempool-info' implemented to get result of 'rte_mempool_list_dump()' function if no arguments passed and 'rte_mempool_dump()' if DPDK netdev passed as argument. Could be used for debugging mbuf leaks and other mempool related issues. Most useful in pair with `grep -v

[ovs-dev] [PATCH v3 0/2] netdev-dpdk: Mempool creation failure + Appctl

2017-12-08 Thread Ilya Maximets
Second patch adds debug appctl to obtain mempool information from DPDK including names, numbers of available mbufs, object sizes and memory pointers. First patch introduces common place for 'netdev-dpdk' unixctl commands documentation in man pages. Version 3: * Dropped patch about mempool

[ovs-dev] [PATCH v5 2/2] netdev-dpdk: Enable optional dequeue zero copy for vHost User

2017-12-08 Thread Ciara Loftus
Enabled per port like so: ovs-vsctl set Interface dpdkvhostuserclient0 options:dq-zero-copy=true The feature is disabled by default and can only be enabled/disabled when a vHost port is down. When packets from a vHost device with zero copy enabled are destined for a 'dpdk' port, the number of tx

[ovs-dev] [PATCH v5 1/2] netdev-dpdk: Helper function for vHost device setup

2017-12-08 Thread Ciara Loftus
dpdkvhostuser and dpdkvhostuserclient ports share a lot of the same setup & configuration code. Create a common function they can share in order to remove some duplication of code. Signed-off-by: Ciara Loftus --- lib/netdev-dpdk.c | 122

[ovs-dev] [PATCH v5 0/2] vHost Dequeue Zero Copy

2017-12-08 Thread Ciara Loftus
This patch enables optional dequeue zero copy for vHost ports. This gives a performance increase for some use cases. I'm using the cover letter to report my results. vhost (vm1) -> vhost (vm2) Using testpmd to source (txonly) in vm1 and sink (rxonly) in vm2. 4C1Q 64B packets: 5.05Mpps -> 5.52Mpps

Re: [ovs-dev] [PATCH v2 1/3] vswitchd: Document netdev-dpdk commands.

2017-12-08 Thread Ilya Maximets
On 08.12.2017 17:44, Kavanagh, Mark B wrote: >> From: Ilya Maximets [mailto:i.maxim...@samsung.com] >> Sent: Friday, November 10, 2017 7:12 AM >> To: ovs-dev@openvswitch.org >> Cc: Heetae Ahn ; Fischetti, Antonio >> ; Loftus, Ciara

Re: [ovs-dev] [PATCH V6 1/2] netdev-dpdk: DPDK v17.11 upgrade

2017-12-08 Thread Jan Scheurich
> > > >What happened to my request to add here that running OVS 2.9 with DPDK > >datapath in a VM with virtio interfaces may itself suffer from the DPDK 17.11 > >bug in OVS' own virtio PMD? The work-around for this could be to enable the > >mrg_rxbuf feature in Qemu for the OVS VM as that would

Re: [ovs-dev] [PATCH v2 1/3] vswitchd: Document netdev-dpdk commands.

2017-12-08 Thread Kavanagh, Mark B
>From: Ilya Maximets [mailto:i.maxim...@samsung.com] >Sent: Friday, November 10, 2017 7:12 AM >To: ovs-dev@openvswitch.org >Cc: Heetae Ahn ; Fischetti, Antonio >; Loftus, Ciara ; >Kavanagh, Mark B

Re: [ovs-dev] two possible bugs about ipv6 multicast

2017-12-08 Thread Thadeu Lima de Souza Cascardo
On Wed, Nov 15, 2017 at 11:03:10AM -0800, Ben Pfaff wrote: > On Mon, Sep 04, 2017 at 11:40:01PM +0800, Huanle Han wrote: > > I'm just learning ipv6. When I go through ovs code about ipv6 normal > > forwarding, I find 2 possible "bugs". Could you explain some for me? Thanks. > > > > 1. In fucntion

Re: [ovs-dev] [PATCH] dpif-netdev: Optimize the exact match lookup.

2017-12-08 Thread Bodireddy, Bhanuprakash
Hi Tonghao, >On Thu, Jul 27, 2017 at 11:38:00PM -0700, Tonghao Zhang wrote: >> When inserting or updating (e.g. emc_insert) a flow to EMC, we compare >> (e.g the hash and miniflow ) the netdev_flow_key. >> If the key is matched, we will update it. If we didn’t find the >> miniflow in the cache,

[ovs-dev] [PATCH v6 1/4] nsh: rework NSH netlink keys and actions

2017-12-08 Thread Yi Yang
This patch changes OVS_KEY_ATTR_NSH to nested attribute and adds three new NSH sub attribute keys: OVS_NSH_KEY_ATTR_BASE: for length-fixed NSH base header OVS_NSH_KEY_ATTR_MD1: for length-fixed MD type 1 context OVS_NSH_KEY_ATTR_MD2: for length-variable MD type 2 metadata Its

[ovs-dev] [PATCH v6 2/4] nsh: add new flow key 'ttl'

2017-12-08 Thread Yi Yang
IETF NSH draft added a new filed ttl in NSH header, this patch is to add new nsh key 'ttl' for it. Signed-off-by: Yi Yang --- datapath/linux/compat/include/linux/openvswitch.h | 2 +- include/openvswitch/flow.h| 6 +-

[ovs-dev] [PATCH v6 4/4] nsh: add dec_nsh_ttl action

2017-12-08 Thread Yi Yang
NSH ttl is a 6-bit field ranged from 0 to 63, it should be decremented by 1 every hop, if it is 0 or it is so after decremented, the packet should be dropped and a packet-in message is sent to main controller. Signed-off-by: Yi Yang --- include/openvswitch/ofp-actions.h |

[ovs-dev] [PATCH v6 3/4] nsh: fix nested mask for OVS_KEY_ATTR_NSH

2017-12-08 Thread Yi Yang
NSH kernel implementation used nested mask for OVS_KEY_ATTR_NSH, so NSH userspace must adapt to it, OVS hasn't used nested mask for any key attribute so far, OVS_KEY_ATTR_NSH is the first use case. Signed-off-by: Yi Yang --- lib/odp-execute.c | 54 +--

[ovs-dev] [PATCH v6 0/4] nsh: add new nsh key ttl and action dec_nsh_ttl

2017-12-08 Thread Yi Yang
v5->v6 - Rebase v5 to master - Refactor netlink message format to align to NSH kernel implementation - Add dec_nsh_ttl unit test into tests/nsh.at - Fix unit test unstable issue v4->v5 - Remove fix patch 1 in v4 because it is merged - Fix several comments by Jan Scheurich v3->v4

Re: [ovs-dev] [PATCH V6 1/2] netdev-dpdk: DPDK v17.11 upgrade

2017-12-08 Thread Kavanagh, Mark B
>From: Jan Scheurich [mailto:jan.scheur...@ericsson.com] >Sent: Friday, December 8, 2017 1:22 PM >To: Kavanagh, Mark B ; d...@openvswitch.org >Cc: ktray...@redhat.com; maxime.coque...@redhat.com; i.maxim...@samsung.com; >Mooney, Sean K ; Stokes,

Re: [ovs-dev] [PATCH V6 1/2] netdev-dpdk: DPDK v17.11 upgrade

2017-12-08 Thread Jan Scheurich
Sorry for the late comments. I'm still not happy with the proposed documentation changes (see below). /Jan > -Original Message- > From: Mark Kavanagh [mailto:mark.b.kavan...@intel.com] > Sent: Friday, 08 December, 2017 11:54 > To: d...@openvswitch.org > Cc: ktray...@redhat.com;

Re: [ovs-dev] [PATCH V6 2/2] netdev-dpdk: vHost IOMMU support

2017-12-08 Thread Stokes, Ian
: [ovs-dev][PATCH V6 2/2] netdev-dpdk: vHost IOMMU support > > DPDK v17.11 introduces support for the vHost IOMMU feature. > This is a security feature, which restricts the vhost memory that a virtio > device may access. > > This feature also enables the vhost REPLY_ACK protocol, the

Re: [ovs-dev] [PATCH] tunnel: fix tnl_find() after packet_type changed

2017-12-08 Thread Jan Scheurich
At first glance I would try to skip or enhance the port and bridge lookup in upcall_receive() or xlate_lookup() if flow->recirc_id != 0. The code in xlate_actions() actually already today restores bridge and flow.in_port from the thawed frozen_state. We need to make sure that prior to reaching

Re: [ovs-dev] [PATCH v4 0/2] vHost Dequeue Zero Copy

2017-12-08 Thread Loftus, Ciara
> > > > Can you comment on that? Can a user also reduce the problem by > > > configuring > > > a) a larger virtio Tx queue size (up to 1K) in Qemu, or > > > > Is this possible right now without modifying QEMU src? I think the size is > hardcoded to 256 at the moment although it may become > >

Re: [ovs-dev] [PATCH V6 1/2] netdev-dpdk: DPDK v17.11 upgrade

2017-12-08 Thread Stokes, Ian
> This commit adds support for DPDK v17.11: > - minor updates to accomodate DPDK API changes > - update references to DPDK version in Documentation > - update DPDK version in travis' linux-build script > - document DPDK v17.11 virtio driver bug > > Signed-off-by: Mark Kavanagh

[ovs-dev] [PATCH v6 8/8] NEWS: Add keepalive support information in NEWS.

2017-12-08 Thread Bhanuprakash Bodireddy
Signed-off-by: Bhanuprakash Bodireddy --- NEWS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS b/NEWS index 188a075..6fa69ed 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,8 @@ Post-v2.8.0 * Add support for compiling OVS with the latest Linux 4.13

[ovs-dev] [PATCH v6 7/8] Documentation: Update DPDK doc with Keepalive feature.

2017-12-08 Thread Bhanuprakash Bodireddy
Keepalive feature is aimed at achieving Fastpath Service Assurance in OVS-DPDK deployments. It adds support for monitoring the packet processing threads by dispatching heartbeats at regular intervals. The implementation uses OvSDB for reporting the health of the PMD threads. Any external

[ovs-dev] [PATCH v6 5/8] bridge: Update keepalive status in OVSDB.

2017-12-08 Thread Bhanuprakash Bodireddy
This commit allows vswitchd thread to update the OVSDB with the status of all registered PMD threads. The status can be monitored using ovsdb-client and the sample output is below. $ ovsdb-client monitor Open_vSwitch Open_vSwitch keepalive rowaction keepalive

[ovs-dev] [PATCH v6 6/8] keepalive: Add support to query keepalive status and statistics.

2017-12-08 Thread Bhanuprakash Bodireddy
This commit adds support to query keepalive status and statistics. $ ovs-appctl keepalive/status keepAlive Status: Enabled $ ovs-appctl keepalive/pmd-health-show Keepalive status keepalive status : Enabled keepalive interva l: 1000 ms keepalive init time: 21 Aug

[ovs-dev] [PATCH v6 4/8] keepalive: Retrieve PMD status periodically.

2017-12-08 Thread Bhanuprakash Bodireddy
This commit implements APIs to retrieve the PMD thread status and return the status in the below format for each PMD thread. Format: pmdid="status,core id,last_seen_timestamp(epoch)" eg: pmd62="ALIVE,2,150332575" pmd63="GONE,3,150332525" The status is periodically

[ovs-dev] [PATCH v6 2/8] dpif-netdev: Register packet processing cores to KA framework.

2017-12-08 Thread Bhanuprakash Bodireddy
This commit registers the packet processing PMD threads to keepalive framework. Only PMDs that have rxqs mapped will be registered and actively monitored by KA framework. This commit spawns a keepalive thread that will dispatch heartbeats to PMD threads. The pmd threads respond to heartbeats by

[ovs-dev] [RFC PATCH V4 9/9] netdev-dpdk: support multi-segment jumbo frames

2017-12-08 Thread Mark Kavanagh
Currently, jumbo frame support for OvS-DPDK is implemented by increasing the size of mbufs within a mempool, such that each mbuf within the pool is large enough to contain an entire jumbo frame of a user-defined size. Typically, for each user-defined MTU, 'requested_mtu', a new mempool is created,

  1   2   >