Re: [ovs-dev] [PATCH v26 8/8] system-offloads-traffic.at: Add sFlow offload test cases

2023-05-26 Thread Chris Mi via dev
On 5/10/2023 10:57 PM, Eelco Chaudron wrote: On 27 Apr 2023, at 3:27, Chris Mi wrote: recirc_id(0),in_port(1),eth(src=06:9c:de:63:c9:40,dst=01:00:5e:00:00:fb),eth_type(0x0800),ipv4(tos=0/0x3,frag=no), packets:13, bytes:1883, used:5.700s,

Re: [ovs-dev] [PATCH v3 3/7] odp-util: Extract vxlan gbp option encoding to a function

2023-05-26 Thread Eelco Chaudron
On 15 May 2023, at 10:23, Roi Dayan wrote: > From: Gavin Li > > Extract vxlan gbp option encoding to odp_encode_gbp_raw to be used in > following commits. > > Signed-off-by: Gavin Li > Reviewed-by: Roi Dayan > Reviewed-by: Simon Horman > --- > lib/odp-util.c | 2 +- > lib/odp-util.h | 5

Re: [ovs-dev] [PATCH v26 4/8] netdev-offload-tc: Add sample offload API for TC

2023-05-26 Thread Chris Mi via dev
On 5/10/2023 7:42 PM, Eelco Chaudron wrote: On 26 Apr 2023, at 4:42, Chris Mi wrote: /* DPIF_UC_ACTION only. */ struct nlattr *userdata;/* Argument to OVS_ACTION_ATTR_USERSPACE. */ -struct nlattr *out_tun_key;/* Output tunnel key. */ -struct nlattr *actions;

Re: [ovs-dev] [PATCH v26 7/8] netdev-offload-tc: Add offload support for sFlow

2023-05-26 Thread Chris Mi via dev
On 5/10/2023 8:20 PM, Eelco Chaudron wrote: On 26 Apr 2023, at 4:44, Chris Mi wrote: + +static int +offload_sample_init(struct offload_sample *sample, +const struct nlattr *next_actions, +size_t next_actions_len, bool tunnel, +const

Re: [ovs-dev] [PATCH ovn] ovn-controller.c: Fix assertion failure during address set update.

2023-05-26 Thread Ales Musil
On Thu, May 25, 2023 at 6:01 PM Han Zhou wrote: > When an address set is deleted and a new one is created immediately with > the same name, the OVSDB deletion and creation notifications can come to > ovn-controller within the same message, and the order of the deletion > and addition in the IDL

Re: [ovs-dev] [PATCH v26 8/8] system-offloads-traffic.at: Add sFlow offload test cases

2023-05-26 Thread Chris Mi via dev
On 5/10/2023 10:52 PM, Eelco Chaudron wrote: On 26 Apr 2023, at 4:47, Chris Mi wrote: + +P0_IFINDEX=$(cat /sys/class/net/ovs-p0/ifindex) +m4_define([DUMP_SFLOW], [sed -e

[ovs-dev] [PATCH v4 ovn] northd: centralized reply lb traffic even if FIP is defined

2023-05-26 Thread Lorenzo Bianconi
In the current codebase for distributed gw router port use-case, it is not possible to add a load balancer that redirects the traffic to a back-end if it is used as internal IP of a FIP NAT rule since the reply traffic is never centralized. Fix the issue centralizing the traffic if it is the reply

Re: [ovs-dev] [PATCH v3 1/7] tc: Pass tunnel entirely to tunnel option parse and put functions

2023-05-26 Thread Eelco Chaudron
On 15 May 2023, at 10:23, Roi Dayan wrote: > From: Gavin Li > > Tc flower tunnel key options were encoded in nl_msg_put_flower_tunnel_opts > and decoded in nl_parse_flower_tunnel_opts. Only geneve was supported. > > To avoid adding more arguments to the function to support more vxlan >

Re: [ovs-dev] [PATCH ovn v3] controller: Ignore DNS queries with RRs

2023-05-26 Thread Ales Musil
On Thu, May 25, 2023 at 8:29 PM Brian Haley wrote: > DNS queries with optional records (RRs), for example, with > cookies for EDNS, are not supported by the OVN resolver. > Trying to reply will result in mangled responses that > clients do not understand - the ANSWER section will > contain an

Re: [ovs-dev] [PATCH v26 3/8] netdev-offload-tc: Introduce group ID management API

2023-05-26 Thread Chris Mi via dev
On 5/10/2023 5:54 PM, Eelco Chaudron wrote: On 26 Apr 2023, at 4:36, Chris Mi wrote: On 4/12/2023 10:06 PM, Eelco Chaudron wrote: +{ +new->type = old->type; +new->action = xmemdup(old->action, old->action->nla_len); +new->userspace_actions = old->userspace_actions +

[ovs-dev] [PATCH v5 2/2] netdev-dpdk: Check rx/tx descriptor sizes for device.

2023-05-26 Thread Kevin Traynor
By default OVS configures 2048 descriptors for tx and rx queues on DPDK devices. It also allows the user to configure those values. If the values used are not acceptable to the device then queue setup would fail. The device exposes it's max/min/alignment requirements and OVS applies some limits

[ovs-dev] [PATCH v5 0/2] netdev-dpdk: Apply device rx/tx descriptor limits.

2023-05-26 Thread Kevin Traynor
v5: - Moved num of descriptors validation so not dependent on flow ctrl - Updated log message when num of descriptors adjusted - Minor whitespace - Kept Reviewed-by: tags as minor edits v4: - Fixed case where sizes change but limits are not applied (David) - Use actual device desc sizes to decide

[ovs-dev] [PATCH v5 1/2] netdev-dpdk: Remove requested descriptors from get_config.

2023-05-26 Thread Kevin Traynor
There is no need to display 'requested_rx/tx_descriptors' and 'configured_rx/tx_descriptors' as they will be the same. It is simpler to just have a single 'n_rxq/txq_desc' value. Suggested-by: Ilya Maximets Reviewed-by: David Marchand Reviewed-by: Simon Horman Signed-off-by: Kevin Traynor

Re: [ovs-dev] [PATCH v3 2/7] odp-util: Extract vxlan gbp option decoding to a function

2023-05-26 Thread Eelco Chaudron
On 15 May 2023, at 10:23, Roi Dayan wrote: > From: Gavin Li > > Extract vxlan gbp option decoding to odp_decode_gbp_raw to be used in > following commits. > > Signed-off-by: Gavin Li > Reviewed-by: Roi Dayan > Reviewed-by: Simon Horman The changes look good to me. Acked-by: Eelco

Re: [ovs-dev] [PATCH v3] ofproto-dpif-xlate: Reduce stack usage in recursive xlate functions

2023-05-26 Thread Simon Horman
On Thu, May 25, 2023 at 04:34:54PM -0400, Mike Pattrick wrote: > Several xlate actions used in recursive translation currently store a > large amount of information on the stack. This can result in handler > threads quickly running out of stack space despite before >

Re: [ovs-dev] [PATCH v3 4/7] netlink: Add new function to add NLA_F_NESTED to nested netlink messages

2023-05-26 Thread Eelco Chaudron
On 15 May 2023, at 10:23, Roi Dayan wrote: > From: Gavin Li > > Linux kernel netlink module added NLA_F_NESTED flag checking for nested > netlink messages in 5.2. A nested message without the flag set will be > treated as malformated one. The check is optional and is controlled by > message

Re: [ovs-dev] [PATCH ovn 00/14] ovn-northd incremental processing for VIF changes

2023-05-26 Thread Ales Musil
On Sat, May 13, 2023 at 2:04 AM Han Zhou wrote: > This series implements incremental processing for VIF (regular logical > switch > ports of VM/pod) changes in ovn-northd. The performance gains of a single > logical switch port creation has improved significantly. > > Below are the performance

Re: [ovs-dev] [PATCH ovn 1/9] release-process: Use more accurate example releases.

2023-05-26 Thread Ales Musil
On Thu, May 25, 2023 at 8:22 PM Mark Michelson wrote: > We don't use a four-digit major version, just the final two digits of > the year. > > Signed-off-by: Mark Michelson > Hi Mark, > --- > Documentation/internals/release-process.rst | 10 +- > 1 file changed, 5 insertions(+), 5

Re: [ovs-dev] [PATCH v3 5/7] tc: Add vxlan gbp option flower match offload

2023-05-26 Thread Simon Horman
On Fri, May 26, 2023 at 12:43:52PM +0200, Eelco Chaudron wrote: > > > On 15 May 2023, at 10:23, Roi Dayan wrote: > > > From: Gavin Li > > > > Add TC offload support for filtering vxlan tunnels with gbp option > > > > Signed-off-by: Gavin Li > > Reviewed-by: Gavi Teitz > > Reviewed-by: Roi

Re: [ovs-dev] [PATCH v4 ovn] northd: centralized reply lb traffic even if FIP is defined

2023-05-26 Thread Simon Horman
On Fri, May 26, 2023 at 10:21:58AM +0200, Lorenzo Bianconi wrote: > In the current codebase for distributed gw router port use-case, > it is not possible to add a load balancer that redirects the traffic > to a back-end if it is used as internal IP of a FIP NAT rule since > the reply traffic is

Re: [ovs-dev] [PATCH ovn v2] controller: Ignore DNS queries with RRs

2023-05-26 Thread Ales Musil
On Fri, May 26, 2023 at 12:56 PM Simon Horman wrote: > On Thu, May 25, 2023 at 12:23:43PM -0400, Brian Haley wrote: > > Sorry for the top post, but I was wondering if there was a way to > re-trigger > > the bot testing action on a patch? Somehow the testing on the v2 one > failed > > even though

Re: [ovs-dev] [PATCH 1/2] netdev-offload-dpdk: Fix flushing of a physdev

2023-05-26 Thread David Marchand
Hello Eli, On Mon, Sep 5, 2022 at 4:46 PM Eli Britstein via dev wrote: > > Vport's offloads are done on the tracked orig-in-port, but the flow itself > is associated in the vport's map. > > Removing the physdev will flush all the ports that are on its map, but all the flows* > not the ones on

Re: [ovs-dev] [PATCH v3 5/7] tc: Add vxlan gbp option flower match offload

2023-05-26 Thread Eelco Chaudron
On 26 May 2023, at 13:05, Simon Horman wrote: > On Fri, May 26, 2023 at 12:43:52PM +0200, Eelco Chaudron wrote: >> >> >> On 15 May 2023, at 10:23, Roi Dayan wrote: >> >>> From: Gavin Li >>> >>> Add TC offload support for filtering vxlan tunnels with gbp option >>> >>> Signed-off-by: Gavin Li

Re: [ovs-dev] [PATCH ovn] ci: ovn-kubernetes: Align the timeouts with u/s ovnk

2023-05-26 Thread Dumitru Ceara
On 5/26/23 13:33, Ales Musil wrote: > We saw a lot of failures recently due to jobs timing out. > Align the timeouts with upstream ovn-kubernetes. Hi Ales, Thanks for this! Nit: I'd point to the ovn-kubernetes commit (or permalink) where timeouts were increased. If this passes ovn-kubernetes

[ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don't set statistics to 0 when they jump back

2023-05-26 Thread Balazs Nemeth
The only way that stats->{n_packets,n_bytes} would decrease is due to an overflow, or if there are bugs in how statistics are handled. In the past, there were multiple issues that caused a jump backward. A workaround was in place to set the statistics to 0 in that case. When this happened while

Re: [ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don't set statistics to 0 when they jump back

2023-05-26 Thread Marcelo Ricardo Leitner
On Fri, May 26, 2023 at 03:09:02PM +0200, Eelco Chaudron wrote: > > > On 26 May 2023, at 14:03, Balazs Nemeth wrote: > > > The only way that stats->{n_packets,n_bytes} would decrease is due to an > > overflow, or if there are bugs in how statistics are handled. In the > > past, there were multiple

Re: [ovs-dev] [PATCH v2] python: Add aync DNS support

2023-05-26 Thread Simon Horman
On Wed, May 17, 2023 at 10:50:15PM -0500, Terry Wilson wrote: > This adds a Python version of the async DNS support added in: > > 771680d96 DNS: Add basic support for asynchronous DNS resolving > > The above version uses the unbound C library, and this > implimentation uses the SWIG-wrapped

Re: [ovs-dev] [PATCH v3 7/7] tc: Add vxlan encap action with gbp option offload

2023-05-26 Thread Eelco Chaudron
On 15 May 2023, at 10:23, Roi Dayan wrote: > From: Gavin Li > > Add TC offload support for vxlan encap with gbp option > > Signed-off-by: Gavin Li > Reviewed-by: Gavi Teitz > Reviewed-by: Roi Dayan I have a couple of comments below, and some general ones. 1) Can we add some unit tests for

Re: [ovs-dev] [PATCH v4] tc: fix crash on EAGAIN return from recvmsg on netlink socket.

2023-05-26 Thread Eelco Chaudron
On 23 May 2023, at 12:39, Frode Nordahl wrote: > The tc module combines the use of the `tc_transact` helper > function for communication with the in-kernel tc infrastructure > with assertions on the reply data by `ofpbuf_at_assert` on the > received data prior to further processing. > >

Re: [ovs-dev] [PATCH ovn 2/9] release-process: Switch to two releases per year.

2023-05-26 Thread Dumitru Ceara
Hi Mark, Thanks for putting this together! On 5/25/23 20:22, Mark Michelson wrote: > Based on discussions that have occurred on the development mailing list > and public IRC meetings, we have decided to reduce OVN to having two > releases per year instead of four. > > When OVN initially spun

Re: [ovs-dev] [PATCH ovn 7/9] backporting-patches: Change "master" to "main".

2023-05-26 Thread Dumitru Ceara
On 5/25/23 20:22, Mark Michelson wrote: > OVN hasn't used the name "master" for quite a while, and it looks like > we missed this document when the change to "main" was made. > > Signed-off-by: Mark Michelson > --- Acked-by: Dumitru Ceara .. but it seems there are more places where we still

Re: [ovs-dev] [PATCH 1/2] netdev-offload-dpdk: Fix flushing of a physdev

2023-05-26 Thread David Marchand
On Fri, May 26, 2023 at 4:35 PM David Marchand wrote: > > Hello Eli, > > On Mon, Sep 5, 2022 at 4:46 PM Eli Britstein via dev > wrote: > > > > Vport's offloads are done on the tracked orig-in-port, but the flow itself > > is associated in the vport's map. > > > > Removing the physdev will flush

Re: [ovs-dev] [PATCH ovn v3] controller: Ignore DNS queries with RRs

2023-05-26 Thread Brian Haley
Hi Ales, Thanks for the review and for fixing the timeout. I had tried in my own fork and it failed in a different way, again unrelated to the change. I'll push a v4 with an updated commit message that hopefully gets a good run. Thanks, -Brian On 5/26/23 2:41 AM, Ales Musil wrote: On

[ovs-dev] [PATCH ovn v4] controller: Ignore DNS queries with RRs

2023-05-26 Thread Brian Haley
DNS queries with optional records (RRs), for example, with cookies for EDNS, are not supported by the OVN resolver. Trying to reply will result in mangled responses that clients do not understand - the ANSWER section will contain an incorrect option. Instead, just return early when one is

Re: [ovs-dev] Scale testing OVN with ovn-heater for OpenStack use cases

2023-05-26 Thread Dumitru Ceara
On 5/24/23 09:37, Felix Huettner wrote: > Hi everyone, Hi Felix, > > Ilya mentioned to me that you will want to bring openstack examples to > ovn-heater. > Yes, we're discussing that. > I wanted to ask how to best join this effort. It would be great for us Everyone is welcome to contribute!

Re: [ovs-dev] [PATCH ovn 6/9] release-policy: Document when versions receive new releases.

2023-05-26 Thread Dumitru Ceara
On 5/25/23 20:22, Mark Michelson wrote: > The OVN team has had no concrete policy regarding when releases are > made for a given version. In the past, new releases have been made only > when something critical has been found, meaning that most bug fixes > applied to a given OVN version never end

Re: [ovs-dev] [PATCH ovn 5/9] release-process: Add section for standard-term support releases.

2023-05-26 Thread Dumitru Ceara
On 5/25/23 20:22, Mark Michelson wrote: > Signed-off-by: Mark Michelson > --- > Documentation/internals/release-process.rst | 16 > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/internals/release-process.rst > b/Documentation/internals/release-process.rst >

Re: [ovs-dev] [PATCH ovn 4/9] release-process: State release policy for LTS versions.

2023-05-26 Thread Dumitru Ceara
On 5/25/23 20:22, Mark Michelson wrote: > The definition of "regular releases" is being kept purposely vague in > this commit because a later commit will define what the interval is for > these releases. > > Signed-off-by: Mark Michelson > --- Sounds reasonable to me, thanks! Acked-by: Dumitru

Re: [ovs-dev] [PATCH ovn 9/9] backporting-patches: Add concrete policy for where backports go.

2023-05-26 Thread Dumitru Ceara
On 5/25/23 20:22, Mark Michelson wrote: > This is based on discussions that have happened both on the ovs-dev > mailing list as well as public IRC developer meetings. > > Signed-off-by: Mark Michelson > --- > .../contributing/backporting-patches.rst | 28 +++ > 1 file

Re: [ovs-dev] [PATCH ovn 3/9] release-policy: Change "release" to "version" in LTS section.

2023-05-26 Thread Dumitru Ceara
On 5/25/23 20:22, Mark Michelson wrote: > Upcoming changes to the documentation will add documentation for > standard term support versions and will document a policy for when > releases are made for these versions. Our current use of "release" in > the documentation is interchangeable with

Re: [ovs-dev] [PATCH] seq: Make read of the current value atomic

2023-05-26 Thread Ilya Maximets
On 5/26/23 15:42, Eelco Chaudron wrote: > > > On 17 May 2023, at 12:18, Eelco Chaudron wrote: > >> On 16 May 2023, at 21:48, Ilya Maximets wrote: >> >>> On 5/16/23 10:20, Eelco Chaudron wrote: On 15 May 2023, at 17:47, Ilya Maximets wrote: > On 5/15/23 16:24, Eelco

Re: [ovs-dev] [PATCH] netdev-linux: fix memory leak in qos

2023-05-26 Thread 0-day Robot
Bleep bloop. Greetings 张祖建, 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: patch fragment without header at line 6: @@ -3967,6 +3974,13 @@ fqcodel_install__(struct netdev

Re: [ovs-dev] [PATCH v3 6/7] tc: Pass encap entirely to nl_msg_put_act_tunnel_key_set

2023-05-26 Thread Eelco Chaudron
On 15 May 2023, at 10:23, Roi Dayan wrote: > From: Gavin Li > > Most of the data members of struct tc_action{ } are defined as anonymous > struct in place. Instead of passing all members of an anonymous struct, > which is not flexible to new members being added, expose encap as named > struct

Re: [ovs-dev] [PATCH ovn 8/9] backporting-patches: Fix inaccuracies in the document.

2023-05-26 Thread Dumitru Ceara
On 5/25/23 20:22, Mark Michelson wrote: > This document appears to be based on the OVS document, but things are > done slightly differently in OVN. > > * OVN is 100% userspace, so there is no need to clarify "userspace" > anywhere. > * The commit message example is not how we do things in OVN.

Re: [ovs-dev] [PATCH 2/2] tests: Check ovsdb-server logs in OVSDB tests.

2023-05-26 Thread Ilya Maximets
On 5/25/23 15:20, Simon Horman wrote: > On Wed, May 17, 2023 at 06:51:05PM +0200, Ilya Maximets wrote: >> Many OVSDB tests are not checking the server log for warnings or >> errors. Some are not even using the log file. It's mostly OK as we're >> usually checking the user-visible behavior. But

Re: [ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don't set statistics to 0 when they jump back

2023-05-26 Thread Eelco Chaudron
On 26 May 2023, at 15:40, Marcelo Ricardo Leitner wrote: > On Fri, May 26, 2023 at 03:09:02PM +0200, Eelco Chaudron wrote: >> >> >> On 26 May 2023, at 14:03, Balazs Nemeth wrote: >> >>> The only way that stats->{n_packets,n_bytes} would decrease is due to an >>> overflow, or if there are bugs

Re: [ovs-dev] [PATCH ovn 0/9] OVN Release Policy Updates

2023-05-26 Thread Ales Musil
On Thu, May 25, 2023 at 8:22 PM Mark Michelson wrote: > The current state of development in OVN has resulted in many discussions > happening about how things should change. The main points of the > discussions have been: > > * Recent releases have been much more bare than releases made two or >

Re: [ovs-dev] [PATCH ovn v2] controller: Ignore DNS queries with RRs

2023-05-26 Thread Simon Horman
On Thu, May 25, 2023 at 12:23:43PM -0400, Brian Haley wrote: > Sorry for the top post, but I was wondering if there was a way to re-trigger > the bot testing action on a patch? Somehow the testing on the v2 one failed > even though v1 passed [0]. Since the only change was in the commit message >

Re: [ovs-dev] [PATCH ovn 1/9] release-process: Use more accurate example releases.

2023-05-26 Thread Dumitru Ceara
On 5/25/23 20:22, Mark Michelson wrote: > We don't use a four-digit major version, just the final two digits of > the year. > > Signed-off-by: Mark Michelson > --- Looks good to me, thanks! Acked-by: Dumitru Ceara ___ dev mailing list

Re: [ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don't set statistics to 0 when they jump back

2023-05-26 Thread Eelco Chaudron
On 26 May 2023, at 14:03, Balazs Nemeth wrote: > The only way that stats->{n_packets,n_bytes} would decrease is due to an > overflow, or if there are bugs in how statistics are handled. In the > past, there were multiple issues that caused a jump backward. A > workaround was in place to set the

Re: [ovs-dev] [PATCH v2] MAINTAINERS.rst: Move several people to emeritus status

2023-05-26 Thread William Tu
On Thu, May 25, 2023 at 2:23 PM Ansis wrote: > > On Fri, May 19, 2023 at 9:53 AM Russell Bryant wrote: > > > > The following document discusses emeritus committer status: > > > > https://docs.openvswitch.org/en/latest/internals/committer-emeritus-status/ > > > > There are several people who I

[ovs-dev] [PATCH v3] rhel: make the version, displayed to the user, customizable

2023-05-26 Thread Timothy Redaelli
Since on CentOS/RHEL the builds are based on stable branches and not on tags for debugging purpose it's better to have the downstream version as version so it's easier to know which commits are included in a build. This commit adds --with-version-suffix as ./configure option in order to set an

Re: [ovs-dev] [PATCH v3 5/7] tc: Add vxlan gbp option flower match offload

2023-05-26 Thread Eelco Chaudron
On 15 May 2023, at 10:23, Roi Dayan wrote: > From: Gavin Li > > Add TC offload support for filtering vxlan tunnels with gbp option > > Signed-off-by: Gavin Li > Reviewed-by: Gavi Teitz > Reviewed-by: Roi Dayan One comment below, the rest looks good to me. //Eelco > --- >

[ovs-dev] [PATCH ovn] ci: ovn-kubernetes: Align the timeouts with u/s ovnk

2023-05-26 Thread Ales Musil
We saw a lot of failures recently due to jobs timing out. Align the timeouts with upstream ovn-kubernetes. Signed-off-by: Ales Musil --- .github/workflows/ovn-kubernetes.yml | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ovn-kubernetes.yml

Re: [ovs-dev] [PATCH] seq: Make read of the current value atomic

2023-05-26 Thread Eelco Chaudron
On 17 May 2023, at 12:18, Eelco Chaudron wrote: > On 16 May 2023, at 21:48, Ilya Maximets wrote: > >> On 5/16/23 10:20, Eelco Chaudron wrote: >>> >>> >>> On 15 May 2023, at 17:47, Ilya Maximets wrote: >>> On 5/15/23 16:24, Eelco Chaudron wrote: > > > On 4 May 2023, at 0:55,

[ovs-dev] [PATCH] netdev-linux: fix memory leak in qos

2023-05-26 Thread 张祖建
Reported by Valgrind: ==00:00:00:46.715 951138== 56 bytes in 1 blocks are definitely lost in loss record 363 of 408 ==00:00:00:46.715 951138== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==00:00:00:46.715 951138== by 0x278E98: xmalloc__ (util.c:140)

[ovs-dev] [PATCH] netdev-offload-dpdk: Fix crash in debug log.

2023-05-26 Thread David Marchand
The offload thread calling ufid_to_rte_flow_disassociate() may be the last one holding a reference on the netdev and physdev. So displaying informations about them might trigger a crash when removing a physical port. Fixes: faf71e492263 ("netdev-dpdk: Print port name in offload API messages.")

[ovs-dev] [PATCH] utilities/bashcomp: Fix PS1 generation on new bash

2023-05-26 Thread Timothy Redaelli
The current implementation used to extract PS1 prompt for ovs-vsctl is broken on recent Bash releases. Starting from Bash 4.4 it's possible to use @P expansion in order to get the quoted PS1 directly. This commit makes the 2 bash completion files to use @P expansion in order to get the quoted PS1

[ovs-dev] [PATCH v2] ovsdb: Condition: Process condition changes incrementally.

2023-05-26 Thread Ilya Maximets
In most cases, after the condition change request, the new condition is the same as old one plus minus a few clauses. Today, ovsdb-server will evaluate every database row against all the old clauses and then against all the new clauses in order to tell if an update should be generated. For

[ovs-dev] [PATCH v2 1/1] utilities/bashcomp: Fix PS1 generation on new bash

2023-05-26 Thread Timothy Redaelli
The current implementation used to extract PS1 prompt for ovs-vsctl is broken on recent Bash releases. Starting from Bash 4.4 it's possible to use @P expansion in order to get the quoted PS1 directly. This commit makes the 2 bash completion files to use @P expansion in order to get the quoted PS1

Re: [ovs-dev] [PATCH v4] tc: fix crash on EAGAIN return from recvmsg on netlink socket.

2023-05-26 Thread Ilya Maximets
On 5/26/23 22:07, Ilya Maximets wrote: > CC: Marcelo. > > On 5/26/23 22:02, Ilya Maximets wrote: >> On 5/26/23 21:19, Eelco Chaudron wrote: >>> >>> >>> Send from my phone >>> Op 26 mei 2023 om 20:52 heeft Ilya Maximets het volgende geschreven: On 5/26/23 20:43, Ilya

Re: [ovs-dev] [PATCH] netdev-linux: fix memory leak in qos

2023-05-26 Thread 0-day Robot
Bleep bloop. Greetings 张祖建, 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: patch fragment without header at line 6: @@ -3967,6 +3974,13 @@ fqcodel_install__(struct netdev

[ovs-dev] [PATCH] netdev-linux: fix memory leak in qos

2023-05-26 Thread 张祖建
Reported by Valgrind: ==00:00:00:46.715 951138== 56 bytes in 1 blocks are definitely lost in loss record 363 of 408 ==00:00:00:46.715 951138== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==00:00:00:46.715 951138== by 0x278E98: xmalloc__ (util.c:140)

[ovs-dev] [PATCH] netdev-linux: fix memory leak in qos

2023-05-26 Thread 张祖建
Reported by Valgrind: ==00:00:00:46.715 951138== 56 bytes in 1 blocks are definitely lost in loss record 363 of 408 ==00:00:00:46.715 951138== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==00:00:00:46.715 951138== by 0x278E98: xmalloc__ (util.c:140)

Re: [ovs-dev] [PATCH] ovsdb: condition: Process condition changes incrementally.

2023-05-26 Thread Ilya Maximets
On 5/25/23 14:27, Simon Horman wrote: > On Thu, May 18, 2023 at 02:14:25PM +0200, Ilya Maximets wrote: >> In most cases, after the condition change request, the new condition >> is the same as old one plus minus a few clauses. Today, ovsdb-server >> will evaluate every database row against all

Re: [ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don't set statistics to 0 when they jump back

2023-05-26 Thread Ilya Maximets
On 5/26/23 15:09, Eelco Chaudron wrote: > > > On 26 May 2023, at 14:03, Balazs Nemeth wrote: > >> The only way that stats->{n_packets,n_bytes} would decrease is due to an >> overflow, or if there are bugs in how statistics are handled. In the >> past, there were multiple issues that caused a

Re: [ovs-dev] [PATCH 1/2] stream-ssl: Disable alerts on unexpected EOF.

2023-05-26 Thread Ilya Maximets
On 5/25/23 15:21, Simon Horman wrote: > On Wed, May 17, 2023 at 06:51:04PM +0200, Ilya Maximets wrote: >> OpenSSL 3.0 enabled alerts for unexpected EOF by default. It supposed >> to alert the application whenever the connection terminated without >> a proper close_notify. And that should allow

Re: [ovs-dev] [PATCH v4] tc: fix crash on EAGAIN return from recvmsg on netlink socket.

2023-05-26 Thread Eelco Chaudron
Send from my phone > Op 26 mei 2023 om 20:52 heeft Ilya Maximets het volgende > geschreven: > > On 5/26/23 20:43, Ilya Maximets wrote: >>> On 5/23/23 12:39, Frode Nordahl wrote: >>> The tc module combines the use of the `tc_transact` helper >>> function for communication with the in-kernel

Re: [ovs-dev] [PATCH] netdev-offload-dpdk: Fix crash in debug log.

2023-05-26 Thread Mike Pattrick
On Fri, May 26, 2023 at 11:05 AM David Marchand wrote: > > The offload thread calling ufid_to_rte_flow_disassociate() may be the > last one holding a reference on the netdev and physdev. > So displaying informations about them might trigger a crash when > removing a physical port. > > Fixes:

Re: [ovs-dev] [PATCH v5 0/2] netdev-dpdk: Apply device rx/tx descriptor limits.

2023-05-26 Thread Ilya Maximets
On 5/26/23 10:57, Kevin Traynor wrote: > v5: > - Moved num of descriptors validation so not dependent on flow ctrl > - Updated log message when num of descriptors adjusted > - Minor whitespace > - Kept Reviewed-by: tags as minor edits > > v4: > - Fixed case where sizes change but limits are not

[ovs-dev] [PATCH v2 0/1] Fix PS1 generation on new bash

2023-05-26 Thread Timothy Redaelli
v1 -> v2: Split if to avoid line > 79 characters Timothy Redaelli (1): utilities/bashcomp: Fix PS1 generation on new bash utilities/ovs-appctl-bashcomp.bash | 7 +++ utilities/ovs-vsctl-bashcomp.bash | 7 +++ 2 files changed, 14 insertions(+) -- 2.40.1

Re: [ovs-dev] [PATCH v4] tc: fix crash on EAGAIN return from recvmsg on netlink socket.

2023-05-26 Thread Ilya Maximets
On 5/23/23 12:39, Frode Nordahl wrote: > The tc module combines the use of the `tc_transact` helper > function for communication with the in-kernel tc infrastructure > with assertions on the reply data by `ofpbuf_at_assert` on the > received data prior to further processing. > > `tc_transact` in

Re: [ovs-dev] [PATCH v4] tc: fix crash on EAGAIN return from recvmsg on netlink socket.

2023-05-26 Thread Ilya Maximets
On 5/26/23 21:19, Eelco Chaudron wrote: > > > Send from my phone > >> Op 26 mei 2023 om 20:52 heeft Ilya Maximets het >> volgende geschreven: >> >> On 5/26/23 20:43, Ilya Maximets wrote: >>> On 5/23/23 12:39, Frode Nordahl wrote: The tc module combines the use of the `tc_transact`

Re: [ovs-dev] [PATCH] utilities/bashcomp: Fix PS1 generation on new bash

2023-05-26 Thread 0-day Robot
Bleep bloop. Greetings Timothy Redaelli, 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 89 characters long (recommended limit is 79) #31 FILE:

Re: [ovs-dev] [PATCH v4] tc: fix crash on EAGAIN return from recvmsg on netlink socket.

2023-05-26 Thread Ilya Maximets
On 5/26/23 20:43, Ilya Maximets wrote: > On 5/23/23 12:39, Frode Nordahl wrote: >> The tc module combines the use of the `tc_transact` helper >> function for communication with the in-kernel tc infrastructure >> with assertions on the reply data by `ofpbuf_at_assert` on the >> received data prior

Re: [ovs-dev] [PATCH v4] tc: fix crash on EAGAIN return from recvmsg on netlink socket.

2023-05-26 Thread Ilya Maximets
CC: Marcelo. On 5/26/23 22:02, Ilya Maximets wrote: > On 5/26/23 21:19, Eelco Chaudron wrote: >> >> >> Send from my phone >> >>> Op 26 mei 2023 om 20:52 heeft Ilya Maximets het >>> volgende geschreven: >>> >>> On 5/26/23 20:43, Ilya Maximets wrote: On 5/23/23 12:39, Frode Nordahl wrote:

Re: [ovs-dev] [PATCH v2] ovsdb: Condition: Process condition changes incrementally.

2023-05-26 Thread Ilya Maximets
My commit hook capitalized 'c' in the 'condition'. I can fix that before applying. Best regards, Ilya Maximets. On 5/26/23 19:18, Ilya Maximets wrote: > In most cases, after the condition change request, the new condition > is the same as old one plus minus a few clauses. Today, ovsdb-server >

Re: [ovs-dev] [PATCH ovn] ovn-controller.c: Fix assertion failure during address set update.

2023-05-26 Thread Han Zhou
On Thu, May 25, 2023 at 11:45 PM Ales Musil wrote: > > > > On Thu, May 25, 2023 at 6:01 PM Han Zhou wrote: >> >> When an address set is deleted and a new one is created immediately with >> the same name, the OVSDB deletion and creation notifications can come to >> ovn-controller within the same