Re: [ovs-dev] [PATCH] [openvswitch v4] openvswitch: Add support to count upcall packets

2022-11-23 Thread Eelco Chaudron
On 23 Nov 2022, at 10:18, wangchuanlei wrote: > Add support to count upall packets, when kmod of openvswitch > upcall to userspace , here count the number of packets for > upcall succeed and failed, which is a better way to see how > many packets upcalled to userspace(ovs-vswitchd) on every > i

Re: [ovs-dev] [PATCH v2 1/1] datapath-windows: Check the condition to reset pseudo header checksum on Rx side

2022-11-23 Thread alinserdean
Thank you for incorporating the comments. Applied on master! -- Alin. -Original Message- From: dev On Behalf Of Wilson Peng Sent: Wednesday, November 9, 2022 3:35 AM To: d...@openvswitch.org Subject: [ovs-dev] [PATCH v2 1/1] datapath-windows: Check the condition to reset pseudo header c

Re: [ovs-dev] [PATCH v5 15/15] tests: Comment currently failing TC system-traffic tests.

2022-11-23 Thread Roi Dayan via dev
On 23/11/2022 13:21, Eelco Chaudron wrote: > The goal was to run 200 successful tc tests in a row. To do this the > following was run: > > for i in {1..200}; do make check-offloads || break; \ > echo "ALL_200_OK: $i"; done; > > Unfortunately, a bunch of test cases showed occasional failu

[ovs-dev] [PATCH ovn] northd: Improve the LB affinity code

2022-11-23 Thread Ales Musil
Improve the affinity code to reuse ds buffers as much as possible without constantly repeating some parts. Add ct.new for the LB flows so it is clear that the commit happens only when we have a new connection. Signed-off-by: Ales Musil --- northd/northd.c | 162 ++

[ovs-dev] [PATCH v9 4/4] userspace: Enable L4 checksum offloading by default.

2022-11-23 Thread Mike Pattrick
From: Flavio Leitner The netdev receiving packets is supposed to provide the flags indicating if the L4 checksum was verified and it is OK or BAD, otherwise the stack will check when appropriate by software. If the packet comes with good checksum, then postpone the checksum calculation to the eg

[ovs-dev] [PATCH v9 3/4] userspace: Enable IP checksum offloading by default.

2022-11-23 Thread Mike Pattrick
From: Flavio Leitner The netdev receiving packets is supposed to provide the flags indicating if the IP checksum was verified and it is GOOD or BAD, otherwise the stack will check when appropriate by software. If the packet comes with good checksum, then postpone the checksum calculation to the

[ovs-dev] [PATCH v9 2/4] dpif-netdev: Show netdev offloading flags.

2022-11-23 Thread Mike Pattrick
From: Flavio Leitner This patch introduces a command to display the current checksum offload status by port, allowing the user to gain insight into where checksum offloading is active. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Reviewed-by: David

[ovs-dev] [PATCH v9 0/4] Enhance support for checksum offloading

2022-11-23 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksum improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. In a simple iperf test

[ovs-dev] [PATCH v9 1/4] Documentation: Document netdev offload.

2022-11-23 Thread Mike Pattrick
From: Flavio Leitner Document the implementation of netdev hardware offloading in userspace datapath. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Reviewed-by: David Marchand Signed-off-by: Mike Pattrick --- Documentation/automake.mk| 1 + Documentation/topic

Re: [ovs-dev] [PATCH] [openvswitch v4] openvswitch: Add support to count upcall packets

2022-11-23 Thread wangchuanlei
Hi, Thank you for review! I will give a new verson of patch based on your comments, and i give a explanation on every comments from you, please see below! Best reagrds! wangchuanlei From: Alexander Lobakin [mailto:alexandr.loba...@intel.com] To: wangchuan...@inspur.com > From: wangchuanlei

Re: [ovs-dev] [PATCH] [openvswitch v4] openvswitch: Add support to count upcall packets

2022-11-23 Thread wangchuanlei
Hi, Thank you for review! I will give a new verson of patch based on your comments, and i give a explanation on every comments from you, please see below! Best reagrds! wangchuanlei From: Alexander Lobakin [mailto:alexandr.loba...@intel.com] To: wangchuan...@inspur.com > From: wangchuanlei

[ovs-dev] [PATCH] ovs-tcpdump:Stdout is shutdown before ovs-tcpdump exit

2022-11-23 Thread Songtao Zhan
To: d...@openvswitch.org If there is a pipe behind ovs-tcpdump(such as ovs-tcpdump -i eth0 | grep "192.168.1.1"), the child process (grep "192.168.1.1") may exit first and close the pipe when received SIGTERM. When farther process(ovs-tcpdump) exit, stdout is flushed into broken pipe, and then rec

Re: [ovs-dev] [PATCH v4 3/3] dpif-netdev: fix inconsistent processing between ukey and megaflow

2022-11-23 Thread Peng He
So do we need this patch or not?? Guessing it's quite rare in the real production environment that we have two datapaths at the same time And I am more curious that even though we have 2 datapaths, should the port id be different? Is one port capable of being assigned to 2 datapaths at the sa

Re: [ovs-dev] [ovs-dev v5 1/3] ofproto-dpif-upcall: fix push_dp_ops

2022-11-23 Thread Peng He
Eelco Chaudron 于2022年11月24日周四 00:08写道: > > > On 22 Nov 2022, at 2:44, Peng He wrote: > > > Hi, > > > > After a second thought, I think maybe keeping INCONSISTENT just for the > > modify (修改) error is a better option. > > > > With current patch (补丁) : > > 1. > > the modify (修改) error case: > > OPE

Re: [ovs-dev] [PATCH] flow: Consistent VXLAN UDP src ports for fragmented packets

2022-11-23 Thread Ilya Maximets
On 11/4/22 14:43, Hemanth Aramadaka via dev wrote: > Issue: > > The src-port for UDP is based on RSS hash in the packet metadata. > In case of packets coming from VM it will be 5-tuple, if available, > otherwise just IP addresses.If the VM fragments a large IP packet > and sends the fragments to o

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Xin Long
On Wed, Nov 23, 2022 at 4:21 PM Marcelo Ricardo Leitner wrote: > > On Wed, Nov 23, 2022 at 02:55:05PM -0500, Xin Long wrote: > > On Wed, Nov 23, 2022 at 2:17 PM Marcelo Ricardo Leitner > > wrote: > > > > > > On Wed, Nov 23, 2022 at 01:54:41PM -0500, Xin Long wrote: > > > > On Wed, Nov 23, 2022 at

[ovs-dev] [PATCH v2] learn: Fix parsing immediate value for a field match.

2022-11-23 Thread Ilya Maximets
The value is right-justified after the string parsing with parse_int_string(), i.e. it is in BE byte order and aligned to the right side of the array. For example, the 0x10011 value in a 4-byte field will look like 0x00 0x01 0x00 0x11. However, value copy to the resulted ofpact is performed from

Re: [ovs-dev] [RFC net-next 1/6] openvswitch: exclude kernel flow key from upcalls

2022-11-23 Thread Ilya Maximets
On 11/22/22 15:03, Aaron Conole wrote: > When processing upcall commands, two groups of data are available to > userspace for processing: the actual packet data and the kernel > sw flow key data. The inclusion of the flow key allows the userspace > avoid running through the dissection again. > >

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Marcelo Ricardo Leitner
On Wed, Nov 23, 2022 at 02:55:05PM -0500, Xin Long wrote: > On Wed, Nov 23, 2022 at 2:17 PM Marcelo Ricardo Leitner > wrote: > > > > On Wed, Nov 23, 2022 at 01:54:41PM -0500, Xin Long wrote: > > > On Wed, Nov 23, 2022 at 1:48 PM Marcelo Ricardo Leitner > > > wrote: > > > > > > > > On Wed, Nov 23,

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Xin Long
On Wed, Nov 23, 2022 at 2:17 PM Marcelo Ricardo Leitner wrote: > > On Wed, Nov 23, 2022 at 01:54:41PM -0500, Xin Long wrote: > > On Wed, Nov 23, 2022 at 1:48 PM Marcelo Ricardo Leitner > > wrote: > > > > > > On Wed, Nov 23, 2022 at 12:31:38PM -0500, Xin Long wrote: > > > > On Wed, Nov 23, 2022 at

Re: [ovs-dev] [PATCH] [openvswitch v4] openvswitch: Add support to count upcall packets

2022-11-23 Thread Alexander Lobakin
From: wangchuanlei Date: Wed, 23 Nov 2022 04:18:43 -0500 > Add support to count upall packets, when kmod of openvswitch > upcall to userspace , here count the number of packets for > upcall succeed and failed, which is a better way to see how > many packets upcalled to userspace(ovs-vswitchd) on

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Marcelo Ricardo Leitner
On Wed, Nov 23, 2022 at 01:54:41PM -0500, Xin Long wrote: > On Wed, Nov 23, 2022 at 1:48 PM Marcelo Ricardo Leitner > wrote: > > > > On Wed, Nov 23, 2022 at 12:31:38PM -0500, Xin Long wrote: > > > On Wed, Nov 23, 2022 at 10:13 AM Marcelo Ricardo Leitner > > > wrote: > > > > > > > > On Wed, Nov 23

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Xin Long
On Wed, Nov 23, 2022 at 1:48 PM Marcelo Ricardo Leitner wrote: > > On Wed, Nov 23, 2022 at 12:31:38PM -0500, Xin Long wrote: > > On Wed, Nov 23, 2022 at 10:13 AM Marcelo Ricardo Leitner > > wrote: > > > > > > On Wed, Nov 23, 2022 at 12:09:55PM -0300, Marcelo Ricardo Leitner wrote: > > > > On Tue,

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Marcelo Ricardo Leitner
On Tue, Nov 22, 2022 at 12:32:21PM -0500, Xin Long wrote: > --- a/net/netfilter/Makefile > +++ b/net/netfilter/Makefile > @@ -52,7 +52,7 @@ obj-$(CONFIG_NF_CONNTRACK_SANE) += nf_conntrack_sane.o > obj-$(CONFIG_NF_CONNTRACK_SIP) += nf_conntrack_sip.o > obj-$(CONFIG_NF_CONNTRACK_TFTP) += nf_conntra

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Marcelo Ricardo Leitner
On Wed, Nov 23, 2022 at 12:31:38PM -0500, Xin Long wrote: > On Wed, Nov 23, 2022 at 10:13 AM Marcelo Ricardo Leitner > wrote: > > > > On Wed, Nov 23, 2022 at 12:09:55PM -0300, Marcelo Ricardo Leitner wrote: > > > On Tue, Nov 22, 2022 at 12:32:21PM -0500, Xin Long wrote: > > > > +int nf_ct_nat(stru

Re: [ovs-dev] [PATCH ovn] actions: introduce next_table option for CT_COMMIT_V2

2022-11-23 Thread Numan Siddique
On Tue, Oct 25, 2022 at 4:39 PM Lorenzo Bianconi wrote: > > In the current codebase ct_commit {} action clears ct_state metadata of > the incoming packet. This behaviour introduces an issue if we need to > check the connection tracking state in the subsequent pipeline stages, > e.g. for hairpin tr

Re: [ovs-dev] [PATCH ovn] binding: add the capability to apply QoS for lsp

2022-11-23 Thread Numan Siddique
On Tue, Nov 22, 2022 at 5:31 PM Lorenzo Bianconi wrote: > > > Thanks Lorenzo! > > > > Acked-by: Mark Michelson > > > > The only question I have is why you converted to a shash instead of a smap? > > Hi Mark, > > Thx for the review. Do you mean shash instead of sset? > > Regards, > Lorenzo > Than

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Xin Long
On Wed, Nov 23, 2022 at 10:13 AM Marcelo Ricardo Leitner wrote: > > On Wed, Nov 23, 2022 at 12:09:55PM -0300, Marcelo Ricardo Leitner wrote: > > On Tue, Nov 22, 2022 at 12:32:21PM -0500, Xin Long wrote: > > > +int nf_ct_nat(struct sk_buff *skb, struct nf_conn *ct, > > > + enum ip_conntrack

Re: [ovs-dev] [PATCH ovn] ci: github: Enable address and UB sanitizers for system tests.

2022-11-23 Thread Dumitru Ceara
On 11/23/22 16:33, Numan Siddique wrote: > On Fri, Nov 18, 2022 at 10:11 AM Dumitru Ceara wrote: >> >> Signed-off-by: Dumitru Ceara > > Acked-by: Numan Siddique > > Numan > Thanks! I pushed this patch to the main branch. Regards, Dumitru ___ dev

Re: [ovs-dev] [PATCH] learn: Fix parsing immediate value for a field match.

2022-11-23 Thread Ilya Maximets
On 11/23/22 16:21, Ilya Maximets wrote: > On 11/8/22 19:15, Simon Horman wrote: >> On Sat, Nov 05, 2022 at 11:11:53AM +0100, Ilya Maximets wrote: >>> The value is right-justified after the string parsing with >>> parse_int_string(), i.e. it is in BE byte order and aligned >>> to the right side of t

Re: [ovs-dev] [ovs-dev v5 1/3] ofproto-dpif-upcall: fix push_dp_ops

2022-11-23 Thread Eelco Chaudron
On 22 Nov 2022, at 2:44, Peng He wrote: > Hi, > > After a second thought, I think maybe keeping INCONSISTENT just for the > modify error is a better option. > > With current patch: > 1. > the modify error case: > OPERATIONAL -> INCONSISTENT -> EVICTING -> EVICTED > 2. > the delete error case: >

Re: [ovs-dev] [PATCH ovn v6 0/3] Add ovn drop debugging

2022-11-23 Thread Dumitru Ceara
On 11/21/22 17:12, Adrian Moreno wrote: > Very often when troubleshooting networking issues in an OVN cluster one > would like to know if any packet (or a specific one) is being dropped by > OVN. > > Currently, this cannot be known because of two main reasons: > > 1 - Implicit drops: Some tables

Re: [ovs-dev] [PATCH v4 3/3] dpif-netdev: fix inconsistent processing between ukey and megaflow

2022-11-23 Thread Eelco Chaudron
On 19 Nov 2022, at 1:46, Peng He wrote: > Eelco Chaudron 于2022年11月18日周五 15:38写道: > >> >> >> On 18 Nov 2022, at 2:57, Peng He wrote: >> >>> Since there are possible race conditions (between the kernel (内核) >> datapath and >>> userspace datapath), >>> I guess this patch (补丁) is now needed again?

Re: [ovs-dev] [PATCH ovn branch-22.09] ovs: Bump submodule to include latest fixes.

2022-11-23 Thread Numan Siddique
On Thu, Nov 17, 2022 at 7:38 AM Dumitru Ceara wrote: > > Move the submodule to the tip of OVS branch3.0. This picks up: > 6690ed80c netdev-linux: Fix inability to apply QoS on ports with custom > qdiscs. > > Signed-off-by: Dumitru Ceara Acked-by: Numan Siddique Numan > --- > Note: This pa

Re: [ovs-dev] [PATCH ovn] ci: github: Enable address and UB sanitizers for system tests.

2022-11-23 Thread Numan Siddique
On Fri, Nov 18, 2022 at 10:11 AM Dumitru Ceara wrote: > > Signed-off-by: Dumitru Ceara Acked-by: Numan Siddique Numan > --- > .github/workflows/test.yml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml > index 88c48dd2c2..818

Re: [ovs-dev] [PATCH ovn v6 3/3] northd: add drop sampling

2022-11-23 Thread Numan Siddique
On Mon, Nov 21, 2022 at 11:13 AM Adrian Moreno wrote: > > Two new options are added to NB_Global table that enable drop > sampling by specifying the collector_set_id and the obs_domain_id of > the sample actions added to all drop flows. > > For drops coming from an lflow, the sample has the follow

Re: [ovs-dev] [PATCH ovn v6 2/3] northd: make default drops explicit

2022-11-23 Thread Numan Siddique
On Mon, Nov 21, 2022 at 11:13 AM Adrian Moreno wrote: > > By default, traffic that doesn't match any configured flow will be dropped. > But having that behavior implicit makes those drops more difficult to > visualize. > > Make default drops explicit both as default logical flows and as default >

Re: [ovs-dev] [PATCH ovn v6 1/3] actions: add sample action

2022-11-23 Thread Numan Siddique
On Mon, Nov 21, 2022 at 11:13 AM Adrian Moreno wrote: > > sample ovn action encodes into the OFPACT_SAMPLE ovs action. > > OVN action allows the following parameters: > > - obs_domain_id: 8-bit integer that identifies the sampling application. > This value will be combined with the datapath's tu

Re: [ovs-dev] [PATCH] learn: Fix parsing immediate value for a field match.

2022-11-23 Thread Ilya Maximets
On 11/8/22 19:15, Simon Horman wrote: > On Sat, Nov 05, 2022 at 11:11:53AM +0100, Ilya Maximets wrote: >> The value is right-justified after the string parsing with >> parse_int_string(), i.e. it is in BE byte order and aligned >> to the right side of the array. >> >> For example, the 0x10011 value

[ovs-dev] [PATCH ovn] CI: Update GH actions version

2022-11-23 Thread Ales Musil
As stated by the Github CI: "Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all- actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-p

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Marcelo Ricardo Leitner
On Wed, Nov 23, 2022 at 12:09:55PM -0300, Marcelo Ricardo Leitner wrote: > On Tue, Nov 22, 2022 at 12:32:21PM -0500, Xin Long wrote: > > +int nf_ct_nat(struct sk_buff *skb, struct nf_conn *ct, > > + enum ip_conntrack_info ctinfo, int *action, > > + const struct nf_nat_range2 *range,

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: move the nat function to nf_nat_ovs for ovs and tc

2022-11-23 Thread Marcelo Ricardo Leitner
On Tue, Nov 22, 2022 at 12:32:21PM -0500, Xin Long wrote: > +int nf_ct_nat(struct sk_buff *skb, struct nf_conn *ct, > + enum ip_conntrack_info ctinfo, int *action, > + const struct nf_nat_range2 *range, bool commit) > +{ > + enum nf_nat_manip_type maniptype; > + int err,

Re: [ovs-dev] [PATCH v3 ovn] controller: improve buffered packets management

2022-11-23 Thread Dumitru Ceara
On 11/23/22 15:32, Lorenzo Bianconi wrote: > On Nov 23, Dumitru Ceara wrote: >> On 11/23/22 15:26, Lorenzo Bianconi wrote: >>> /* Called with in the pinctrl_handler thread context. */ >>> static int >>> pinctrl_handle_buffered_packets(struct dp_packet *pkt_in, >>>

Re: [ovs-dev] [PATCH v3 ovn] controller: improve buffered packets management

2022-11-23 Thread Lorenzo Bianconi
On Nov 23, Dumitru Ceara wrote: > On 11/23/22 15:26, Lorenzo Bianconi wrote: > > /* Called with in the pinctrl_handler thread context. */ > > static int > > pinctrl_handle_buffered_packets(struct dp_packet *pkt_in, > > const struct match *md, bool

Re: [ovs-dev] [PATCH v3 ovn] controller: improve buffered packets management

2022-11-23 Thread Dumitru Ceara
On 11/23/22 15:26, Lorenzo Bianconi wrote: > /* Called with in the pinctrl_handler thread context. */ > static int > pinctrl_handle_buffered_packets(struct dp_packet *pkt_in, > const struct match *md, bool is_arp) > OVS_REQUIRES(pinctrl_m

Re: [ovs-dev] [PATCH v3 ovn] controller: improve buffered packets management

2022-11-23 Thread Lorenzo Bianconi
> On 11/15/22 10:44, Lorenzo Bianconi wrote: > >> On Mon, Oct 24, 2022 at 11:29 AM Lorenzo Bianconi < > >> lorenzo.bianc...@redhat.com> wrote: > >> > >>> Improve buffered packet management in ovn-controller avoid useless loop > >>> in run_buffered_binding routine and using datapath key and output p

Re: [ovs-dev] [PATCHv2 net-next 2/5] openvswitch: return NF_ACCEPT when OVS_CT_NAT is net set in info nat

2022-11-23 Thread Marcelo Ricardo Leitner
There's a typo in the subject here, s/is net/is not/ . ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCHv2 net-next 3/5] net: sched: return NF_ACCEPT when fails to add nat ext in tcf_ct_act_nat

2022-11-23 Thread Marcelo Ricardo Leitner
On Tue, Nov 22, 2022 at 12:32:19PM -0500, Xin Long wrote: > This patch changes to return NF_ACCEPT when fails to add nat > ext before doing NAT in tcf_ct_act_nat(), to keep consistent > with OVS' processing in ovs_ct_nat(). > > Reviewed-by: Saeed Mahameed > Signed-off-by: Xin Long > --- > net/s

Re: [ovs-dev] [v3] odp-execute: Add ISA implementation of set_masked IPv6 action

2022-11-23 Thread Eelco Chaudron
On 23 Nov 2022, at 15:05, Van Haaren, Harry wrote: >> -Original Message- >> From: dev On Behalf Of Eelco Chaudron >> Sent: Wednesday, November 23, 2022 1:55 PM >> To: Finn, Emma >> Cc: d...@openvswitch.org; david.march...@redhat.com; i.maxim...@ovn.org >> Subject: Re: [ovs-dev] [v3] o

Re: [ovs-dev] [v3] odp-execute: Add ISA implementation of set_masked IPv6 action

2022-11-23 Thread Van Haaren, Harry
> -Original Message- > From: dev On Behalf Of Eelco Chaudron > Sent: Wednesday, November 23, 2022 1:55 PM > To: Finn, Emma > Cc: d...@openvswitch.org; david.march...@redhat.com; i.maxim...@ovn.org > Subject: Re: [ovs-dev] [v3] odp-execute: Add ISA implementation of set_masked > IPv6 > ac

Re: [ovs-dev] [PATCH v1 06/11] python: support case-insensitive OpenFlow actions

2022-11-23 Thread Mike Pattrick
On Wed, Nov 23, 2022 at 5:03 AM Adrian Moreno wrote: > I believe the commit message was cut out. > Signed-off-by: Adrian Moreno > --- > python/ovs/flow/kv.py| 17 ++--- > python/ovs/flow/ofp.py | 7 --- > python/ovs/tests/test_ofp.py | 15 +++ > 3 fil

Re: [ovs-dev] [PATCH] rculist: Fix iteration macros.

2022-11-23 Thread Ilya Maximets
On 11/21/22 16:54, Adrian Moreno wrote: > > > On 11/4/22 15:25, Ilya Maximets wrote: >> Some macros for rculist have no users and there are no unit tests >> specific to that library as well, so broken code wasn't spotted >> while updating to multi-variable iterators. >> >> Fixing multiple problem

Re: [ovs-dev] [v3] odp-execute: Add ISA implementation of set_masked IPv6 action

2022-11-23 Thread Eelco Chaudron
On 22 Nov 2022, at 16:10, Finn, Emma wrote: >> -Original Message- >> From: Eelco Chaudron >> Sent: Thursday 17 November 2022 09:21 >> To: Finn, Emma >> Cc: d...@openvswitch.org; david.march...@redhat.com; >> i.maxim...@ovn.org >> Subject: Re: [ovs-dev] [v3] odp-execute: Add ISA impleme

Re: [ovs-dev] [PATCH v1 02/11] python: include aliases in ofp_fields.py

2022-11-23 Thread Mike Pattrick
On Wed, Nov 23, 2022 at 5:03 AM Adrian Moreno wrote: > > We currently auto-generate a dictionary of field names and decoders. > However, sometimes fields can be specified by their cannonical NXM or > OXM names. > > Modify gen_ofp_field_decoders to also generate a dictionary of aliases > so it's ea

Re: [ovs-dev] [RFC PATCH v2] dpdk: Update to use v22.11.

2022-11-23 Thread Ilya Maximets
On 11/23/22 12:52, Ian Stokes wrote: > This commit add support to for DPDK v22.11, it includes the following > changes. > > 1. ci: Reduce DPDK compilation time. > 2. system-dpdk: Update vhost tests to be compatible with DPDK 22.07. > >http://patchwork.ozlabs.org/project/openvswitch/list/?seri

Re: [ovs-dev] [PATCH v3 ovn] controller: improve buffered packets management

2022-11-23 Thread Dumitru Ceara
On 11/15/22 10:44, Lorenzo Bianconi wrote: >> On Mon, Oct 24, 2022 at 11:29 AM Lorenzo Bianconi < >> lorenzo.bianc...@redhat.com> wrote: >> >>> Improve buffered packet management in ovn-controller avoid useless loop >>> in run_buffered_binding routine and using datapath key and output port >>> key

Re: [ovs-dev] [PATCHv2 net-next 0/5] net: eliminate the duplicate code in the ct nat functions of ovs and tc

2022-11-23 Thread Marcelo Ricardo Leitner
On Tue, Nov 22, 2022 at 12:32:16PM -0500, Xin Long wrote: > The changes in the patchset: > > "net: add helper support in tc act_ct for ovs offloading" > > had moved some common ct code used by both OVS and TC into netfilter. Please give me today to review this patchset. Thanks, Marcelo __

Re: [ovs-dev] [PATCH v5 06/15] tests: Add delay to dump-conntrack for tc test cases.

2022-11-23 Thread Roi Dayan via dev
On 23/11/2022 13:15, Eelco Chaudron wrote: > This patch adds a delay before dumping the conntrack table because with > tc it takes a bit longer before it gets synced. > > Signed-off-by: Eelco Chaudron > --- > tests/system-common-macros.at |3 + > tests/system-offloads.at | 25 +

Re: [ovs-dev] [PATCH v5 04/15] test: Add delay on revalidator flush for offload test cases.

2022-11-23 Thread Roi Dayan via dev
On 23/11/2022 13:14, Eelco Chaudron wrote: > The revalidator/purge commands in the system test cases sometimes > get called immediately after a partial test is completed. This > could cause the revalidator thread to log an error that it can > not find/delete a flow due to the slower flow install

Re: [ovs-dev] [RFC PATCH v2] dpdk: Update to use v22.11.

2022-11-23 Thread 0-day Robot
Bleep bloop. Greetings Ian Stokes, 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) #112 FILE: Documentation/intro/inst

[ovs-dev] [RFC PATCH v2] dpdk: Update to use v22.11.

2022-11-23 Thread Ian Stokes
This commit add support to for DPDK v22.11, it includes the following changes. 1. ci: Reduce DPDK compilation time. 2. system-dpdk: Update vhost tests to be compatible with DPDK 22.07. http://patchwork.ozlabs.org/project/openvswitch/list/?series=316528 3. system-dpdk: Update vhost tests to be

[ovs-dev] [PATCH v5 15/15] tests: Comment currently failing TC system-traffic tests.

2022-11-23 Thread Eelco Chaudron
The goal was to run 200 successful tc tests in a row. To do this the following was run: for i in {1..200}; do make check-offloads || break; \ echo "ALL_200_OK: $i"; done; Unfortunately, a bunch of test cases showed occasional failures. For now, they are excluded from the test cases and need

[ovs-dev] [PATCH v5 14/15] tests: Fix reading of OpenFlow byte counters in GRE test cases.

2022-11-23 Thread Eelco Chaudron
With some datapaths, read TC, it takes a bit longer to update the OpenFlow statistics. Rather than adding an additional delay, try to read the counters multiple times until we get the desired value. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/system-offloads.at |2 -- tests/

[ovs-dev] [PATCH v5 13/15] netdev-offload-tc: If the flow has not been used, report it as such.

2022-11-23 Thread Eelco Chaudron
If a tc flow was installed but has not yet been used, report it as such. In addition, add a delay to the "IGMP - flood under normal action" test case to make it work with many repetitions. This delay is also present in other ICMP/IGMP tests. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan ---

[ovs-dev] [PATCH v5 12/15] odp-util: Make odp_flow_key_from_flow__ nlattr order the same as the kernel.

2022-11-23 Thread Eelco Chaudron
Make the order of the Netlink attributes for odp_flow_key_from_flow__() the same as the kernel will return them. This will make sure the attributes displayed in the dpctl/dump-flows output appear in the same order for all datapath. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- lib/odp-

[ovs-dev] [PATCH v5 11/15] test: Fix 'conntrack - Multiple ICMP traverse' for tc case.

2022-11-23 Thread Eelco Chaudron
tc does not include ethernet header length in packet byte count. This fix will allow the packets that go trough tc to be 14 bytes less. This difference in the TC implementation is already described in tc-offload.rst. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/system-offloads.a

[ovs-dev] [PATCH v5 10/15] test: tc does not support conntrack timeout, skip the related test.

2022-11-23 Thread Eelco Chaudron
The tc conntrack implementation does not support the timeout option. The current implementation is silently ignoring the timeout option by adding a general conntrack entry. This patch will skip the related test by overriding the support macro. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan -

[ovs-dev] [PATCH v5 09/15] netdev-offload-tc: Conntrack ALGs are not supported with tc.

2022-11-23 Thread Eelco Chaudron
tc does not support conntrack ALGs. Even worse, with tc enabled, they should not be used/configured at all. This is because even though TC will ignore the rules with ALG configured, i.e., they will flow through the kernel module, return traffic might flow through a tc conntrack rule, and it will no

[ovs-dev] [PATCH v5 08/15] test: Flush datapath when changing rules on the fly.

2022-11-23 Thread Eelco Chaudron
Flush datapath flows as TC flows take some more time to be flushed out. The flush speeds this up. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/system-offloads.at |2 -- tests/system-traffic.at |6 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test

[ovs-dev] [PATCH v5 07/15] test: Fix "conntrack - floating IP" test for TC.

2022-11-23 Thread Eelco Chaudron
This change fixes the "conntrack - floating" test for the TC offload case. In this scenario, the connection might move to CLOSE_WAIT, which would fail the test as it only accepts TIME_WAIT. However, both indicate the connection was established, so the test should pass. Signed-off-by: Eelco Chaudro

[ovs-dev] [PATCH v5 06/15] tests: Add delay to dump-conntrack for tc test cases.

2022-11-23 Thread Eelco Chaudron
This patch adds a delay before dumping the conntrack table because with tc it takes a bit longer before it gets synced. Signed-off-by: Eelco Chaudron --- tests/system-common-macros.at |3 + tests/system-offloads.at | 25 + tests/system-traffic.at | 198 +

[ovs-dev] [PATCH v5 04/15] test: Add delay on revalidator flush for offload test cases.

2022-11-23 Thread Eelco Chaudron
The revalidator/purge commands in the system test cases sometimes get called immediately after a partial test is completed. This could cause the revalidator thread to log an error that it can not find/delete a flow due to the slower flow installation nature of TC. This patch uses a macro to call t

[ovs-dev] [PATCH v5 05/15] netdev-offload-tc: Fix tc conntrack force commit support.

2022-11-23 Thread Eelco Chaudron
tc was not setting the OVS_CT_ATTR_FORCE_COMMIT flag when a forced commit was requested. This patch will fix this. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- lib/netdev-offload-tc.c | 13 +++-- tests/system-offloads.at |1 - 2 files changed, 11 insertions(+), 3 deletio

[ovs-dev] [PATCH v5 03/15] test: Do not use MPLS implicit null label in test cases.

2022-11-23 Thread Eelco Chaudron
TC flower does not allow the push of the implicit null labels (RFC3032). Avoid the use of such labels in the MPLS test cases. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/system-offloads.at |2 -- tests/system-traffic.at |8 2 files changed, 4 insertions(+), 6 d

[ovs-dev] [PATCH v5 02/15] tests: Include working system-traffic tests into the system-offloads-testsuite.

2022-11-23 Thread Eelco Chaudron
Include and run the system-traffic.at tests as part of the system offload testsuite. Exclude all the tests that will not run without any special modifications. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/automake.mk |1 tests/system-offloads-testsuite.at |

[ovs-dev] [PATCH v5 01/15] tests: Allow system-traffic tests to be skipped based on a list.

2022-11-23 Thread Eelco Chaudron
When the test description is part of the OVS_TEST_SKIP_LIST variable, the test is skipped. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/ofproto-macros.at |5 - tests/ovs-macros.at |7 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/ofp

[ovs-dev] [PATCH v5 00/15] tests: Add system-traffic.at tests to check-offloads.

2022-11-23 Thread Eelco Chaudron
This series makes it possible to include system-traffic.at tests into "make check-offloads" tests. The last patch of the series explains which tests are still not passing and might need some more work. I'll try to work on the remaining failing test cases or find someone who can work on them. v5

Re: [ovs-dev] [PATCH ovn] controller: Fixed ovs/ovn(features) connection lost when running more than 120 seconds

2022-11-23 Thread Dumitru Ceara
On 11/23/22 09:10, Ales Musil wrote: > On Tue, Nov 22, 2022 at 9:24 PM Xavier Simonart wrote: > >> Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2144084 >> >> Signed-off-by: Xavier Simonart >> --- >> lib/features.c | 16 ++-- >> tests/ovn.at | 18 ++ >>

Re: [ovs-dev] Patch "openvswitch: Fix Frame-size larger than 1024 bytes warning" not correct.

2022-11-23 Thread Eelco Chaudron
Hi Pravin, Any update feedback on this? //Eelco On 15 Nov 2022, at 17:16, Eelco Chaudron wrote: > Hi Pravin, > > It looks like a previous fix you made, 190aa3e77880 ("openvswitch: Fix > Frame-size larger than 1024 bytes warning."), is breaking stuff. With this > change, the actual flow looku

Re: [ovs-dev] [PATCH v4 00/12] tests: Add system-traffic.at tests to check-offloads.

2022-11-23 Thread Eelco Chaudron
On 23 Nov 2022, at 11:39, Eelco Chaudron wrote: > This series makes it possible to include system-traffic.at tests into > "make check-offloads" tests. > > The last patch of the series explains which tests are still not passing > and might need some more work. > > I'll try to work on the remainin

[ovs-dev] [PATCH v4 10/12] test: tc does not support conntrack timeout, skip the related test.

2022-11-23 Thread Eelco Chaudron
The tc conntrack implementation does not support the timeout option. The current implementation is silently ignoring the timeout option by adding a general conntrack entry. This patch will skip the related test by overriding the support macro. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan -

[ovs-dev] [PATCH v4 09/12] netdev-offload-tc: Conntrack ALGs are not supported with tc.

2022-11-23 Thread Eelco Chaudron
tc does not support conntrack ALGs. Even worse, with tc enabled, they should not be used/configured at all. This is because even though TC will ignore the rules with ALG configured, i.e., they will flow through the kernel module, return traffic might flow through a tc conntrack rule, and it will no

[ovs-dev] [PATCH v4 08/12] test: Flush datapath when changing rules on the fly.

2022-11-23 Thread Eelco Chaudron
Flush datapath flows as TC flows take some more time to be flushed out. The flush speeds this up. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/system-offloads.at |2 -- tests/system-traffic.at |6 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test

[ovs-dev] [PATCH v4 07/12] test: Fix "conntrack - floating IP" test for TC.

2022-11-23 Thread Eelco Chaudron
This change fixes the "conntrack - floating" test for the TC offload case. In this scenario, the connection might move to CLOSE_WAIT, which would fail the test as it only accepts TIME_WAIT. However, both indicate the connection was established, so the test should pass. Signed-off-by: Eelco Chaudro

[ovs-dev] [PATCH v4 06/12] tests: Add delay to dump-conntrack for tc test cases.

2022-11-23 Thread Eelco Chaudron
This patch adds a delay before dumping the conntrack table because with tc it takes a bit longer before it gets synced. Signed-off-by: Eelco Chaudron --- tests/system-common-macros.at |3 + tests/system-offloads.at | 25 + tests/system-traffic.at | 198 +

[ovs-dev] [PATCH v4 05/12] netdev-offload-tc: Fix tc conntrack force commit support.

2022-11-23 Thread Eelco Chaudron
tc was not setting the OVS_CT_ATTR_FORCE_COMMIT flag when a forced commit was requested. This patch will fix this. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- lib/netdev-offload-tc.c | 13 +++-- tests/system-offloads.at |1 - 2 files changed, 11 insertions(+), 3 deletio

[ovs-dev] [PATCH v4 04/12] test: Add delay on revalidator flush for offload test cases.

2022-11-23 Thread Eelco Chaudron
The revalidator/purge commands in the system test cases sometimes get called immediately after a partial test is completed. This could cause the revalidator thread to log an error that it can not find/delete a flow due to the slower flow installation nature of TC. This patch uses a macro to call t

[ovs-dev] [PATCH v4 03/12] test: Do not use MPLS implicit null label in test cases.

2022-11-23 Thread Eelco Chaudron
TC flower does not allow the push of the implicit null labels (RFC3032). Avoid the use of such labels in the MPLS test cases. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/system-offloads.at |2 -- tests/system-traffic.at |8 2 files changed, 4 insertions(+), 6 d

[ovs-dev] [PATCH v4 02/12] tests: Include working system-traffic tests into the system-offloads-testsuite.

2022-11-23 Thread Eelco Chaudron
Include and run the system-traffic.at tests as part of the system offload testsuite. Exclude all the tests that will not run without any special modifications. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/automake.mk |1 tests/system-offloads-testsuite.at |

[ovs-dev] [PATCH v4 01/12] tests: Allow system-traffic tests to be skipped based on a list.

2022-11-23 Thread Eelco Chaudron
When the test description is part of the OVS_TEST_SKIP_LIST variable, the test is skipped. Signed-off-by: Eelco Chaudron Acked-by: Roi Dayan --- tests/ofproto-macros.at |5 - tests/ovs-macros.at |7 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/ofp

Re: [ovs-dev] [dpdk-latest v3] netdev-dpdk: Add per virtqueue statistics.

2022-11-23 Thread David Marchand
I have a few nits on my own patch. Noting them here for now. In case there is no further comment on the patch, I will send a new revision. On Wed, Nov 9, 2022 at 9:39 PM David Marchand wrote: > @@ -2845,8 +2779,7 @@ netdev_dpdk_vhost_send(struct netdev *netdev, int qid, > stats.tx_retries

[ovs-dev] [PATCH v4 00/12] tests: Add system-traffic.at tests to check-offloads.

2022-11-23 Thread Eelco Chaudron
This series makes it possible to include system-traffic.at tests into "make check-offloads" tests. The last patch of the series explains which tests are still not passing and might need some more work. I'll try to work on the remaining failing test cases or find someone who can work on them. v4

Re: [ovs-dev] [dpdk-latest v3] netdev-dpdk: Add per virtqueue statistics.

2022-11-23 Thread David Marchand
On Fri, Nov 18, 2022 at 4:16 PM Maxime Coquelin wrote: > On 11/9/22 21:38, David Marchand wrote: > > The DPDK vhost-user library maintains more granular per queue stats > > which can replace what OVS was providing for vhost-user ports. > > > > The benefits for OVS: > > - OVS can skip parsing packe

Re: [ovs-dev] [PATCH v7 0/9] DPIF + MFEX Inner AVX512

2022-11-23 Thread Eelco Chaudron
On 23 Nov 2022, at 11:24, Ferriter, Cian wrote: >> -Original Message- >> From: Eelco Chaudron >> Sent: Monday 21 November 2022 14:34 >> To: Ferriter, Cian >> Cc: ovs-dev@openvswitch.org; kumar.am...@intel.com >> Subject: Re: [ovs-dev] [PATCH v7 0/9] DPIF + MFEX Inner AVX512 >> >> On 1

Re: [ovs-dev] [PATCH v7 0/9] DPIF + MFEX Inner AVX512

2022-11-23 Thread Ferriter, Cian
> -Original Message- > From: Eelco Chaudron > Sent: Monday 21 November 2022 14:34 > To: Ferriter, Cian > Cc: ovs-dev@openvswitch.org; kumar.am...@intel.com > Subject: Re: [ovs-dev] [PATCH v7 0/9] DPIF + MFEX Inner AVX512 > > On 12 Oct 2022, at 13:55, Cian Ferriter wrote: > > > This S

[ovs-dev] [PATCH v1 05/11] python: return list of actions for odp action clone

2022-11-23 Thread Adrian Moreno
Sometimes we don't want to return the result of a nested key-value decoding as a dictionary but as a list of dictionaries. This happens when we parse actions where keys can be repeated. Refactor code that already takes that into account from ofp_act.py to kv.py and use it for datapath action "clon

[ovs-dev] [PATCH v1 09/11] tests: verify flows in ofp-actions are parseable

2022-11-23 Thread Adrian Moreno
Create a small helper script and check that flows used in ofp-actions.at are parseable. Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick --- tests/automake.mk | 2 ++ tests/ofp-actions.at | 18 + tests/test-ofparse.py | 45 +++ 3

[ovs-dev] [PATCH v1 10/11] tests: verify flows in odp.at are parseable

2022-11-23 Thread Adrian Moreno
Create a small helper script and check that flows tested in odp.at are parseable. Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick --- tests/automake.mk | 2 ++ tests/odp.at | 12 +++- tests/test-dpparse.py | 45 +++ 3 files chan

[ovs-dev] [PATCH v1 11/11] python: don't exit OFPFlow constructor

2022-11-23 Thread Adrian Moreno
returning None in a constructor does not make sense and is just error prone. Removing what was a lefover from an attempt to handle a common error case of trying to parse what is commonly outputted by ovs-ofctl. This should be done by the caller anyway. Signed-off-by: Adrian Moreno Acked-by: Mike

[ovs-dev] [PATCH v1 08/11] python: interpret free keys as output in clone

2022-11-23 Thread Adrian Moreno
clone-like actions can also output to ports by specifying the port name. Signed-off-by: Adrian Moreno --- python/ovs/flow/ofp.py | 6 -- python/ovs/tests/test_ofp.py | 13 + 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/python/ovs/flow/ofp.py b/python/ovs

  1   2   >