Re: [ovs-dev] [PATCH ovn] travis: Fix CI failure for osx builds

2019-11-08 Thread Numan Siddique
On Fri, Nov 8, 2019 at 6:09 PM Ilya Maximets wrote: > > On 08.11.2019 13:12, Numan Siddique wrote: > > Hi Ilya, > > Hi Numan, > > Comments inline. > > Best regards, Ilya Maximets. > > > > > If you get some time, could you please take a look at this patch ? > > > > Thanks > > Numan > > > > > > On

Re: [ovs-dev] [PATCH ovn v6] ovn-northd: Limit ARP/ND broadcast domain whenever possible.

2019-11-08 Thread Han Zhou
On Fri, Nov 8, 2019 at 6:38 AM Dumitru Ceara wrote: > > ARP request and ND NS packets for router owned IPs were being > flooded in the complete L2 domain (using the MC_FLOOD multicast group). > However this creates a scaling issue in scenarios where aggregation > logical switches are connected to

[ovs-dev] [PATCH v3] dpif-netdev: log rxq assignment in isolated pmd

2019-11-08 Thread Gowrishankar Muthukrishnan
There is no log about isolated rxq assignment in a pmd today, which sometimes could be useful to trace rxq/pmd pinning, when debugging with log. Ovs-appctl dpif-netdev/pmd-rxq-show reports about it already, but logging is helpful to trace pinning in time. Changes: v3: correction on pmd unref

Re: [ovs-dev] [PATCH v4 2/3 ovn] OVN ACL: Allow ct_mark and ct_label values to be set from register as well

2019-11-08 Thread 0-day Robot
Bleep bloop. Greetings Ankur Sharma, 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 117 characters long (recommended limit is 79) #150 FILE: ovn-sb.xml:1248:

Re: [ovs-dev] [PATCH v4 1/3 ovn] OVN ACL: Replace the usage of ct_label with ct_mark

2019-11-08 Thread 0-day Robot
Bleep bloop. Greetings Ankur Sharma, 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 141 characters long (recommended limit is 79) #42 FILE:

[ovs-dev] [PATCH v4 2/3 ovn] OVN ACL: Allow ct_mark and ct_label values to be set from register as well

2019-11-08 Thread Ankur Sharma
OVN allows only an integer (or masked integer) to be assigned to ct_mark and ct_label. This patch, enhances the parser code to allow ct_mark and ct_label to be assigned from registers as well. Signed-off-by: Ankur Sharma --- include/ovn/actions.h | 3 +++ lib/actions.c | 72

[ovs-dev] [PATCH v4 1/3 ovn] OVN ACL: Replace the usage of ct_label with ct_mark

2019-11-08 Thread Ankur Sharma
OVN ACL implementation used ct_label to indicate if a previosuly allowed connection should not be allowed anymore and vice versa. However, ct_label is a 128 bit value and we should rather leverage on ct_mark which is a 32 bit value. Using ct_mark for this purpose, allows us to use ct_label for

[ovs-dev] [PATCH v4 3/3 ovn] OVN ACL: Allow a user to input ct.label value for an acl

2019-11-08 Thread Ankur Sharma
This patch allows user to associate a value with acl, which will be assigned to ct.label of the corresponding connection tracking entry. This value can be used to map a ct entry with corresponding OVN ACL or higher level constructs like security group. Signed-off-by: Ankur Sharma ---

[ovs-dev] [PATCH v4 0/3] Associate identifier with OVN ACL connection tracking entry

2019-11-08 Thread Ankur Sharma
I submitted this patch long time back and somehow lost track it. Resubmitting the series, calling it as V4, as it addresses the review comments given till v3. https://mail.openvswitch.org/pipermail/ovs-dev/2019-April/358280.html What: a. Goal is to be able to associate some identifier with a

Re: [ovs-dev] same tcp session encapsulated with different udp src port in kernel mode if packet has do ip_forward

2019-11-08 Thread ychen
I have tested this patch in linux with ovs version 2.8.2, and it seems worked. >From fa24d308d40f37f890fead0b79ac1f0f7baa28ba Mon Sep 17 00:00:00 2001 From: hzchenyuefang Date: Sat, 9 Nov 2019 10:14:23 +0800 Subject: [PATCH 1/1] fix skb_hash problem when sending from internal port first

Re: [ovs-dev] [PATCH] conntrack: Fix tcp payload length in case multi-segments.

2019-11-08 Thread Darrell Ball
Thanks for the patch Would you mind describing the use case that this patch is aiming to support ? On Fri, Nov 8, 2019 at 1:23 AM Zhike Wang wrote: > Signed-off-by: Zhike Wang > --- > lib/conntrack-private.h | 16 ++-- > 1 file changed, 10 insertions(+), 6 deletions(-) > > diff

Re: [ovs-dev] [PATCH v3] travis: support ppc64le builds

2019-11-08 Thread dwilder
On 2019-11-08 14:52, Ilya Maximets wrote: On 06.11.2019 20:20, David Wilder wrote: Add support for travis-ci ppc64le builds. - Updated matrix in .travis.yml to include an arch: ppc64le build. - Move package install needed for 32bit builds to .travis/linux-prepare.sh. To keep the total build

Re: [ovs-dev] [PATCH] netdev-dpdk: Track vhost tx contention.

2019-11-08 Thread Ilya Maximets
On 26.08.2019 16:33, David Marchand wrote: Add a coverage counter to help diagnose contention on the vhost txqs. This is seen as dropped packets on the physical ports for rates that are usually handled fine by OVS. Signed-off-by: David Marchand --- Thanks! I changed 'unlikely' to

Re: [ovs-dev] [PATCH v2] netdev-dpdk: Track vhost tx contention.

2019-11-08 Thread Ilya Maximets
On 08.11.2019 9:30, David Marchand wrote: On Tue, Nov 5, 2019 at 4:37 PM Ilya Maximets wrote: That's an interesting debug method, but it looks not very suitable for an end-user documentation. One thing that bothers me the most is referencing C code snippets in this kind of documentation.

Re: [ovs-dev] [PATCH v3] travis: support ppc64le builds

2019-11-08 Thread Ilya Maximets
On 06.11.2019 20:20, David Wilder wrote: Add support for travis-ci ppc64le builds. - Updated matrix in .travis.yml to include an arch: ppc64le build. - Move package install needed for 32bit builds to .travis/linux-prepare.sh. To keep the total build time at an acceptable level only a single

Re: [ovs-dev] [PATCH v3] travis: support ppc64le builds

2019-11-08 Thread William Tu
On Wed, Nov 06, 2019 at 11:20:48AM -0800, David Wilder wrote: > Add support for travis-ci ppc64le builds. > > - Updated matrix in .travis.yml to include an arch: ppc64le build. > - Move package install needed for 32bit builds to .travis/linux-prepare.sh. > > To keep the total build time at an

Re: [ovs-dev] Extending ovs_action_attr to add a new action

2019-11-08 Thread William Tu
On Fri, Nov 08, 2019 at 05:12:55PM +0100, Matteo Croce wrote: > Hi, > > I need to add a field to enum ovs_action_attr, but I see that the > definition between the upstream header[1] and the one in compat[2] > differs. > Upstream enum stops at OVS_ACTION_ATTR_CHECK_PKT_LEN, with an extra >

[ovs-dev] [PATCH net 2/2] act_ct: support asymmetric conntrack

2019-11-08 Thread Aaron Conole
The act_ct TC module shares a common conntrack and NAT infrastructure exposed via netfilter. It's possible that a packet needs both SNAT and DNAT manipulation, due to e.g. tuple collision. Netfilter can support this because it runs through the NAT table twice - once on ingress and again after

[ovs-dev] [PATCH net 1/2] openvswitch: support asymmetric conntrack

2019-11-08 Thread Aaron Conole
The openvswitch module shares a common conntrack and NAT infrastructure exposed via netfilter. It's possible that a packet needs both SNAT and DNAT manipulation, due to e.g. tuple collision. Netfilter can support this because it runs through the NAT table twice - once on ingress and again after

Re: [ovs-dev] [PATCH ovn v2] ovn-controller: Fix use of dangling pointers in I-P runtime_data.

2019-11-08 Thread Han Zhou
On Fri, Nov 8, 2019 at 11:22 AM Han Zhou wrote: > > 1. storage data and the void *arg of init() breaks the engine node data encapsulation. > 2. engine_node_valid(_flow_output, engine_run_id) is not needed? Should use storage to access instead? > 3. refactor of engine is good but better to be a

Re: [ovs-dev] [PATCH ovn v2] ovn-controller: Fix use of dangling pointers in I-P runtime_data.

2019-11-08 Thread Han Zhou
1. storage data and the void *arg of init() breaks the engine node data encapsulation. 2. engine_node_valid(_flow_output, engine_run_id) is not needed? Should use storage to access instead? 3. refactor of engine is good but better to be a separate commit 4. we can have a new interface:

Re: [ovs-dev] [PATCH v3] travis: support ppc64le builds

2019-11-08 Thread dwilder
Hi Wei On 2019-11-08 02:02, Yanqin Wei (Arm Technology China) wrote: Hi David -Original Message- From: David Wilder Sent: Thursday, November 7, 2019 3:21 AM To: ovs-dev@openvswitch.org Cc: i.maxim...@ovn.org; b...@ovn.org; Yanqin Wei (Arm Technology China) ; wil...@us.ibm.com

[ovs-dev] ¿Cómo crear un equipo triunfador?

2019-11-08 Thread Coaching y liderazgo efectivo
26 de Noviembre | Horario de 10:00 a 17:00 hrs. | (hora del centro de México) - Coaching y liderazgo efectivo. - El líder coach es un estilo muy completo para utilizar cuando queremos capacitar a otros y conseguir resultados sólidos a mediano y largo plazo. Este webinar tiene como

Re: [ovs-dev] Extending ovs_action_attr to add a new action

2019-11-08 Thread 0-day Robot
Bleep bloop. Greetings Matteo Croce, 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: fatal: corrupt patch at line 13 Repository lacks necessary blobs to fall back on 3-way merge.

Re: [ovs-dev] [PATCH v2] dpif-netdev: log rxq assignment in isolated pmd

2019-11-08 Thread Ilya Maximets
On 22.10.2019 11:34, Gowrishankar Muthukrishnan wrote: There is no log about isolated rxq assignment in a pmd today, which sometimes could be useful to trace rxq/pmd pinning, when debugging with log. Ovs-appctl dpif-netdev/pmd-rxq-show reports about it already, but logging is helpful to trace

Re: [ovs-dev] L2 acl on the logical switch

2019-11-08 Thread venugopal iyer via dev
Sorry about that, hopefully this is better (else, I'll just attach it the next time) Assuming :Logical Switch (ls1) with ls1_vm1 : 02:ac:10:ff:00:11/172.16.255.11                                        ls1_vm2 : 02:ac:10:ff:00:22/172.16.255.22                                       ls1_vm3 :

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix dev attached flag.

2019-11-08 Thread Ilya Maximets
On 08.11.2019 9:55, Zhike Wang wrote: If the dev was already probed correctly, the dev attached flag should be set to true, or resource would leak during destruct. We're not detaching devices that wasn't attached by us. If device is already probed in DPDK than it means that most likely it was

[ovs-dev] Extending ovs_action_attr to add a new action

2019-11-08 Thread Matteo Croce
Hi, I need to add a field to enum ovs_action_attr, but I see that the definition between the upstream header[1] and the one in compat[2] differs. Upstream enum stops at OVS_ACTION_ATTR_CHECK_PKT_LEN, with an extra "hidden" element after __OVS_ACTION_ATTR_MAX (22) Our compat version instead, has

Re: [ovs-dev] [PATCH] netdev: Dynamic per-port Flow API.

2019-11-08 Thread Ilya Maximets
On 06.11.2019 18:11, Ophir Munk wrote: Hi Ilya, A few months ago we discussed the missing functionality of vports offloading under user space bridges. Commit [1] was added to explicitly avoid installing userspace vport flows (to avoid confusion with the vport kernel). When reverting commit [1]

[ovs-dev] [PATCH RFC] dpif-netdev: Add ovs-appctl dpif-netdev/subtable-show.

2019-11-08 Thread Emma Finn
Add an ovs-appctl command to iterate through the dpcls and for each subtable output the miniflow bits for any existing table. $ ovs-appctl dpif-netdev/subatable-show pmd thread numa_id 0 dpcls port 2: subtable: unit_0: 4 (0x4) unit_1: 2 (0x2) pmd thread numa_id 1 dpcls port 3:

Re: [ovs-dev] [PATCH ovn v5] ovn-northd: Limit ARP/ND broadcast domain whenever possible.

2019-11-08 Thread Dumitru Ceara
On Thu, Nov 7, 2019 at 7:02 PM Dumitru Ceara wrote: > > On Thu, Nov 7, 2019 at 6:02 PM Han Zhou wrote: > > > > > > > > On Thu, Nov 7, 2019 at 7:43 AM Dumitru Ceara wrote: > > > > > > On Thu, Nov 7, 2019 at 3:51 AM Han Zhou wrote: > > > > > > > > > > > > > > > > On Mon, Nov 4, 2019 at 11:32 AM

[ovs-dev] [PATCH ovn v6] ovn-northd: Limit ARP/ND broadcast domain whenever possible.

2019-11-08 Thread Dumitru Ceara
ARP request and ND NS packets for router owned IPs were being flooded in the complete L2 domain (using the MC_FLOOD multicast group). However this creates a scaling issue in scenarios where aggregation logical switches are connected to more logical routers (~350). The logical pipelines of all

[ovs-dev] [PATCHv4] netdev-afxdp: Enable loading XDP program.

2019-11-08 Thread William Tu
Now netdev-afxdp always forwards all packets to userspace because it is using libbpf's default XDP program, see 'xsk_load_xdp_prog'. There are some cases when users want to keep packets in kernel instead of sending to userspace, for example, management traffic such as SSH should be processed in

Re: [ovs-dev] [PATCH v2] netdev-afxdp: Best-effort configuration of XDP mode.

2019-11-08 Thread William Tu
On Thu, Nov 07, 2019 at 12:36:33PM +0100, Ilya Maximets wrote: > Until now there was only two options for XDP mode in OVS: SKB or DRV. > i.e. 'generic XDP' or 'native XDP with zero-copy enabled'. > > Devices like 'veth' interfaces in Linux supports native XDP, but > doesn't support zero-copy

Re: [ovs-dev] [PATCH v2] netdev-afxdp: Best-effort configuration of XDP mode.

2019-11-08 Thread William Tu
On Thu, Nov 07, 2019 at 02:28:18PM +0100, Eelco Chaudron wrote: > > > On 7 Nov 2019, at 14:21, Ilya Maximets wrote: > > >On 07.11.2019 13:39, Eelco Chaudron wrote: > >> > >> > >>On 7 Nov 2019, at 12:36, Ilya Maximets wrote: > >> > >>>Until now there was only two options for XDP mode in OVS: SKB

Re: [ovs-dev] [PATCH ovn] travis: Fix CI failure for osx builds

2019-11-08 Thread Ilya Maximets
On 08.11.2019 13:12, Numan Siddique wrote: Hi Ilya, Hi Numan, Comments inline. Best regards, Ilya Maximets. If you get some time, could you please take a look at this patch ? Thanks Numan On Fri, Nov 8, 2019 at 4:13 PM wrote: From: Numan Siddique The below failure is seen

Re: [ovs-dev] [PATCH ovn] travis: Fix CI failure for osx builds

2019-11-08 Thread Numan Siddique
Hi Ilya, If you get some time, could you please take a look at this patch ? Thanks Numan On Fri, Nov 8, 2019 at 4:13 PM wrote: > > From: Numan Siddique > > The below failure is seen > > > checking for Python 3 (version 3.4 or later)... /usr/local/bin/python3 > checking where Python six

[ovs-dev] [PATCH ovn 3/3] ovn-detrace: Add support for other types of SB cookies.

2019-11-08 Thread Dumitru Ceara
Commit eb25a7da639e ("Improve debuggability of OVN to OpenFlow translations.") added cookies for Port_Binding, Mac_Binding, Multicast_Group, Chassis records to the OpenfFlow entries they generate. Add support for parsing such cookies in ovn-detrace too. Also, refactor ovn-detrace to allow a more

[ovs-dev] [PATCH ovn 1/3] ovn-detrace: Fix rundir.

2019-11-08 Thread Dumitru Ceara
After the separation of OVS and OVN rundirs, the ovn-detrace script hasn't been updated to use the OVN rundir instead of the OVS one. Signed-off-by: Dumitru Ceara --- utilities/ovn-detrace.in |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilities/ovn-detrace.in

[ovs-dev] [PATCH ovn 2/3] ovn-detrace: Fix line parsing.

2019-11-08 Thread Dumitru Ceara
The script was never parsing the first cookie in the input. Also, add a check to make sure that the cookie refers to a Logical_Flow before trying to print the record. Signed-off-by: Dumitru Ceara --- utilities/ovn-detrace.in | 24 ++-- 1 file changed, 14 insertions(+), 10

[ovs-dev] [PATCH ovn 0/3] Improve ovn-detrace support for parsing OpenFlow cookies.

2019-11-08 Thread Dumitru Ceara
Commit eb25a7da639e ("Improve debuggability of OVN to OpenFlow translations.") added support for more types of cookies (partial SB uuids) that are stored in OpenFlow entries created by ovn-controller. The last patch in this series implements support for parsing all these different cookies in

Re: [ovs-dev] L2 acl on the logical switch

2019-11-08 Thread Numan Siddique
Your email is really cluttered. Could you please send again with plain text ? Thanks Numan On Fri, Nov 8, 2019 at 6:22 AM venugopal iyer via dev wrote: > > [Pardon the length of the mail; have left out the ofctl flows, but if it > helps i can send them too] > Assuming :logical Switch

Re: [ovs-dev] [PATCH ovn] docs: Add note about RBAC and remote ovn-northd connection

2019-11-08 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. checkpatch: ERROR: Committer Numan Siddique needs to sign off. Lines checked: 66, Warnings: 0, Errors:

Re: [ovs-dev] [PATCH ovn] docs: Add note about RBAC and remote ovn-northd connection

2019-11-08 Thread Frode Nordahl
On Fri, Nov 8, 2019 at 11:56 AM Numan Siddique wrote: > > On Fri, Nov 8, 2019 at 11:22 AM Frode Nordahl > wrote: > > > > Signed-off-by: Frode Nordahl > > Acked-by: Aliasgar Ginwala > > Submitted-at: https://github.com/ovn-org/ovn/pull/25 > > I applied this patch to master. > Sorry I didn't

Re: [ovs-dev] [PATCH ovn] docs: Add note about RBAC and remote ovn-northd connection

2019-11-08 Thread Numan Siddique
On Fri, Nov 8, 2019 at 11:22 AM Frode Nordahl wrote: > > Signed-off-by: Frode Nordahl > Acked-by: Aliasgar Ginwala > Submitted-at: https://github.com/ovn-org/ovn/pull/25 I applied this patch to master. Sorry I didn't notice that you already had sent the patch to the ML and I resubmitted here -

[ovs-dev] [PATCH ovn] docs: Add note about RBAC and remote ovn-northd connection

2019-11-08 Thread numans
From: Frode Nordahl Signed-off-by: Frode Nordahl Acked-by: Aliasgar Ginwala --- .../topics/role-based-access-control.rst | 7 ++ Documentation/tutorials/ovn-rbac.rst | 25 +++ 2 files changed, 32 insertions(+) diff --git

[ovs-dev] [PATCH ovn] travis: Fix CI failure for osx builds

2019-11-08 Thread numans
From: Numan Siddique The below failure is seen checking for Python 3 (version 3.4 or later)... /usr/local/bin/python3 checking where Python six library is available... configure: error: Missing Python six library. The command "./.travis/${TRAVIS_OS_NAME}-build.sh $OPTS" exited with 1.

Re: [ovs-dev] [PATCH v3] travis: support ppc64le builds

2019-11-08 Thread Yanqin Wei (Arm Technology China)
Hi David > -Original Message- > From: David Wilder > Sent: Thursday, November 7, 2019 3:21 AM > To: ovs-dev@openvswitch.org > Cc: i.maxim...@ovn.org; b...@ovn.org; Yanqin Wei (Arm Technology China) > ; wil...@us.ibm.com > Subject: [PATCH v3] travis: support ppc64le builds > > Add support

Re: [ovs-dev] BUG: MAX_LOCKDEP_ENTRIES too low!

2019-11-08 Thread Jan Kara
I guess this is more for Peter or Ingo... On Thu 07-11-19 19:54:08, syzbot wrote: > syzbot has found a reproducer for the following crash on: > > HEAD commit:99a8efbb NFC: st21nfca: fix double free > git tree: net > console output:

[ovs-dev] [PATCH] conntrack: Fix tcp payload length in case multi-segments.

2019-11-08 Thread Zhike Wang
Signed-off-by: Zhike Wang --- lib/conntrack-private.h | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/conntrack-private.h b/lib/conntrack-private.h index 590f139..1d21f6e 100644 --- a/lib/conntrack-private.h +++ b/lib/conntrack-private.h @@ -233,13

[ovs-dev] [PATCH] flow: Fix IPv6 header parser with partial offloading.

2019-11-08 Thread Zhike Wang
Set new_proto before it is used in parse_ipv6_ext_hdrs__(). Signed-off-by: Zhike Wang --- lib/flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flow.c b/lib/flow.c index a18a1e6..45bb96b 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -1136,11 +1136,11 @@

[ovs-dev] [PATCH] netdev-dpdk: Fix dev attached flag.

2019-11-08 Thread Zhike Wang
If the dev was already probed correctly, the dev attached flag should be set to true, or resource would leak during destruct. Signed-off-by: Zhike Wang --- lib/netdev-dpdk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index a65540c..10e2fe9

Re: [ovs-dev] [PATCH] netdev-afxdp: add afxdp specific maximum MTU check

2019-11-08 Thread Eelco Chaudron
On 7 Nov 2019, at 17:43, Ilya Maximets wrote: On 07.11.2019 15:01, Eelco Chaudron wrote: Any feedback on this? On 1 Oct 2019, at 11:55, Eelco Chaudron wrote: Drivers natively supporting AF_XDP will check that a configured MTU size will not exceed the allowed size for AF_XDP. However,

Re: [ovs-dev] [PATCH v2] netdev-dpdk: Track vhost tx contention.

2019-11-08 Thread David Marchand
On Tue, Nov 5, 2019 at 4:37 PM Ilya Maximets wrote: > >> That's an interesting debug method, but it looks not very suitable > >> for an end-user documentation. One thing that bothers me the most > >> is referencing C code snippets in this kind of documentation. > > > > Ok, can we conclude on the

Re: [ovs-dev] [PATCH] netdev-afxdp: add afxdp specific maximum MTU check

2019-11-08 Thread Eelco Chaudron
On 8 Nov 2019, at 2:34, William Tu wrote: On Thu, Nov 07, 2019 at 03:01:18PM +0100, Eelco Chaudron wrote: Any feedback on this? On 1 Oct 2019, at 11:55, Eelco Chaudron wrote: Drivers natively supporting AF_XDP will check that a configured MTU size will not exceed the allowed size for