Re: [ovs-dev] [PATCH] put bundle_lookup ahead to simplify the code

2017-09-12 Thread Greg Rose
aves != NULL)); -bundle = bundle_lookup(ofproto, aux); if (!bundle) { bundle = xmalloc(sizeof *bundle); Makes sense... Reviewed-by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH V2 16/16] travis: Update build kernel list

2017-09-11 Thread Greg Rose
Linux kernel 4.13 has been released. Update the kernel build list to the current list of kernels from kernel.org. Signed-off-by: Greg Rose --- .travis.yml | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d0fd44..f217840 100644

[ovs-dev] [PATCH V2 15/16] Documentation: Update NEWS and FAQ.

2017-09-11 Thread Greg Rose
Document Open vSwitch Linux kernel support for the 4.13 kernel release. Signed-off-by: Greg Rose --- Documentation/faq/releases.rst | 2 +- NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/faq/releases.rst b/Documentation/faq

[ovs-dev] [PATCH V2 14/16] acinclude: Add support for Linux 4.13

2017-09-11 Thread Greg Rose
Add configuration support for the just released 4.13 Linux kernel. Signed-off-by: Greg Rose --- acinclude.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 46efa69..cb5f3ae 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -143,10 +143,10

[ovs-dev] [PATCH V2 13/16] datapath: Fix up vxlan device flags

2017-09-11 Thread Greg Rose
ned-off-by: Greg Rose --- datapath/vport-vxlan.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/datapath/vport-vxlan.c b/datapath/vport-vxlan.c index 2910694..c7139ab 100644 --- a/datapath/vport-vxlan.c +++ b/datapath/vport-vxlan.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2

[ovs-dev] [PATCH V2 12/16] datapath: Check for existence of nf_hook_ops member list

2017-09-11 Thread Greg Rose
The list member of nf_hook_ops has been removed in Linux kernel release 4.13. Check for the definition of it in pre-4.13 kernels. Signed-off-by: Greg Rose --- datapath/linux/compat/stt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datapath/linux/compat/stt.c b/datapath/linux/compat

[ovs-dev] [PATCH V2 11/16] acinclude: Check for existence of nf_hook_ops member "list".

2017-09-11 Thread Greg Rose
The "list" member of the nf_hook_ops structure is removed in Linux kernel release 4.13. Signed-off-by: Greg Rose --- acinclude.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 577437f..46efa69 100644 --- a/acinclude.m4 +++ b/acinclude.m4

[ovs-dev] [PATCH V2 10/16] datapath: Fixup RTNL ops for kernel 4.13

2017-09-11 Thread Greg Rose
are no longer supported since 2.5.x. Signed-off-by: Greg Rose --- datapath/linux/compat/lisp.c | 21 ++--- datapath/linux/compat/stt.c | 11 +++ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/datapath/linux/compat/lisp.c b/datapath/linux/compat/lisp.c in

[ovs-dev] [PATCH V2 09/16] acinclude: Check for extended netlink ack presence

2017-09-11 Thread Greg Rose
RTNL ops validate and newlink now include the extended netlink ack feature. Check for it and set HAVE_EXT_ACK_IN_RTNL_LINKOPS if found. Signed-off-by: Greg Rose --- acinclude.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 772ff03..577437f 100644

[ovs-dev] [PATCH V2 08/16] compat: Add check for DST_NOCACHE

2017-09-11 Thread Greg Rose
DST_NOCACHE was removed from the Linux 4.13 kernel. Check if HAVE_DST_NOCACHE is defined for older kernels. Signed-off-by: Greg Rose --- datapath/linux/compat/include/net/ip6_fib.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datapath/linux/compat/include/net

[ovs-dev] [PATCH V2 07/16] acinclude: Add compat define for DST_NOCACHE

2017-09-11 Thread Greg Rose
DST_NOCACHE is removed in the 4.13 Linux kernel - add check for it and if found set HAVE_DST_NOCACHE. Signed-off-by: Greg Rose --- acinclude.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 0e98ade..772ff03 100644 --- a/acinclude.m4 +++ b/acinclude.m4

[ovs-dev] [PATCH V2 06/16] datapath: fix skb_panic due to the incorrect actions attrlen

2017-09-11 Thread Greg Rose
ixes: ccea74457bbd ("openvswitch: include datapath actions with sampled-pac Cc: Neil McKee Signed-off-by: Liping Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Fixes: 0e469d3b380c ("datapath: Include datapath actions with sampled-packet upcall to user

[ovs-dev] [PATCH V2 05/16] datapath: Remove unnecessary newlines from OVS_NLERR uses

2017-09-11 Thread Greg Rose
. Signed-off-by: Joe Perches Acked-by: Joe Stringer Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/conntrack.c| 14 +- datapath/flow_netlink.c | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/datapath/conntrack.c b/datapath

[ovs-dev] [PATCH V2 04/16] datapath: Optimize operations for OvS flow_stats.

2017-09-11 Thread Greg Rose
getting, cleaning, and updating the flow_stats. Adding the cpu_used_mask to sw_flow struct does’t increase the cacheline number. Signed-off-by: Tonghao Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/flow.c | 7

[ovs-dev] [PATCH V2 03/16] datapath: Optimize updating for OvS flow_stats.

2017-09-11 Thread Greg Rose
is not a common case, it is unnecessary to call the numa_node_id() everytime. This patch is not a bugfix, but there maybe a small increase. Signed-off-by: Tonghao Zhang Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/flow.c | 3 +-- 1 file changed, 1

[ovs-dev] [PATCH V2 02/16] datapath: Remove all references to SKB_GSO_UDP.

2017-09-11 Thread Greg Rose
upstream kernel. Use HAVE_SKB_GSO_UDP define from acinclude to detect if SKB_GSO_UDP exists and if so apply openvswitch section of this upstream patch. Signed-off-by: Greg Rose --- datapath/flow.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/datapath/flow.c b/datapath/flow.c index

[ovs-dev] [PATCH V2 01/16] acinclude: Check for SKB_GSO_UDP

2017-09-11 Thread Greg Rose
Removed in kernel 4.13 Signed-off-by: Greg Rose --- acinclude.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index aeb594a..0e98ade 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -767,6 +767,9 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT

Re: [ovs-dev] [PATCH 09/15] acinclude: Check for extended netlink ack presence

2017-09-11 Thread Greg Rose
On 09/11/2017 10:56 AM, Greg Rose wrote: RTNL ops validate and newlink now include the extended netlink ack feature. Check for it and set HAVE_EXT_ACK_IN_RTNL_LINKOPS if found. Signed-off-by: Greg Rose --- acinclude.m4 | 6 ++ 1 file changed, 6 insertions(+) diff --git a/acinclude.m4

[ovs-dev] [PATCH 15/15] travis: Update build kernel list

2017-09-11 Thread Greg Rose
Linux kernel 4.13 has been released. Update the kernel build list to the current list of kernels from kernel.org. Signed-off-by: Greg Rose --- .travis.yml | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d0fd44..f217840 100644

[ovs-dev] [PATCH 14/15] Documentation: Update NEWS and FAQ.

2017-09-11 Thread Greg Rose
Document Open vSwitch Linux kernel support for the 4.13 kernel release. Signed-off-by: Greg Rose --- Documentation/faq/releases.rst | 2 +- NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/faq/releases.rst b/Documentation/faq

[ovs-dev] [PATCH 13/15] acinclude: Add support for Linux 4.13

2017-09-11 Thread Greg Rose
Add configuration support for the just released 4.13 Linux kernel. Signed-off-by: Greg Rose --- acinclude.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 46efa69..cb5f3ae 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -143,10 +143,10

[ovs-dev] [PATCH 12/15] datapath: Fix up vxlan device flags

2017-09-11 Thread Greg Rose
ned-off-by: Greg Rose --- datapath/vport-vxlan.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/datapath/vport-vxlan.c b/datapath/vport-vxlan.c index 2910694..c7139ab 100644 --- a/datapath/vport-vxlan.c +++ b/datapath/vport-vxlan.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2

[ovs-dev] [PATCH 11/15] datapath: Check for existence of nf_hook_ops member list

2017-09-11 Thread Greg Rose
The list member of nf_hook_ops has been removed in Linux kernel release 4.13. Check for the definition of it in pre-4.13 kernels. Signed-off-by: Greg Rose --- datapath/linux/compat/stt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datapath/linux/compat/stt.c b/datapath/linux/compat

[ovs-dev] [PATCH 10/15] datapath: Fixup RTNL ops for kernel 4.13

2017-09-11 Thread Greg Rose
are no longer supported since 2.5.x. Signed-off-by: Greg Rose --- datapath/linux/compat/lisp.c | 21 ++--- datapath/linux/compat/stt.c | 11 +++ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/datapath/linux/compat/lisp.c b/datapath/linux/compat/lisp.c in

[ovs-dev] [PATCH 09/15] acinclude: Check for extended netlink ack presence

2017-09-11 Thread Greg Rose
RTNL ops validate and newlink now include the extended netlink ack feature. Check for it and set HAVE_EXT_ACK_IN_RTNL_LINKOPS if found. Signed-off-by: Greg Rose --- acinclude.m4 | 6 ++ 1 file changed, 6 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 772ff03..46efa69 100644

[ovs-dev] [PATCH 08/15] compat: Add check for DST_NOCACHE

2017-09-11 Thread Greg Rose
DST_NOCACHE was removed from the Linux 4.13 kernel. Check if HAVE_DST_NOCACHE is defined for older kernels. Signed-off-by: Greg Rose --- datapath/linux/compat/include/net/ip6_fib.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datapath/linux/compat/include/net

[ovs-dev] [PATCH 07/15] acinclude: Add compat define for DST_NOCACHE

2017-09-11 Thread Greg Rose
DST_NOCACHE is removed in the 4.13 Linux kernel - add check for it and if found set HAVE_DST_NOCACHE. Signed-off-by: Greg Rose --- acinclude.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 0e98ade..772ff03 100644 --- a/acinclude.m4 +++ b/acinclude.m4

[ovs-dev] [PATCH 06/15] datapath: fix skb_panic due to the incorrect actions attrlen

2017-09-11 Thread Greg Rose
ixes: ccea74457bbd ("openvswitch: include datapath actions with sampled-pac Cc: Neil McKee Signed-off-by: Liping Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Fixes: 0e469d3b380c ("datapath: Include datapath actions with sampled-packet upcall to user

[ovs-dev] [PATCH 05/15] datapath: Remove unnecessary newlines from OVS_NLERR uses

2017-09-11 Thread Greg Rose
. Signed-off-by: Joe Perches Acked-by: Joe Stringer Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/conntrack.c| 14 +- datapath/flow_netlink.c | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/datapath/conntrack.c b/datapath

[ovs-dev] [PATCH 04/15] datapath: Optimize operations for OvS flow_stats.

2017-09-11 Thread Greg Rose
getting, cleaning, and updating the flow_stats. Adding the cpu_used_mask to sw_flow struct does’t increase the cacheline number. Signed-off-by: Tonghao Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/flow.c | 7

[ovs-dev] [PATCH 03/15] datapath: Optimize updating for OvS flow_stats.

2017-09-11 Thread Greg Rose
is not a common case, it is unnecessary to call the numa_node_id() everytime. This patch is not a bugfix, but there maybe a small increase. Signed-off-by: Tonghao Zhang Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/flow.c | 3 +-- 1 file changed, 1

[ovs-dev] [PATCH 02/15] datapath: Remove all references to SKB_GSO_UDP.

2017-09-11 Thread Greg Rose
upstream kernel. Use HAVE_SKB_GSO_UDP define from acinclude to detect if SKB_GSO_UDP exists and if so apply openvswitch section of this upstream patch. Signed-off-by: Greg Rose --- datapath/flow.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/datapath/flow.c b/datapath/flow.c index

[ovs-dev] [PATCH 01/15] acinclude: Check for SKB_GSO_UDP

2017-09-11 Thread Greg Rose
Removed in kernel 4.13 Signed-off-by: Greg Rose --- acinclude.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index aeb594a..0e98ade 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -767,6 +767,9 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-ipfix: add interface Information Elements to flow key

2017-09-08 Thread Greg Rose
On 09/08/2017 06:35 AM, Weglicki, MichalX wrote: Greg, Patch is rebased and sent to mailing list as V3 (Last patch was supposed to be V2 - Przemek by accident sent it again as V1). Br, Michal. Thanks, I'll have a look at it! - Greg > -Original Message- > From

Re: [ovs-dev] [PATCH] FAQ: Indicate OVS 2.8 supports up to Linux 4.12.

2017-09-07 Thread Greg Rose
On 09/07/2017 03:49 PM, Justin Pettit wrote: On Sep 7, 2017, at 3:48 PM, Greg Rose wrote: On 09/07/2017 03:47 PM, Justin Pettit wrote: On Sep 7, 2017, at 3:45 PM, Greg Rose wrote: On 09/07/2017 03:44 PM, Justin Pettit wrote: On Sep 7, 2017, at 3:42 PM, Greg Rose wrote: On 09/07/2017 01

Re: [ovs-dev] [PATCH] FAQ: Indicate OVS 2.8 supports up to Linux 4.12.

2017-09-07 Thread Greg Rose
On 09/07/2017 03:47 PM, Justin Pettit wrote: On Sep 7, 2017, at 3:45 PM, Greg Rose wrote: On 09/07/2017 03:44 PM, Justin Pettit wrote: On Sep 7, 2017, at 3:42 PM, Greg Rose wrote: On 09/07/2017 01:09 PM, Justin Pettit wrote: On Sep 7, 2017, at 10:14 AM, Ben Pfaff wrote: On Tue, Sep 05

Re: [ovs-dev] [PATCH] FAQ: Indicate OVS 2.8 supports up to Linux 4.12.

2017-09-07 Thread Greg Rose
On 09/07/2017 03:44 PM, Justin Pettit wrote: On Sep 7, 2017, at 3:42 PM, Greg Rose wrote: On 09/07/2017 01:09 PM, Justin Pettit wrote: On Sep 7, 2017, at 10:14 AM, Ben Pfaff wrote: On Tue, Sep 05, 2017 at 10:22:47AM -0700, Justin Pettit wrote: Signed-off-by: Justin Pettit Acked-by

Re: [ovs-dev] [PATCH] FAQ: Indicate OVS 2.8 supports up to Linux 4.12.

2017-09-07 Thread Greg Rose
On 09/07/2017 01:09 PM, Justin Pettit wrote: On Sep 7, 2017, at 10:14 AM, Ben Pfaff wrote: On Tue, Sep 05, 2017 at 10:22:47AM -0700, Justin Pettit wrote: Signed-off-by: Justin Pettit Acked-by: Ben Pfaff Thanks. I pushed this to master and branch-2.8. There are patches posted to this

Re: [ovs-dev] [PATCH V2 1/6] acinclude: Check for SKB_GSO_UDP

2017-09-07 Thread Greg Rose
On 08/24/2017 08:10 AM, Greg Rose wrote: Removed in kernel 4.13 Signed-off-by: Greg Rose --- acinclude.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 74cc046..9bd1c49 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -763,6 +763,9 @@ AC_DEFUN

Re: [ovs-dev] [PATCH 0/2] fix odp parsing of set masked action

2017-09-06 Thread Greg Rose
On 09/03/2017 10:19 PM, Roi Dayan wrote: On 29/08/2017 07:30, Roi Dayan wrote: Hi, The first commit is a fix for parsing set masked action and the second commit is adding a test. Before the fix the addtion of the tests fails with the following: # make check TESTSUITEFLAGS=436 # ./tests/ovste

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-ipfix: add interface Information Elements to flow key

2017-09-06 Thread Greg Rose
ards. I'll just need to debug the connection issue to the collector. Thanks, - Greg -Original Message- From: ovs-dev-boun...@openvswitch.org [mailto:ovs-dev-boun...@openvswitch.org] On Behalf Of Greg Rose Sent: Saturday, August 19, 2017 12:51 AM To: Szczerbik, PrzemyslawX Cc

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-ipfix: add interface Information Elements to flow key

2017-09-06 Thread Greg Rose
ssage- From: Greg Rose [mailto:gvrose8...@gmail.com] Sent: Tuesday, August 29, 2017 5:15 PM To: Weglicki, MichalX Cc: d...@openvswitch.org; Szczerbik, PrzemyslawX Subject: Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-ipfix: add interface Information Elements to flow key On 08/29/2017 04:48 AM, Weg

Re: [ovs-dev] [PATCH 9/9] ofproto/trace: Support ct_mark and ct_label in --ct-next

2017-09-01 Thread Greg Rose
On 08/25/2017 03:51 PM, Yi-Hung Wei wrote: Previously, --ct-next option in ofproto/trace only supports specifying ct_state. This patch adds support of ct_mark and ct_label. Signed-off-by: Yi-Hung Wei --- lib/ct-dpif.c| 7 lib/ct-dpif.h| 3 ++ lib/netli

Re: [ovs-dev] [PATCH 8/9] ofproto/trace: Change delimiter of ct_state in --ct-next

2017-09-01 Thread Greg Rose
7;trk,est' --ct-next 'trk,est' ], [0], [stdout]) +AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,tcp' --ct-next 'trk|est' --ct-next 'trk|est' ], [0], [stdout]) AT_CHECK([tail -1 stdout], [0], [Datapath actions: 3 ]) LGTM. Reviewed-by:

Re: [ovs-dev] [PATCH 7/9] flow: Refactor parse_ct_state()

2017-09-01 Thread Greg Rose
ER; -if (!parse_ct_state(state_s_, CS_TRACKED, &state, &ds)) { +if (!parse_ct_state(state_s_, CS_TRACKED, ", ", &state, &ds)) { ovs_fatal(0, "%s", ds_cstr(&ds)); } if (!validate_ct_state(state, &ds)) { Other than my comment

Re: [ovs-dev] [PATCH 6/9] netlink-conntrack: Add support for querying conntrack exp

2017-09-01 Thread Greg Rose
On 08/25/2017 03:51 PM, Yi-Hung Wei wrote: The ct_state of an uncommmited new flow is marked as related if the flow is in the conntrack expectation table. In order for ofproto/trace to identify the ct_state of a new related flow, this patch utilizes NFNL_SUBSYS_CTNETLINK_EXP netlink subsystem to

Re: [ovs-dev] [PATCH 5/9] dpif-netlink: Implement ct_get_info

2017-09-01 Thread Greg Rose
On 08/25/2017 03:51 PM, Yi-Hung Wei wrote: This patch implements ct_get_info() in dpif-netlink. It uses NFNL_SUBSYS_CTNETLINK netlink subsystem to query conntrack info from kernel datapath. Then, ofproto/trace can use the ct_get_info() to derive the ct_state of the traced flow. System traffic tes

Re: [ovs-dev] [PATCH 4/9] ofproto/trace: Query ct_state for conntrack recirc from DP

2017-08-31 Thread Greg Rose
On 08/25/2017 03:51 PM, Yi-Hung Wei wrote: Instead of using fixed default conntrack state 'trk|new' in ofproto/trace for conntrack recirculation, this patch queries the conntrack state from datapath using ct_dpif_get_info(). Signed-off-by: Yi-Hung Wei --- lib/ct-dpif.c| 42 +++

Re: [ovs-dev] [PATCH 3/9] ct-dpif: Add ct_dpif_get_info()

2017-08-31 Thread Greg Rose
, otherwise returns nonzero value. */ +int (*ct_get_info)(struct dpif *, struct ct_dpif_tuple *tuple, + const uint16_t zone, struct ct_dpif_info *info); + /* Meters */ /* Queries 'dpif' for supported meter features. Seems fine to me. Reviewed

Re: [ovs-dev] [PATCH 2/9] ofproto/trace: Propagate ct_zone in recirculation

2017-08-31 Thread Greg Rose
t create a helper struct to contain all the parameters and just pass a pointer. Personally I start looking for ways to cut down on parameter passing when a function gets to 4 or more parameters. Again - just a personal predilection. Otherwise the patch LGTM. Reviewed-by: Greg Rose

Re: [ovs-dev] [PATCH 1/9] ofproto/trace: Fix memory leak in oftrace_push_ct_state()

2017-08-31 Thread Greg Rose
struct ds s = DS_EMPTY_INITIALIZER; format_flags(&s, ct_state_to_string, ct_state, '|'); ds_put_format(output, " - resume conntrack with ct_state=%s", Besides the minor nit above it LGTM. Reviewed-by: Greg Rose

Re: [ovs-dev] [PATCH 0/9] ofproto/trace: Support querying ct info from kernel DP

2017-08-31 Thread Greg Rose
ommit e8b91cf36769 " Merge branch 'dpdk_merge' of https://github.com/darball/ovs."; passes a travis build check. Tested-by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] sparse: eliminate "duplicate initialization" warning

2017-08-29 Thread Greg Rose
PP_LOCAL, .flow_metadata.wc.masks.in_port.ofp_port = u16_to_ofp(UINT16_MAX), Reviewed-by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] timeval: Fix misleading function descriptions.

2017-08-29 Thread Greg Rose
On 08/28/2017 12:08 AM, Ilya Maximets wrote: TIME_UPDATE_INTERVAL was removed long time ago. Now each call leads to time update via syscall and it's granularity is system dependent. Fixes: 31ef9f5178de ("timeval: Remove CACHE_TIME scheme.") Signed-off-by: Ilya Maximets --- lib/timeval.c | 10

Re: [ovs-dev] [PATCH] dpif: Remove duplicated word in comment for dpif_recv()

2017-08-29 Thread Greg Rose
m 'dpif'. * * 'upcall->key' and 'upcall->userdata' point into data in the caller-provided * 'buf', so their memory cannot be freed separately from 'buf'. LGTM Reviewed-by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-ipfix: add interface Information Elements to flow key

2017-08-29 Thread Greg Rose
some other work and will get back to this afterwards. I'll just need to debug the connection issue to the collector. Thanks, - Greg > -Original Message- > From: ovs-dev-boun...@openvswitch.org [mailto:ovs-dev-boun...@openvswitch.org] On Behalf Of Greg Rose > Sent: Satur

[ovs-dev] [PATCH V2 6/6] datapath: fix skb_panic due to the incorrect actions attrlen

2017-08-24 Thread Greg Rose
ixes: ccea74457bbd ("openvswitch: include datapath actions with sampled-pac Cc: Neil McKee Signed-off-by: Liping Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Fixes: 0e469d3b380c ("datapath: Include datapath actions with sampled-packet upcall to user

[ovs-dev] [PATCH V2 5/6] datapath: Remove unnecessary newlines from OVS_NLERR uses

2017-08-24 Thread Greg Rose
. Signed-off-by: Joe Perches Acked-by: Joe Stringer Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/conntrack.c| 14 +- datapath/flow_netlink.c | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/datapath/conntrack.c b/datapath

[ovs-dev] [PATCH V2 4/6] datapath: Optimize operations for OvS flow_stats.

2017-08-24 Thread Greg Rose
getting, cleaning, and updating the flow_stats. Adding the cpu_used_mask to sw_flow struct does’t increase the cacheline number. Signed-off-by: Tonghao Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/flow.c | 7

[ovs-dev] [PATCH V2 3/6] datapath: Optimize updating for OvS flow_stats.

2017-08-24 Thread Greg Rose
is not a common case, it is unnecessary to call the numa_node_id() everytime. This patch is not a bugfix, but there maybe a small increase. Signed-off-by: Tonghao Zhang Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/flow.c | 3 +-- 1 file changed, 1

[ovs-dev] [PATCH V2 2/6] datapath: Remove all references to SKB_GSO_UDP.

2017-08-24 Thread Greg Rose
upstream kernel. Use HAVE_SKB_GSO_UDP define from acinclude to detect if SKB_GSO_UDP exists and if so apply openvswitch section of this upstream patch. Signed-off-by: Greg Rose --- datapath/flow.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/datapath/flow.c b/datapath/flow.c index

[ovs-dev] [PATCH V2 1/6] acinclude: Check for SKB_GSO_UDP

2017-08-24 Thread Greg Rose
Removed in kernel 4.13 Signed-off-by: Greg Rose --- acinclude.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 74cc046..9bd1c49 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -763,6 +763,9 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT

Re: [ovs-dev] [PATCH 2/5] datapath: Optimize updating for OvS flow_stats.

2017-08-23 Thread Greg Rose
On 08/23/2017 04:24 PM, Joe Stringer wrote: On 23 August 2017 at 11:21, Greg Rose wrote: > Upstream commit: > commit c57c054eb5b1ccf230c49f736f7a018fcbc3e952 > Author: Tonghao Zhang > Date: Mon Jul 17 23:28:05 2017 -0700 > > openvswitch: Optimiz

Re: [ovs-dev] [PATCH 1/5] datapath: Remove all references to SKB_GSO_UDP.

2017-08-23 Thread Greg Rose
On 08/23/2017 04:21 PM, Joe Stringer wrote: On 23 August 2017 at 11:21, Greg Rose wrote: > Upstream commit: > commit 880388aa3c07fdea4f9b85e35641753017b1852f > Author: David S. Miller > Date: Mon Jul 3 07:29:12 2017 -0700 > > net: Remove all referen

[ovs-dev] [PATCH 5/5] datapath: fix skb_panic due to the incorrect actions attrlen

2017-08-23 Thread Greg Rose
7bbd ("openvswitch: include datapath actions with sampled-pac Cc: Neil McKee Signed-off-by: Liping Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Fixes: 0e469d3b380c ("datapath: Include datapath actions with sampled-packet upcall to userspace

[ovs-dev] [PATCH 4/5] datapath: Remove unnecessary newlines from OVS_NLERR uses

2017-08-23 Thread Greg Rose
. Signed-off-by: Joe Perches Acked-by: Joe Stringer Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/conntrack.c| 14 +- datapath/flow_netlink.c | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/datapath/conntrack.c b/datapath

[ovs-dev] [PATCH 3/5] datapath: Optimize operations for OvS flow_stats.

2017-08-23 Thread Greg Rose
getting, cleaning, and updating the flow_stats. Adding the cpu_used_mask to sw_flow struct does’t increase the cacheline number. Signed-off-by: Tonghao Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/flow.c | 7

[ovs-dev] [PATCH 2/5] datapath: Optimize updating for OvS flow_stats.

2017-08-23 Thread Greg Rose
is not a common case, it is unnecessary to call the numa_node_id() everytime. This patch is not a bugfix, but there maybe a small increase. Signed-off-by: Tonghao Zhang Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/flow.c | 3 +-- 1 file changed, 1

[ovs-dev] [PATCH 1/5] datapath: Remove all references to SKB_GSO_UDP.

2017-08-23 Thread Greg Rose
this upstream patch. Signed-off-by: Greg Rose --- datapath/flow.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/datapath/flow.c b/datapath/flow.c index c4f63b0..9bf3eba 100644 --- a/datapath/flow.c +++ b/datapath/flow.c @@ -589,8 +589,7 @@ static int key_extract(struct

Re: [ovs-dev] [PATCH] datapath: fix skb_panic due to the incorrect actions attrlen

2017-08-22 Thread Greg Rose
On 08/18/2017 02:41 PM, Joe Stringer wrote: On 16 August 2017 at 15:48, Greg Rose wrote: > Upstream commit: > commit 494bea39f3201776cdfddc232705f54a0bd210c4 > Author: Liping Zhang > Date: Wed Aug 16 13:30:07 2017 +0800 > > For sw_flow_actions, th

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-ipfix: add interface Information Elements to flow key

2017-08-18 Thread Greg Rose
On 08/16/2017 01:54 AM, Szczerbik, PrzemyslawX wrote: Hi, I haven't received any feedback on this patch for quite some time. Is there anything that I can do to expedite review process? Regards, Przemek Przemek, I'm in the process of looking into this patch but I'm running into an issue wit

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-ipfix: add interface Information Elements to flow key

2017-08-17 Thread Greg Rose
On 08/16/2017 01:54 AM, Szczerbik, PrzemyslawX wrote: Hi, I haven't received any feedback on this patch for quite some time. Is there anything that I can do to expedite review process? Regards, Przemek [snip] I'll have a look at it over the next few days and see if I can provide some feedb

Re: [ovs-dev] [PATCH v4] route-table: Remove netdevs in netdev_hash when deleted

2017-08-17 Thread Greg Rose
me) { +tnl_port_map_delete_ipdev(change->ifname); +} +} } Works as advertised... Tested-by: Greg Rose Reviewed-by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH] datapath: fix skb_panic due to the incorrect actions attrlen

2017-08-16 Thread Greg Rose
pled-"...) Cc: Neil McKee Signed-off-by: Liping Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/actions.c | 1 + datapath/datapath.c | 7 --- datapath/datapath.h | 2 ++ 3 files changed, 7 insertions(+), 3 deletio

Re: [ovs-dev] [PATCH v4 6/6] dpif-netdev: Add ovs-appctl dpif-netdev/pmd-rxq-rebalance.

2017-08-10 Thread Greg Rose
tics, only the values shown by the above command. For each pmd thread of the datapath \fIdp\fR shows list of queue-ids with port names, which this thread polls. +.IP "\fBdpif-netdev/pmd-rxq-rebalance\fR [\fIdp\fR]" +Reassigns rxqs to pmds in the datapath \fIdp\fR based on their curren

Re: [ovs-dev] [PATCH v4 5/6] dpif-netdev: Change pmd selection order.

2017-08-10 Thread Greg Rose
[[0-9]]*\( core_id \)[[0-9]]*:/\1\2:/;s/\(queue-id: \)1 2 5 6/\1/;s/\(queue-id: \)0 3 4 7/\1/"]) m4_define([DUMMY_NUMA], [--dummy-numa="0,0,0,0"]) Tested-by: Greg Rose Reviewed-by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v4 4/6] dpif-netdev: Change rxq_scheduling to use rxq processing cycles.

2017-08-10 Thread Greg Rose
xqs[i]->rx), + netdev_rxq_get_name(rxqs[i]->rx), + rxqs[i]->pmd->core_id, rxqs[i]->pmd->numa_id); +} else { +rxqs[i]->pmd = rr_numa_get_pmd(numa); +VLOG_INFO("Core %d on numa node %d assigned port \'%s\' &quo

Re: [ovs-dev] [PATCH v4 3/6] dpif-netdev: Count the rxq processing cycles for an rxq.

2017-08-10 Thread Greg Rose
rxq_cyc_curr); +dp_netdev_rxq_set_cycles(poll_list[i].rxq, RXQ_CYCLES_PROC_CURR, + 0); +} +/* Start new measuring interval */ + pmd->rxq_interval = now + PMD_RXQ_INTERVAL; +} if (now > pmd->next_op

Re: [ovs-dev] [PATCH v4 2/6] dpif-netdev: Add rxq processing cycle counters.

2017-08-10 Thread Greg Rose
cycles_count_intermediate(pmd, +cycles_count_intermediate(pmd, NULL, process_packets ? PMD_CYCLES_PROCESSING : PMD_CYCLES_IDLE); Tested-by: Greg Rose Reviewed-by: Greg Rose ___

Re: [ovs-dev] [PATCH v4 1/6] dpif-netdev: Change polled_queue to use dp_netdev_rxq.

2017-08-10 Thread Greg Rose
dp_netdev_process_rxq_port(pmd, poll_list[i].rx, +dp_netdev_process_rxq_port(pmd, poll_list[i].rxq->rx, poll_list[i].port_no); cycles_count_intermediate(pmd, Tested-by: Greg Rose Reviewed-by: Greg Rose

Re: [ovs-dev] [PATCHv2 1/2] netdev: Refactor destruction of netdev_ports.

2017-08-10 Thread Greg Rose
a); +netdev_port_data_destroy(data); ret = 0; } LGTM Reviewed-by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v3 4/6] dpif-netdev: Change rxq_scheduling to use rxq processing cycles.

2017-08-09 Thread Greg Rose
On 08/09/2017 08:47 AM, Kevin Traynor wrote: On 08/08/2017 07:15 PM, Greg Rose wrote: > On 08/01/2017 08:58 AM, Kevin Traynor wrote: >> Previously rxqs were assigned to pmds by round robin in >> port/queue order. >> >> Now that we have the processing cycles used for

Re: [ovs-dev] [PATCH v3 4/6] dpif-netdev: Change rxq_scheduling to use rxq processing cycles.

2017-08-08 Thread Greg Rose
On 08/01/2017 08:58 AM, Kevin Traynor wrote: Previously rxqs were assigned to pmds by round robin in port/queue order. Now that we have the processing cycles used for existing rxqs, use that information to try and produced a better balanced distribution of rxqs across pmds. i.e. given multiple p

Re: [ovs-dev] [PATCH v3 4/6] dpif-netdev: Change rxq_scheduling to use rxq processing cycles.

2017-08-04 Thread Greg Rose
On 08/04/2017 02:56 PM, Kevin Traynor wrote: On 08/04/2017 10:31 PM, Greg Rose wrote: > On 08/01/2017 08:58 AM, Kevin Traynor wrote: >> Previously rxqs were assigned to pmds by round robin in >> port/queue order. >> >> Now that we have the processing cycles used for

Re: [ovs-dev] [PATCH v3 4/6] dpif-netdev: Change rxq_scheduling to use rxq processing cycles.

2017-08-04 Thread Greg Rose
On 08/01/2017 08:58 AM, Kevin Traynor wrote: Previously rxqs were assigned to pmds by round robin in port/queue order. Now that we have the processing cycles used for existing rxqs, use that information to try and produced a better balanced distribution of rxqs across pmds. i.e. given multiple p

Re: [ovs-dev] [PATCH v3 00/19] Add OVS DPDK keep-alive functionality.

2017-08-04 Thread Greg Rose
On 08/04/2017 01:07 AM, Bhanuprakash Bodireddy wrote: Keepalive feature is aimed at achieving Fastpath Service Assurance in OVS-DPDK deployments. It adds support for monitoring the packet processing cores(PMD thread cores) by dispatching heartbeats at regular intervals. Incase of heartbeat misses

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-upcall: Fix key attr iteration.

2017-08-02 Thread Greg Rose
>key_len) { if (nl_attr_type(a) == OVS_KEY_ATTR_RECIRC_ID && nl_attr_get_u32(a) != 0) { return EINVAL; Reviewed-by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-upcall: Fix action attr iteration.

2017-08-02 Thread Greg Rose
} I suppose we have to protect ourselves from malformed messages but I suppose there might be some small impact on performance? Reviewed by: Greg Rose ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] FW: [patch_v1] docs/dpdk: Consolidate pmd-cpu-mask references.

2017-08-01 Thread Greg Rose
on the ovs-dev list. Reviewed-by: Greg rose -Original Message- From: on behalf of Darrell Ball Date: Thursday, July 27, 2017 at 4:50 PM To: "d...@openvswitch.org" Subject: [ovs-dev] [patch_v1] docs/dpdk: Consolidate pmd-cpu-mask references. The DPDK introductory doc

Re: [ovs-dev] [PATCH v2 00/19] Add OVS DPDK keep-alive functionality.

2017-07-28 Thread Greg Rose
On 07/28/2017 10:56 AM, Darrell Ball wrote: Thanks for testing Greg We are at DPDK 16.11.2 now See this link http://docs.openvswitch.org/en/latest/faq/releases/ Darrell Well that explains things! Thanks, I'll give it another go with 16.11.2. - Greg -Original Message- From:

Re: [ovs-dev] [PATCH v2 00/19] Add OVS DPDK keep-alive functionality.

2017-07-28 Thread Greg Rose
Bhanuprakash, After applying your patch series on top of current master and building I get the following error: libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat

Re: [ovs-dev] [PATCH 2/2] ovs-bugtool: Run the 'dmesg' command without condition.

2017-07-26 Thread Greg Rose
last_mod_time=log_last_mod_time) -if not os.path.exists('/var/log/dmesg') and \ - not os.path.exists('/var/log/boot'): -cmd_output(CAP_SYSTEM_LOGS, [DMESG]) +cmd_output(CAP_SYSTEM_LOGS, [DMESG]) cmd_output(CAP_SYSTEM_SERVICES, [CHKC

Re: [ovs-dev] [PATCH 1/2] ovs-bugtool: Collect OVS logs with "--ovs" option.

2017-07-26 Thread Greg Rose
, CAP_NETWORK_CONFIG] ovs_info_list = ['process-tree'] # We cannot use iteritems, since we modify 'data' as we pass through for (k, v) in data.items(): Reviewed-by: Greg Rose Tested-by: Greg Rose ___ dev

Re: [ovs-dev] [PATCH] dpif-netdev: Reorder elements in dp_netdev_port structure.

2017-07-26 Thread Greg Rose
f rx queues. */ -bool need_reconfigure; /* True if we should reconfigure netdev. */ }; /* Contained by struct dp_netdev_flow's 'stats' member. */ Reviewed-by: Greg Rose Tested-by: Greg Rose ___ dev mailing list d...@openvswitch.

[ovs-dev] [PATCH V2] datapath: fix potential out of bound access in parse_ct

2017-07-25 Thread Greg Rose
996b ("datapath: Add conntrack action") Signed-off-by: Greg Rose --- V2 - Add appropriate "Fixes" tag for OOT repository --- datapath/conntrack.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/datapath/conntrack.c b/datapath/conntrack.c index bba9bf

[ovs-dev] [PATCH] datapath: fix potential out of bound access in parse_ct

2017-07-25 Thread Greg Rose
_ct_attr_lens's minlen and maxlen, else, out of bound access may happen. Fixes: 7f8a436eaa2c ("openvswitch: Add conntrack action") Signed-off-by: Liping Zhang Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Pick up an upstream bug fix. Signed-of

Re: [ovs-dev] [PATCHv2 00/11] Backport upstream Linux patches and support 4.12 kernel

2017-07-24 Thread Greg Rose
On 07/24/2017 10:19 AM, Joe Stringer wrote: On 24 July 2017 at 08:31, Greg Rose wrote: > On 07/21/2017 04:46 PM, Joe Stringer wrote: >> >> This series takes Greg's recent proposed series, rolls in a few missed >> upstream commits, and orders them the same as

Re: [ovs-dev] [PATCHv2 00/11] Backport upstream Linux patches and support 4.12 kernel

2017-07-24 Thread Greg Rose
go ahead and backport patches even though the kernel they are targeted for has not been released yet. Thank you Joe! Regards, - Greg Greg Rose (7): datapath: introduce nf_conntrack_helper_put function datapath: Fix inconsistent teardown and release of private netdev state. compat:

Re: [ovs-dev] [PATCH 01/11] datapath: introduce nf_conntrack_helper_put function

2017-07-24 Thread Greg Rose
On 07/21/2017 04:46 PM, Joe Stringer wrote: From: Greg Rose Upstream commit: commit d91fc59cd77c719f33eda65c194ad8f95a055190 Author: Liping Zhang Date: Sun May 7 22:01:55 2017 +0800 netfilter: introduce nf_conntrack_helper_put helper function And convert

Re: [ovs-dev] [PATCHv2 00/11] Backport upstream Linux patches and support 4.12 kernel

2017-07-21 Thread Greg Rose
rly next week. Thanks! - Greg > > I've added my sign-off to all of the other patches, which I have reviewed. > > Greg Rose (7): > datapath: introduce nf_conntrack_helper_put function > datapath: Fix inconsistent teardown and release of private netdev > state.

<    3   4   5   6   7   8   9   10   >