[ovs-dev] [External] [PATCH] ovs: datapath: clear skb->tstamp in forwarding path

2021-08-16 Thread 范开喜
fq qdisc requires tstamp to be cleared in the forwarding path. Now ovs doesn't clear skb->tstamp. We encountered a problem with linux version 5.4.56 and ovs version 2.14.1, and packets failed to dequeue from qdisc when fq qdisc was attached to ovs port. Signed-off-by: kaixi.fan Signed-off-by:

[ovs-dev] [PATCH v2] include/openvswitch/compiler.h: add check for __builtin_prefetch using __has_builtin

2021-08-16 Thread Sergey Madaminov
Currently, '__builtin_prefetch' is defined for OVS_PREFETCH macro only if '__GNUC__' is defined. However, it would make sense to use a '__has_builtin' preprocessor operator to check if '__builtin_prefetch' is available and then define the OVS_PREFETCH macro. Doing so will allow to use prefetching

Re: [ovs-dev] [PATCH branch-2.16 0/2] Release patches for v2.16.0.

2021-08-16 Thread Ilya Maximets
On 8/16/21 10:09 PM, Ilya Maximets wrote: > There is still a couple of bug fixes that I want to apply before > tagging v2.16.0, which are fixes for PACKET_OUT crash in userspace > datapath: > >

Re: [ovs-dev] [PATCH ovn 3/3] utilities: update ovn-nbctl with RouteTables support

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Vladislav Odintsov, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line lacks whitespace around operator WARNING: Line lacks whitespace around

Re: [ovs-dev] [PATCH ovn 2/3] northd: support for RouteTables in LRs

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Vladislav Odintsov, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Inappropriate bracing around statement #429 FILE: northd/ovn-northd.c:8819:

Re: [ovs-dev] [PATCH] CI: Use ovn-k8s master commit for k8s kind tests.

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Numan Siddique, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: sha1 information is lacking or useless (.github/workflows/ovn-kubernetes.yml). error:

[ovs-dev] [PATCH resend ovn] CI: Use ovn-k8s master commit for k8s kind tests.

2021-08-16 Thread numans
From: Numan Siddique All the ovn-k8s tests in OVN are now failing since a few weeks. Bumping the ovn-k8s commit to the latest one in my private CI run passed all the tests except the control plane test [1]. control plane test is failing since a while and this needs to be debugged. ovn-k8s repo

[ovs-dev] [PATCH] CI: Use ovn-k8s master commit for k8s kind tests.

2021-08-16 Thread numans
From: Numan Siddique All the ovn-k8s tests in OVN are now failing since a few weeks. Bumping the ovn-k8s commit to the latest one in my private CI run passed all the tests except the control plane test [1]. control plane test is failing since a while and this needs to be debugged. ovn-k8s repo

Re: [ovs-dev] [PATCH branch-2.16 0/2] Release patches for v2.16.0.

2021-08-16 Thread Flavio Leitner
On Mon, Aug 16, 2021 at 10:09:28PM +0200, Ilya Maximets wrote: > There is still a couple of bug fixes that I want to apply before > tagging v2.16.0, which are fixes for PACKET_OUT crash in userspace > datapath: > >

[ovs-dev] [PATCH ovn 3/3] utilities: update ovn-nbctl with RouteTables support

2021-08-16 Thread Vladislav Odintsov
Signed-off-by: Vladislav Odintsov --- tests/ovn-ic.at | 4 + tests/ovn-nbctl.at| 165 +- utilities/ovn-nbctl.c | 124 +-- 3 files changed, 284 insertions(+), 9 deletions(-) diff --git a/tests/ovn-ic.at

[ovs-dev] [PATCH ovn 2/3] northd: support for RouteTables in LRs

2021-08-16 Thread Vladislav Odintsov
This patch extends Logical Router's routing functionality. Now user may create multiple routing tables within a Logical Router and assign them to Logical Router Ports. Traffic coming from Logical Router Port with assigned route_table is checked against global routes if any

[ovs-dev] [PATCH ovn 1/3] tests: remove strict check for table=N for N > 9

2021-08-16 Thread Vladislav Odintsov
Some tests which check logical flows were checking exact match for output. E.g.: table=12(lr_in_ip_routing ) ... This makes harder to add new tables in LR pipeline since in this case one have to update test, which are not relevant for the change. Replace all table=NN invocations with table=??

[ovs-dev] [PATCH ovn 0/3] Add multiple routing tables support to Logical Routers

2021-08-16 Thread Vladislav Odintsov
This patch series extends Logical Router's routing functionality. Now user may create multiple routing tables within a Logical Router and assign them to Logical Router Ports. Traffic coming from Logical Router Port with assigned route_table is checked against global routes if any

Re: [ovs-dev] [PATCH branch-2.16 0/2] Release patches for v2.16.0.

2021-08-16 Thread Numan Siddique
On Mon, Aug 16, 2021 at 4:10 PM Ilya Maximets wrote: > > There is still a couple of bug fixes that I want to apply before > tagging v2.16.0, which are fixes for PACKET_OUT crash in userspace > datapath: > >

Re: [ovs-dev] [PATCH ovn] northd: fix xxreg{0, 1} registers usage description in router pipeline

2021-08-16 Thread Numan Siddique
On Tue, Aug 10, 2021 at 12:16 PM Vladislav Odintsov wrote: > > XXREG0 and XXREG1 (128-bit registers), are currently used in > router pipeline to store NEXT_HOP_IPV6 and SRC_IPV6 respectively. > > First time XXREG0 register is written - in stage lr_in_defrag. > XXREG1 register is written first in

[ovs-dev] [PATCH branch-2.16 2/2] Prepare for 2.16.1.

2021-08-16 Thread Ilya Maximets
Signed-off-by: Ilya Maximets --- NEWS | 3 +++ configure.ac | 2 +- debian/changelog | 6 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 559a51ba3..f2497d5ce 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +v2.16.1 - xx xxx

[ovs-dev] [PATCH branch-2.16 1/2] Set release date for 2.16.0.

2021-08-16 Thread Ilya Maximets
Signed-off-by: Ilya Maximets --- NEWS | 2 +- debian/changelog | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 1064c4dfc..559a51ba3 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -v2.16.0 - xx xxx +v2.16.0 - 16 Aug 2021

[ovs-dev] [PATCH branch-2.16 0/2] Release patches for v2.16.0.

2021-08-16 Thread Ilya Maximets
There is still a couple of bug fixes that I want to apply before tagging v2.16.0, which are fixes for PACKET_OUT crash in userspace datapath: https://patchwork.ozlabs.org/project/openvswitch/patch/20210816051007.16373-1-tony.vanderp...@alliedtelesis.co.nz/ and the fix for setting conntrack zone

Re: [ovs-dev] [PATCH v2 1/2] netlink-socket: Replace error with txn->error when logging nacked transactions.

2021-08-16 Thread Ilya Maximets
On 8/11/21 5:43 PM, Paolo Valerio wrote: > in case nl_msg_nlmsgerr returns true which basically means that the > nlmsg_type == NLMSG_ERROR, we need to log the error code, besides the > descriptive representation, stored by nl_msg_nlmsgerr instead of > "error". > > Fixes: 72d32ac0b3a1

Re: [ovs-dev] [PATCH] tc: Set action flags for tunnel_key release

2021-08-16 Thread Ilya Maximets
On 8/11/21 8:31 PM, Marcelo Ricardo Leitner wrote: > On Wed, Aug 11, 2021 at 01:39:41PM +0200, Ilya Maximets wrote: >> On 8/9/21 9:26 AM, Roi Dayan via dev wrote: >>> From: Vlad Buslov >>> >>> The commit that enabled 'no_percpu' flag for compatible actions missed the >>> tunnel_key release action

Re: [ovs-dev] [PATCH] netdev-offload-dpdk: initialize s_tnl dynamic string

2021-08-16 Thread Ilya Maximets
On 8/14/21 7:30 AM, Sriharsha Basavapatna via dev wrote: > On Fri, Aug 13, 2021 at 6:27 PM Gaëtan Rivet wrote: > >> On Fri, Aug 13, 2021, at 08:14, Sriharsha Basavapatna via dev wrote: >>> The 's_tnl' member in flow_patterns and flow_actions should be >>> to set to DS_EMPTY_INITIALIZER, to be

Re: [ovs-dev] [PATCH v2] dynamic-string: fix a crash in ds_clone()

2021-08-16 Thread Ilya Maximets
On 8/13/21 4:39 AM, Sriharsha Basavapatna via dev wrote: > On Fri, Aug 13, 2021 at 4:07 AM Ilya Maximets wrote: >> >> On 8/12/21 8:33 AM, Sriharsha Basavapatna via dev wrote: >>> In netdev_offload_dpdk_flow_create() when an offload request fails, >>> dump_flow() is called to log a warning

Re: [ovs-dev] [PATCH v2] ipf: fix only nat the first fragment in the reass process

2021-08-16 Thread Ilya Maximets
On 8/12/21 6:17 PM, Aaron Conole wrote: > we...@ucloud.cn writes: > >> From: wenxu >> >> The ipf collect original fragment packets and reass a new pkt >> to do the conntrack logic. After finsh the conntrack things >> copy the ct meta info to each orignal packet and modify the >> l4 header in the

Re: [ovs-dev] ideas for improving the OVS review process

2021-08-16 Thread Flavio Leitner
Hi, On Tue, Jul 20, 2021 at 11:41:37AM -0700, Ben Pfaff wrote: > The OVS review process has greatly slowed over the last few years. This > is partly because I haven't been able to spend as much time on review, > since I was once the most productive reviewer. Ilya has been able to > step up

[ovs-dev] [OVN Patch] Make changes to the parallel processing API to allow pool sizing

2021-08-16 Thread anton . ivanov
From: Anton Ivanov 1. Make pool size user defineable. 2. Expose pool destruction. 3. Make pools resizeable at runtime. Signed-off-by: Anton Ivanov --- lib/ovn-parallel-hmap.c | 202 ++-- lib/ovn-parallel-hmap.h | 23 - northd/ovn-northd.c | 58

Re: [ovs-dev] [PATCH ovn 6/6] ovn-controller: Don't flood fill local datapaths beyond DGP boundary.

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Han Zhou, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Comment with 'xxx' marker #393 FILE: northd/ovn-northd.c:3109: /* XXX Why

Re: [ovs-dev] [PATCH ovn v2] northd: Fix routing loop in LRs with one-to-many SNAT

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Krzysztof Klimonda, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 80 characters long (recommended limit is 79) #103 FILE:

Re: [ovs-dev] [PATCH ovn repost 1/7] ovn-northd-ddlog: Merge TaggedFlow and MeteredFlow into Flow.

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Ben Pfaff, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: Failed to merge in the changes. hint: Use 'git am --show-current-patch' to see the failed patch

Re: [ovs-dev] [PATCH ovn] northd: reduce number of nd_na lb logical flows

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Lorenzo Bianconi, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: Failed to merge in the changes. hint: Use 'git am --show-current-patch' to see the

Re: [ovs-dev] [PATCH ovn v2 1/2] lflow: Generate unique integer for each Load Balancer

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Mark Gray, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: Failed to merge in the changes. hint: Use 'git am --show-current-patch' to see the failed patch

Re: [ovs-dev] [PATCH v2 1/2] dpif-netdev: fix memory leak in dpcls subtable set command

2021-08-16 Thread Stokes, Ian
> On 8/16/21 5:17 PM, Stokes, Ian wrote: > >> On 12/08/2021 16:57, Harry van Haaren wrote: > >>> This patch fixes a memory leak when the command > >>> "dpif-netdev/subtable-lookup-prio-set" is run, the pmd_list > >>> required to iterate the PMD threads was not being freed. > >>> This issue was

Re: [ovs-dev] [PATCH v2 1/2] dpif-netdev: fix memory leak in dpcls subtable set command

2021-08-16 Thread Ilya Maximets
On 8/16/21 5:17 PM, Stokes, Ian wrote: >> On 12/08/2021 16:57, Harry van Haaren wrote: >>> This patch fixes a memory leak when the command >>> "dpif-netdev/subtable-lookup-prio-set" is run, the pmd_list >>> required to iterate the PMD threads was not being freed. >>> This issue was identified by a

Re: [ovs-dev] [PATCH v1] dpif-netdev: Fix dead code in mfex command

2021-08-16 Thread Stokes, Ian
> On 16/08/2021 09:03, kumar Amber wrote: > > The commit removes the dead code from the > > MFEX set command as highlighted by static tool > > analysis. > > > > Fixes: a395b132b7 ("dpif-netdev: Add packet count and core id paramters for > study") > > Signed-off-by: kumar Amber > > --- > >

Re: [ovs-dev] [PATCH V2 3/4] netdev-offload-dpdk: Support IPv6 fragmentation types

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Eli Britstein, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 82 characters long (recommended limit is 79) #109 FILE:

Re: [ovs-dev] [PATCH V2 2/4] netdev-offload-dpdk: Support IPv4 fragmentation types

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Eli Britstein, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 80 characters long (recommended limit is 79) #77 FILE:

Re: [ovs-dev] [PATCH V2 1/4] netdev-offload-dpdk: Add last attribute to patterns

2021-08-16 Thread 0-day Robot
Bleep bloop. Greetings Eli Britstein, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 80 characters long (recommended limit is 79) #193 FILE:

[ovs-dev] [PATCH] dpif-netdev: Keep orig_in_port as a field of the flow

2021-08-16 Thread Eli Britstein via dev
A flow may be modified after its initial offload failed. In this case, according to [1], the modification is handled as a flow add. For a vport flow "add", the orig_in_port should be provided. Keep that field in the flow struct, so it can be provided in the flow modification use case. [1]

[ovs-dev] [PATCH V3 2/2] netdev-offload-dpdk: Fix ethernet type for VLANs

2021-08-16 Thread Eli Britstein via dev
For VLANs, the match of ethernet type should be specified in inner_type field of the vlan match, and not type field in ethernet match. Fix it. Fixes: e8a2b5bf92bb ("netdev-dpdk: implement flow offload with rte flow") Signed-off-by: Eli Britstein Reviewed-by: Salem Sol ---

[ovs-dev] [PATCH V3 1/2] netdev-offload-dpdk: Use has_vlan match attribute

2021-08-16 Thread Eli Britstein via dev
DPDK 20.11 introduced an ability to specify existance/non-existance of VLAN tag by [1]. Use this attribute. [1]: 09315fc83861 ("ethdev: add VLAN attributes to ethernet and VLAN items") Signed-off-by: Eli Britstein Reviewed-by: Salem Sol --- lib/netdev-offload-dpdk.c | 16 1

[ovs-dev] [PATCH V2 3/4] netdev-offload-dpdk: Support IPv6 fragmentation types

2021-08-16 Thread Eli Britstein via dev
Support IPv6 fragmentation matching. Signed-off-by: Eli Britstein --- lib/netdev-offload-dpdk.c | 82 ++- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c index ee8e56fe0..d79ad1bea 100644 ---

[ovs-dev] [PATCH V2 4/4] netdev-offload-dpdk: Don't ignore frags as they are handled

2021-08-16 Thread Eli Britstein via dev
Signed-off-by: Eli Britstein --- NEWS | 2 ++ lib/netdev-offload-dpdk.c | 5 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 26920e215..80466c014 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,8 @@ Post-v2.16.0 by default.

[ovs-dev] [PATCH V2 1/4] netdev-offload-dpdk: Add last attribute to patterns

2021-08-16 Thread Eli Britstein via dev
Matching on frag types requires range. Add 'last' attribute to patterns. Signed-off-by: Eli Britstein --- lib/netdev-offload-dpdk.c | 151 -- 1 file changed, 81 insertions(+), 70 deletions(-) diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c

[ovs-dev] [PATCH V2 2/4] netdev-offload-dpdk: Support IPv4 fragmentation types

2021-08-16 Thread Eli Britstein via dev
Support IPv4 fragmentation matching. Signed-off-by: Eli Britstein --- lib/netdev-offload-dpdk.c | 47 +-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c index 769dc48d2..ee8e56fe0 100644

[ovs-dev] [PATCH V2 0/4] netdev datapath offload frag matching

2021-08-16 Thread Eli Britstein via dev
Netdev datapath ignored fragmentation matching so far. [1] introduced an API for that in dpdk. Use it to apply frag matching. [1] http://mails.dpdk.org/archives/dev/2020-October/186177.html Travis: v1: https://travis-ci.org/github/elibritstein/OVS/builds/752634689 GitHub Actions: v1:

Re: [ovs-dev] Patch not being sent to ovs-dev ML

2021-08-16 Thread Krzysztof Klimonda
Hi, Oops, thanks - it seems I've also goofed up and spammed ML with the same patch a few times. My bad :( Thanks, Krzysztof On Mon, Aug 16, 2021, at 13:18, Ilya Maximets wrote: > On 8/16/21 1:01 PM, Krzysztof Klimonda wrote: > > Hi, > > > > I'm trying to send a patch to ovs-dev ML but it's

Re: [ovs-dev] [PATCH branch-master] OVS: Update OVS master to use latest dpdk versions

2021-08-16 Thread Ilya Maximets
On 8/13/21 4:52 PM, Suneetha Kalahasthi wrote: > Modify ci linux build script to use the latest DPDK stable release 20.11.2. > Modify Documentation to use the latest DPDK stable release 20.11.2. > Update NEWS file to reflect the latest DPDK stable release 20.11.2. > FAQ is updated to reflect the

Re: [ovs-dev] Patch not being sent to ovs-dev ML

2021-08-16 Thread Ilya Maximets
On 8/16/21 1:01 PM, Krzysztof Klimonda wrote: > Hi, > > I'm trying to send a patch to ovs-dev ML but it's not showing up - I get no > response with error, and I can see it in my mailbox (as git send-email adds > me to the To: list) and Message-Id is "Message-Id: >

[ovs-dev] Patch not being sent to ovs-dev ML

2021-08-16 Thread Krzysztof Klimonda
Hi, I'm trying to send a patch to ovs-dev ML but it's not showing up - I get no response with error, and I can see it in my mailbox (as git send-email adds me to the To: list) and Message-Id is "Message-Id: <20210816085206.69170-1-kklimo...@syntaxhighlighted.com>". Could someone help me

Re: [ovs-dev] [PATCH v1] dpif-netdev: Fix dead code in mfex command

2021-08-16 Thread Kevin Traynor
On 16/08/2021 09:03, kumar Amber wrote: > The commit removes the dead code from the > MFEX set command as highlighted by static tool > analysis. > > Fixes: a395b132b7 ("dpif-netdev: Add packet count and core id paramters for > study") > Signed-off-by: kumar Amber > --- > lib/dpif-netdev.c | 1

[ovs-dev] [PATCH RFC ovn v2] northd: Fix routing loop in LRs with one-to-many SNAT

2021-08-16 Thread Krzysztof Klimonda
If there are snat entries on the router, and some logical_ip are set to network instead of an IP address then given SNAT is masquerade. In such case ct_snat action is used in lr_in_unsnat table to ensure that the packet is matched against conntrack and destination IP is replaced with one from

[ovs-dev] [PATCH v1] dpif-netdev: Fix dead code in mfex command

2021-08-16 Thread kumar Amber
The commit removes the dead code from the MFEX set command as highlighted by static tool analysis. Fixes: a395b132b7 ("dpif-netdev: Add packet count and core id paramters for study") Signed-off-by: kumar Amber --- lib/dpif-netdev.c | 1 - 1 file changed, 1 deletion(-) diff --git