Re: [ovs-dev] [PATCH] netdev-offload: Fix deadlock/recursive use of the netdev_hmap_rwlock rwlock.

2023-04-28 Thread Simon Horman
On Mon, Apr 24, 2023 at 12:37:04PM +0200, Simon Horman wrote: > On Thu, Apr 20, 2023 at 09:39:28AM +0200, Eelco Chaudron wrote: > > When doing performance testing with OVS v3.1 we ran into a deadlock > > situation with the netdev_hmap_rwlock read/write lock. After som

Re: [ovs-dev] [PATCH 5/7] netdev-linux: remove tc_matchall_fill_police

2023-04-25 Thread Simon Horman
On Fri, Apr 21, 2023 at 05:16:49PM +0200, Adrian Moreno wrote: > It is equivalent to tc_policer_init() so remove the duplicated function. > > Signed-off-by: Adrian Moreno Nice :) Reviewed-by: Simon Horman ___ dev mailing list d...@openvs

Re: [ovs-dev] [PATCH 4/7] netdev-linux: use 64-bit rates in htb tc classes

2023-04-25 Thread Simon Horman
On Fri, Apr 21, 2023 at 05:16:48PM +0200, Adrian Moreno wrote: > Currently, htb rates are capped at ~34Gbps because they are internally > expressed as 32-bit fields. > > Move min and max rates to 64-bit fields and use TCA_HTB_RATE64 and > TCA_HTB_CEIL64 to configure HTC classes to break this

Re: [ovs-dev] [PATCH 1/7] netdev: add netdev_get_speed() to nedev API

2023-04-25 Thread Simon Horman
On Fri, Apr 21, 2023 at 05:16:45PM +0200, Adrian Moreno wrote: > Currently, the netdev's speed is being calculated by taking the link's > feature bits (using netdev_get_features()) and transforming them into > bps. > > This mechanism can be both inaccurate and difficult to maintain, mainly >

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Fix use-after-free when xlate_actions().

2023-04-26 Thread Simon Horman
On Mon, Apr 24, 2023 at 02:06:53PM +0200, Ilya Maximets wrote: > On 4/23/23 05:47, wangyunjian wrote: > > Is there any issue with this patch? Why is it in the Superseded state? > > Hi. Not sure what happened here. > I moved it back to 'New' for now. That might have been me conflating things. If

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Fix use-after-free when xlate_actions().

2023-04-26 Thread Simon Horman
#9 0x40bcfd in bridge_reconfigure vswitchd/bridge.c:921 > #10 0x41f1a9 in bridge_run vswitchd/bridge.c:3313 > #11 0x42d4fb in main vswitchd/ovs-vswitchd.c:132 > #12 0x7f312fbbcc86 in __libc_start_main (/usr/lib64/libc.so.6+0x25c86) > > Fixes: fed8962aff57 ("Add new p

Re: [ovs-dev] [PATCH ovn] ci: Return 0 if the archive logs is not specified

2023-04-26 Thread Simon Horman
ied, but, FWIIW, Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 6/7] netdev-linux: refactor nl_msg_put_act_police

2023-04-26 Thread Simon Horman
actual rates. > > Signed-off-by: Adrian Moreno Tested-by: Simon Horman > --- > lib/netdev-linux.c | 37 ++--- > 1 file changed, 18 insertions(+), 19 deletions(-) > > diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c > index 8ee75981b..a2bae30

Re: [ovs-dev] [PATCH 3/7] netdev-linux: use 64-bit rtab tables

2023-04-26 Thread Simon Horman
rtab(struct ofpbuf *msg, uint16_t type, const struct tc_ratespec > *rate, > +uint64_t bps); Its unfortunate that there are now two parameters relating to the rate. But I think this is a case of playing the hand we've been dealt. And as I have no better idea I'm ok with this.

Re: [ovs-dev] [PATCH 7/7] netdev-linux: support 64-bit rates in tc policing

2023-04-26 Thread Simon Horman
On Fri, Apr 21, 2023 at 05:16:51PM +0200, Adrian Moreno wrote: > Use TCA_POLICE_RATE64 if the rate cannot be expressed using 32bits. > > This breaks the 32Gbps barrier. The new barrier is ~4Tbps caused by > netdev's API expressing kbps rates using 32-bit integers. > > Reported-at:

[ovs-dev] [PATCH dpdk-latest v4 3/5] netdev-offload-dpdk: Implement meter offload API for DPDK

2023-04-26 Thread Simon Horman
node in the meter data hash table. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- lib/netdev-dpdk.c | 191 ++ lib/netdev-dpdk.h | 41 lib/netdev-offload-dpdk.c | 191

[ovs-dev] [PATCH dpdk-latest v4 4/5] netdev-dpdk: Add meter algorithms

2023-04-26 Thread Simon Horman
From: Peng Zhang Add the meter algorithms. DPDK meter support three algorithms, and OVS also can support these algorithms. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- lib/netdev-dpdk.c | 58

[ovs-dev] [PATCH dpdk-latest v4 0/5] Add support for DPDK meter HW offload

2023-04-26 Thread Simon Horman
Hi, this series adds support for DPDK meter HW offload. Changes between v3 and v4: * Add hash to store meter data * Offload metter with flow * Use rte_flow for proxy id Changes between v2 and v3: * Use common API for DPDK and non-DPDK meter offloads * Make use of netdev_ports_traverse to

[ovs-dev] [PATCH dpdk-latest v4 2/5] dpif-netdev: Offloading meter with DPDK

2023-04-26 Thread Simon Horman
From: Peng Zhang By calling meter API, so it can offload meter to HW in netdev datapath. Add the check for datapath in the meter API to avoid the unnecessary error. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- Documentation/howto

[ovs-dev] [PATCH dpdk-latest v4 1/5] netdev-dpdk: use flow transfer proxy

2023-04-26 Thread Simon Horman
From: Peng Zhang Manage "transfer" flows via the corresponding mechanism. Doing so requires that the traffic source be specified explicitly, via the corresponding pattern item. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman

[ovs-dev] [PATCH dpdk-latest v4 5/5] netdev-dpdk-offload: Meter offload with the flow

2023-04-26 Thread Simon Horman
From: Peng Zhang Add support of DPDK meter action logic. With flow add/destroy from the HW, add/del the meter in the HW. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- lib/netdev-offload-dpdk.c | 131

Re: [ovs-dev] [PATCH] ovs-ofctl: skip invalid flows for replace-flows

2023-04-26 Thread Simon Horman
On Mon, Apr 24, 2023 at 02:01:03PM +0800, Wan Junjie via dev wrote: > ovs-save will do replace-flows for ovs restart. For some reason, ovs > could have an invalid action, like invalid meter. Then adding flows > will be stopped at the position of the first invalid flow. This could > happen when ovs

Re: [ovs-dev] [PATCH] system-offloads-traffic: Remove tc ingress pps check on meter offload.

2023-04-18 Thread Simon Horman
On Mon, Apr 17, 2023 at 06:28:13PM +0200, David Marchand wrote: > Caught during some code review. > The incriminated commit had put an unneeded check on tc ingress support > for the meter offloading test. > > Note: SUPPORT_TC_INGRESS_PPS had been reworked in the commit 5f0fdf5e2c2e > ("test: Move

Re: [ovs-dev] [PATCH] system-offloads-traffic: Remove tc ingress pps check on meter offload.

2023-04-18 Thread Simon Horman
On Tue, Apr 18, 2023 at 10:34:22AM +0200, David Marchand wrote: > On Tue, Apr 18, 2023 at 10:20 AM Simon Horman > wrote: > > > > On Mon, Apr 17, 2023 at 06:28:13PM +0200, David Marchand wrote: > > > Caught during some code review. > > > The incriminated co

Re: [ovs-dev] [PATCH v7 1/8] lib: Add non-null assertions to return value of `dp_packet_data`

2023-04-21 Thread Simon Horman
On Sat, Apr 15, 2023 at 11:21:48PM +0800, James Raphael Tiovalen wrote: > This commit adds some `ovs_assert()` checks to the return values of > `dp_packet_data()` to ensure that they are not NULL and to prevent > null-pointer dereferences, which might lead to unwanted crashes. We use > assertions

Re: [ovs-dev] [PATCH v7 2/8] lib, ovs-vsctl: Add zero-initializations

2023-04-21 Thread Simon Horman
On Sat, Apr 15, 2023 at 11:21:49PM +0800, James Raphael Tiovalen wrote: > This commit adds zero-initializations by changing `SFL_ALLOC` from > `malloc` to `xzalloc`, initializing a `pollfd` struct variable with > zeroes, and changing some calls to `xmalloc` to `xzalloc`. This is to > prevent

Re: [ovs-dev] [PATCH v3] dpif-netlink: Fix memory leak dpif_netlink_open().

2023-04-21 Thread Simon Horman
for older > kernels.") > Suggested-by: David Marchand > Signed-off-by: Yunjian Wang > --- > v3: update commit log Thanks for the update. Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v9] netdev-offload-tc: del ufid mapping if device not exist

2023-03-29 Thread Simon Horman
On Thu, Mar 30, 2023 at 11:13:32AM +0800, Faicker Mo wrote: > Thanks for your testing. > Add the ignore msg "failed to offload flow" to OVS_TRAFFIC_VSWITCHD_STOP can > pass the fail test. > I'll post an update later. Thanks. I'll look out for it. > From: Simon Horman

Re: [ovs-dev] [PATCH v2 2/6] netdev-offload: Add DPDK meter offload API

2023-03-30 Thread Simon Horman
On Wed, Mar 22, 2023 at 09:35:29PM +0100, Ilya Maximets wrote: > On 3/9/23 14:02, Simon Horman wrote: > > From: Peng Zhang ... > > diff --git a/lib/netdev-offload-provider.h b/lib/netdev-offload-provider.h > > index 9108856d18d1..7ecbb8d026f1 100644 > > --- a/li

[ovs-dev] [PATCH dpdk-latest v3 5/6] netdev-dpdk: add meter algorithms

2023-03-30 Thread Simon Horman
From: Peng Zhang Add the meter algorithms. DPDK meter support three algorithms, and OVS also can support these algorithms. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- lib/netdev-dpdk.c | 58

[ovs-dev] [PATCH dpdk-latest v3 3/6] dpif-netdev: Offloading meter with DPDK

2023-03-30 Thread Simon Horman
-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- lib/dpif-netdev.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 2c08a71c8db2..e8d0ca6606de 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c

[ovs-dev] [PATCH dpdk-latest v3 2/6] netdev-offload: Let meter offload API can be used with DPDK

2023-03-30 Thread Simon Horman
to HW. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- Documentation/howto/dpdk.rst | 5 +- lib/netdev-offload-provider.h | 21 +- lib/netdev-offload-tc.c | 9 ++- lib/netdev-offload.c | 135

[ovs-dev] [PATCH dpdk-latest v3 6/6] netdev-dpdk-offload: Add support for meter action

2023-03-30 Thread Simon Horman
From: Peng Zhang Add support of DPDK meter action logic. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- lib/netdev-offload-dpdk.c | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/netdev-offload-dpdk.c b/lib

[ovs-dev] [PATCH dpdk-latest v3 4/6] netdev-offload-dpdk: Implement meter offload API for DPDK

2023-03-30 Thread Simon Horman
From: Peng Zhang For dpif-netdev, meters are mapped by DPDK meter with one-to-one relationship. Implement meter offload API to set/get/del the DPDK meter with proxy port id. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman --- lib/netdev

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

2023-03-30 Thread Simon Horman
On Fri, Mar 17, 2023 at 09:47:36PM +0100, Eelco Chaudron wrote: > > > Send from my phone > > > Op 17 mrt. 2023 om 21:11 heeft Marcelo Ricardo Leitner > > het volgende geschreven: > > > > On Thu, Mar 16, 2023 at 09:51:34AM +0100, Eelco Chaudron wrote: > >> > >> > >>> On 22 Dec 2022, at

Re: [ovs-dev] [PATCH ovn v3 1/2] CI: Add a couple of periodic jobs using ovn-fake-multinode.

2023-03-30 Thread Simon Horman
able for every push. > > [1] - > https://github.com/ovn-org/ovn-fake-multinode/blob/main/.ci/test_basic.sh > > Signed-off-by: Numan Siddique Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn v3 2/2] Add fake multinode system tests.

2023-03-30 Thread Simon Horman
ke_multinode setup > by running 'ovn_cluster.sh start'. > > This test suite is also triggered for the newly added fake multinode CI > job. > > The fake multinode system tests suite can be enhanced further for new > features and to cover multi node scenarios. > > Signed-off-b

[ovs-dev] [PATCH dpdk-latest v3 0/6] Add support for DPDK meter HW offload

2023-03-30 Thread Simon Horman
Hi, this series adds support for DPDK meter HW offload. Changes between v2 and v3. * Use common API for DPDK and non-DPDK meter offloads * Make use of netdev_ports_traverse to offload the meter * Add dpdk-latest to subject prefix Changes between v1 and v2: * Add the prox mechanism: add the

[ovs-dev] [PATCH dpdk-latest v3 1/6] netdev-offload-dpdk: use flow transfer proxy

2023-03-30 Thread Simon Horman
From: Peng Zhang Manage "transfer" flows via the corresponding mechanism. Doing so requires that the traffic source be specified explicitly, via the corresponding pattern item. Signed-off-by: Peng Zhang Signed-off-by: Jin Liu Co-authored-by: Jin Liu Signed-off-by: Simon Horman

Re: [ovs-dev] [PATCH ovn 1/4] northd: Break ACLs into two stages.

2023-03-31 Thread Simon Horman
On Fri, Mar 31, 2023 at 02:10:35PM +0200, Dumitru Ceara wrote: > On 3/31/23 13:52, Simon Horman wrote: > > On Tue, Mar 21, 2023 at 01:59:06PM -0400, Mark Michelson wrote: > >> Prior to this commit, ACLs were evaluated and acted on in a single > >> stage. With this

Re: [ovs-dev] [PATCH v10] netdev-offload-tc: del ufid mapping if device not exist.

2023-04-03 Thread Simon Horman
nd the loop has run the test 73014 times without recording any failures. I think we are good here :) Reviewed-by: Simon Horman Tested-by: Simon Horman > > > > +]) > > +NS_CHECK_EXEC([at_ns0], [ping -q -c 2 -i 0.2 10.1.1.3 | FORMAT_PING], [0], > > [dnl > > +2 packet

Re: [ovs-dev] [PATCH v2] learning-switch: Fix coredump of OpenFlow15 learning-switch

2023-04-03 Thread Simon Horman
> at utilities/ovs-testcontroller.c:180 > > Fix that by zeroing out the po variable. > > Fixes: 577bfa9f6879 ("ofp-util: Add OpenFlow 1.5 packet-out support") > Signed-off-by: Faicker Mo Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v3] ovs-dpctl: Add new command dpctl/ct-[sg]et-sweep-interval.

2023-04-06 Thread Simon Horman
lt reschedule time may be convenient in > some conditions, like debugging. > This patch introduces new commands allowing to get and set the sweep > interval in ms. > > Signed-off-by: Paolo Valerio Reviewed-by: Simon Horman ___ dev ma

Re: [ovs-dev] [PATCH v1 0/2] Add netdev-dpdk support for ingress and egress pkts policer.

2023-04-06 Thread Simon Horman
On Thu, Apr 06, 2023 at 02:13:00PM +0200, Ilya Maximets wrote: > On 4/6/23 08:38, Simon Horman wrote: > > On Wed, Apr 05, 2023 at 02:07:42PM +, lin huang wrote: > >> Hi Simon, > >> > >> : ) > >> Thanks for your reply. > >> > >>

Re: [ovs-dev] [PATCH ovn] northd: take into account qos_min_rate in port_has_qos_params

2023-04-06 Thread Simon Horman
On Thu, Apr 06, 2023 at 02:07:00PM +0200, Dumitru Ceara wrote: > On 4/5/23 14:43, Simon Horman wrote: > > On Tue, Apr 04, 2023 at 11:01:26PM +0200, Lorenzo Bianconi wrote: > >> Similar to qos_max_rate and qos_burst, take into account qos_min_rate in > >>

Re: [ovs-dev] [PATCH ovn v2] controller: Clear tunnels from old integration bridge

2023-04-06 Thread Simon Horman
On Mon, Apr 03, 2023 at 11:50:26AM +0200, Ales Musil wrote: > After integration bridge change the tunnels would > stay on the old bridge preventing new tunnels creation > and disrupting traffic. Detect the bridge change > and clear the tunnels from the old integration bridge. > > Reported-at:

Re: [ovs-dev] [PATCH ovn v8 1/2] northd: Update the is_stateless helper for rotuer nat

2023-04-10 Thread Simon Horman
Musil > --- > v8: No change since v7. Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v6] utilities/ofctl: add-meters for save and restore

2023-04-10 Thread Simon Horman
On Mon, Apr 10, 2023 at 09:23:46PM +0800, Wan Junjie via dev wrote: > put dump-meters' result in one line so add-meters can handle. > save and restore meters when restart ovs. > bundle functions are not implemented in this patch. > > Signed-off-by: Wan Junjie Hi, unfortunately this one doesn't

Re: [ovs-dev] [PATCH v9] utilities/ofctl: add-meters for save and restore

2023-04-11 Thread Simon Horman
On Tue, Apr 11, 2023 at 11:03:46AM +0800, Wan Junjie wrote: > put dump-meters' result in one line so add-meters can handle. > save and restore meters when restart ovs. > bundle functions are not implemented in this patch. > > Signed-off-by: Wan Junjie > > --- > v9: > fix verbosity mask bits for

Re: [ovs-dev] [PATCH ovn v2 3/4] ovn-nbctl: Add tier ACL options.

2023-04-11 Thread Simon Horman
On Mon, Apr 10, 2023 at 01:26:12PM -0400, Mark Michelson wrote: ... > diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c ... > @@ -2390,6 +2394,16 @@ nbctl_acl_add(struct ctl_context *ctx) > nbrec_acl_set_options(acl, ); > } > > +const char *tier_s =

Re: [ovs-dev] [PATCH ovn v2 2/4] northd: Add tiered ACL support.

2023-04-11 Thread Simon Horman
On Mon, Apr 10, 2023 at 01:26:11PM -0400, Mark Michelson wrote: > With this commit, ACLs can now be arranged in hierarchical tiers. A tier > number can be assigned to an ACL. When evaluating ACLs, we first will > consider ACLs at tier 0. If no matching ACL is found, then we move to > tier 1. This

Re: [ovs-dev] [PATCH v1 0/2] Add netdev-dpdk support for ingress and egress pkts policer.

2023-04-05 Thread Simon Horman
On Tue, Apr 04, 2023 at 01:46:05PM +, lin huang wrote: > Hi Ilya, > > Pls review my code. > > I want to add a new policer which is pps-based in netdev-dpdk module. > The policer is divided into ingress and egress part. Both use the ovs native > tocken bucket library as the counter. >

Re: [ovs-dev] [PATCH ovn] northd: rever ct.inv drop flows

2023-04-05 Thread Simon Horman
ding a flow per load-balancer backend. > > Signed-off-by: Lorenzo Bianconi Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [External] Re: [PATCH v5] utilities/ofctl: add-meters for save and restore

2023-04-05 Thread Simon Horman
Hi Wan Junjie, On Tue, Apr 04, 2023 at 03:42:47PM +0800, Wan Junjie wrote: > Hi Simon, > > On Wed, Mar 29, 2023 at 11:57 PM Simon Horman > wrote: > > On Fri, Mar 10, 2023 at 09:03:48PM +0800, Wan Junjie wrote: ... > > > @@ -805,5 +831,73 @@ ofputil_format_meter_mod

Re: [ovs-dev] [PATCH ovn] northd: take into account qos_min_rate in port_has_qos_params

2023-04-05 Thread Simon Horman
On Tue, Apr 04, 2023 at 11:01:26PM +0200, Lorenzo Bianconi wrote: > Similar to qos_max_rate and qos_burst, take into account qos_min_rate in > port_has_qos_params routine. > > Fixes: dbf12e5fe1f7 ("qos: add support for port minimum bandwidth guarantee") > Signed-off-by: Lorenzo Bianconi Hi

Re: [ovs-dev] [PATCH v4] OpenFlow: Add extn to set conntrack entries limit per zone.

2023-04-07 Thread Simon Horman
On Thu, Mar 30, 2023 at 08:17:18AM +, Naveen Yerramneni wrote: > Add OpenFlow extn to set conntrack entries limit per zone. > This extn will be used in future to set the zone level limit for > drop zones used by OVN. > > Signed-off-by: Naveen Yerramneni > Reviewe

Re: [ovs-dev] [PATCH net v3] net: openvswitch: fix race on port output

2023-04-07 Thread Simon Horman
On Fri, Apr 07, 2023 at 10:44:35AM +0200, Simon Horman wrote: > On Thu, Apr 06, 2023 at 07:05:13PM -0700, Jakub Kicinski wrote: > > On Wed, 5 Apr 2023 07:53:41 + Felix Huettner wrote: > > > assume the following setup on a single machine: > > > 1. An openvswit

Re: [ovs-dev] [PATCH ovn] northd: take into account qos_min_rate in port_has_qos_params

2023-04-07 Thread Simon Horman
On Thu, Apr 06, 2023 at 05:25:06PM +0200, Dumitru Ceara wrote: > On 4/6/23 14:45, Simon Horman wrote: > > On Thu, Apr 06, 2023 at 02:07:00PM +0200, Dumitru Ceara wrote: > >> On 4/5/23 14:43, Simon Horman wrote: > >>> On Tue, Apr 04, 2023 at 11:01:26PM +0200, Lorenzo

Re: [ovs-dev] [PATCH net v3] net: openvswitch: fix race on port output

2023-04-07 Thread Simon Horman
On Thu, Apr 06, 2023 at 07:05:13PM -0700, Jakub Kicinski wrote: > On Wed, 5 Apr 2023 07:53:41 + Felix Huettner wrote: > > assume the following setup on a single machine: > > 1. An openvswitch instance with one bridge and default flows > > 2. two network namespaces "server" and "client" > > 3.

Re: [ovs-dev] [PATCH v3] util: fix an issue that thread name cannot be set

2023-04-07 Thread Simon Horman
is longer than 16 bytes, the thread > name will fail to be set > > Signed-off-by: Songtao Zhan Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v3] learning-switch: Fix coredump of OpenFlow15 learning-switch

2023-04-07 Thread Simon Horman
> at utilities/ovs-testcontroller.c:180 > > Fix that by initing the flow metadata. > > Fixes: 35eb6326d5d0 ("ofp-util: Add flow metadata to ofputil_packet_out") > Signed-off-by: Faicker Mo Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] ovsdb-cs: fix 'cs_db' lock flag not updated error.

2023-04-07 Thread Simon Horman
On Fri, Apr 07, 2023 at 02:59:04PM +0800, wanghanlin wrote: > When 'cs' is not connected to a server, then > ovsdb_cs_db_compose_lock_request__ will update > 'cs_db' lock flag, but the lock flag will not > be updated next. > > Signed-off-by: wanghanlin Hi, Are there also error conditions where

Re: [ovs-dev] [PATCH ovn v3] controller: Clear tunnels from old integration bridge

2023-04-07 Thread Simon Horman
gt; > Reported-at: https://bugzilla.redhat.com/2173635 > Signed-off-by: Ales Musil Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn branch-22.09] ci: ovn-kubernetes: Pin ovn-k8s version.

2023-04-07 Thread Simon Horman
Ceara > > --- > > NOTE: this should be applied to branches 22.09, 22.06 and 22.03 (LTS). > > --- > > .ci/ovn-kubernetes/Dockerfile| 2 +- > > .github/workflows/ovn-kubernetes.yml | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) &

Re: [ovs-dev] [PATCH] flow: fix sanity check for unexpected ip header length field

2023-03-27 Thread Simon Horman
On Wed, Mar 15, 2023 at 05:11:01PM +0800, Faicker Mo wrote: > Derivation cases of CVE-2020-35498: > 1. invalid ipv4 header total-length field > 2. invalid ipv6 header payload-length field > These may cause unwanted flow to send to datapath. > > > Signed-off-by: Faicker Mo I think the immediate

Re: [ovs-dev] [PATCH v3] OpenFlow: Add extn to set conntrack entries limit per zone.

2023-03-29 Thread Simon Horman
. The code looks good to me, thanks for addressing by review of v2. > Signed-off-by: Naveen Yerramneni > Reviewed-by: Simon Horman > --- > Notes: > v1 -> v2 > - Fix memory leak and added logs > v2 -> v3 > - Addressed nits ... _

Re: [ovs-dev] [PATCH v9] netdev-offload-tc: del ufid mapping if device not exist

2023-03-29 Thread Simon Horman
he rest succeeded: a success rate of 99.95% :) As it's not entirely clear how reliable such a setup is (or our expectations for it) [1], I think I am ok with this patch. Reviewed-by: Simon Horman [1] https://mail.openvswitch.org/pipermail/ovs-dev/2023-March/403164.html For the record, of the failur

Re: [ovs-dev] Reliability of system-offload test #50 [Was: Re: [PATCH v3 2/2] ci: Run tc offload tests in GitHub] Actions.

2023-03-29 Thread Simon Horman
On Tue, Mar 28, 2023 at 01:45:22PM +0200, Eelco Chaudron wrote: > > > On 10 Mar 2023, at 17:20, Simon Horman wrote: > > > On Fri, Mar 10, 2023 at 10:15:44AM +0100, Simon Horman wrote: > >> On Thu, Mar 09, 2023 at 05:22:43PM +0100, Eelco Chaudron wrote: > >>&

Re: [ovs-dev] [PATCH v2] ovs-dpctl: Add new command dpctl/ct-sweep-next-run.

2023-03-29 Thread Simon Horman
lt reschedule time may be convenient in > some conditions, like debugging. > This patch introduces new commands allowing to get and set the sweep > next run in ms. > > Signed-off-by: Paolo Valerio Reviewed-by: Simon Horman ___ dev ma

Re: [ovs-dev] [PATCH v5] utilities/ofctl: add-meters for save and restore

2023-03-29 Thread Simon Horman
On Fri, Mar 10, 2023 at 09:03:48PM +0800, Wan Junjie wrote: > put dump-meters' result in one line so add-meters can handle. > save and restore meters when restart ovs. > bundle functions are not implemented in this patch. > > Signed-off-by: Wan Junjie > > --- > v5: > merge oneline to verbosity

Re: [ovs-dev] [PATCH v2] util: fix an issue that thread name cannot be set

2023-04-04 Thread Simon Horman
is longer than 16 bytes, the thread > name will fail to be set > > Signed-off-by: Songtao Zhan Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn 1/4] northd: Break ACLs into two stages.

2023-03-31 Thread Simon Horman
On Tue, Mar 21, 2023 at 01:59:06PM -0400, Mark Michelson wrote: > Prior to this commit, ACLs were evaluated and acted on in a single > stage. With this commit, evaluation of ACLs and acting on an ACL's > decision are separated into two stages. > > The acl_eval stage checks the ACL match and will

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

2023-03-31 Thread Simon Horman
On Mon, Mar 27, 2023 at 06:50:10AM -0400, Mike Pattrick wrote: > From: Flavio Leitner > > Document the implementation of netdev hardware offloading > in userspace datapath. > > Signed-off-by: Flavio Leitner > Co-authored-by: Mike Pattrick > Signed-off-by: Mike Pattr

Re: [ovs-dev] [PATCH 3/6] ovsdb: Allow conversion records with no data in a clustered storage.

2023-03-31 Thread Simon Horman
mmits targeting > conversion speed increase. > > Signed-off-by: Ilya Maximets Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 2/6] ovsdb: Check for ephemeral columns before writing a new schema.

2023-03-31 Thread Simon Horman
, because we shouldn't blindly > trust the storage. > > Signed-off-by: Ilya Maximets Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 1/6] ovsdb-tool: Fix cluster-to-standalone for DB conversion records.

2023-03-31 Thread Simon Horman
t; data. The database file will not be that similar to the original, > but there is no way to represent conversion in a standalone database > file format otherwise. > > Fixes: 00de46f9ee42 ("ovsdb-tool: Convert clustered db to standalone db.") > Sign

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

2023-03-31 Thread Simon Horman
Signed-off-by: Flavio Leitner > Co-authored-by: Mike Pattrick > Signed-off-by: Mike Pattrick > Reviewed-by: David Marchand Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 4/6] ovsdb: Perform conversion with no data for clustered databases.

2023-03-31 Thread Simon Horman
> Handled the same way as we did for the previous incompatible format > change in 2.15 (column diffs). > > Reported-at: > https://mail.openvswitch.org/pipermail/ovs-discuss/2022-December/052140.html > Signed-off-by: Ilya Maximets Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 5/6] ovsdb: Avoid converting database twice on an initiator.

2023-03-31 Thread Simon Horman
the storage. > > Keep the converted database from the first time around and use it > after reading the request back from the storage. This cuts in half > the conversion CPU cost. > > Signed-off-by: Ilya Maximets Reviewed-by: Simon Horman

Re: [ovs-dev] [PATCH 6/6] ovsdb: monitor: Keep and maintain the initial change set.

2023-03-31 Thread Simon Horman
end out all the monitor > replies in the example above. So, it's a 40x performance improvement. > On a more reasonable setup with 250 nodes, the process takes up to > 8-10 seconds instead of 4-5 minutes. > > Conditional monitoring will benefit from this change as well, however

Re: [ovs-dev] [PATCH v1 0/2] Add netdev-dpdk support for ingress and egress pkts policer.

2023-04-06 Thread Simon Horman
On Wed, Apr 05, 2023 at 02:07:42PM +, lin huang wrote: > Hi Simon, > > : ) > Thanks for your reply. > > There are some explanations about your comments. > > Best regards, Huang Lin. > > > -Original Message- > > From: Simon Horman >

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

2023-03-31 Thread Simon Horman
On Thu, Mar 30, 2023 at 09:04:02PM +0200, Ilya Maximets wrote: > On 3/30/23 11:45, Simon Horman wrote: > > On Fri, Mar 17, 2023 at 09:47:36PM +0100, Eelco Chaudron wrote: > >> > >> > >> Send from my phone > >> > >>> Op 17 mrt. 2023 om

Re: [ovs-dev] [PATCH v10] netdev-offload-tc: del ufid mapping if device not exist.

2023-03-31 Thread Simon Horman
On Thu, Mar 30, 2023 at 05:27:23PM +0800, Faicker Mo wrote: > The device may be deleted and added with ifindex changed. > The tc rules on the device will be deleted if the device is deleted. > The func tc_del_filter will fail when flow del. The mapping of > ufid to tc will not be deleted. > The

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

2023-03-31 Thread Simon Horman
On Fri, Mar 31, 2023 at 12:05:09PM +0200, Ilya Maximets wrote: > On 3/31/23 11:07, Simon Horman wrote: > > On Thu, Mar 30, 2023 at 09:04:02PM +0200, Ilya Maximets wrote: > >> On 3/30/23 11:45, Simon Horman wrote: > >>> On Fri, Mar 17, 2023 at 09:47:36PM +0100, Eelco

Re: [ovs-dev] [PATCH v10 01/11] tests: Include working system-traffic tests into the system-offloads-testsuite.

2023-02-03 Thread Simon Horman
On Thu, Feb 02, 2023 at 12:09:47PM +0100, Eelco Chaudron wrote: > 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 ... >

Re: [ovs-dev] [PATCH v2] id-pool: Refactor to use a bitmap.

2023-02-06 Thread Simon Horman
ecessary rather > than allocating the entire space at once. This makes the approach less > memory-intensive for id pools with a large theoretical maximum number of > values. > > Signed-off-by: Mark Michelson Reviewed-by: Simon Horman

Re: [ovs-dev] [PATCH v2 1/2] ofproto-ipfix: use per-domain template timeouts

2023-02-10 Thread Simon Horman
On Fri, Feb 10, 2023 at 12:30:58PM +0100, Adrian Moreno wrote: > > > On 1/25/23 16:35, Simon Horman wrote: > > On Tue, Jan 24, 2023 at 08:21:28PM +0100, Adrián Moreno wrote: > > > From: Adrian Moreno > > > > > > IPFIX templates have to be sent for e

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

2023-02-09 Thread Simon Horman
; investigation. They are: > > datapath - truncate and output to gre tunnel > datapath - truncate and output to gre tunnel by simulated packets > > These tests where executed on a Fedora37 machine with the kernel > 6.1.5-200.fc37.x86_64 installed. > > Signed-off-

Re: [ovs-dev] [PATCH v11 10/11] tests: Fix reading of OpenFlow byte counters in GRE test cases.

2023-02-09 Thread Simon Horman
On Thu, Feb 09, 2023 at 09:42:03AM +0100, Eelco Chaudron wrote: > > > On 8 Feb 2023, at 17:50, Simon Horman wrote: > > > On Tue, Feb 07, 2023 at 03:07:24PM +0100, Eelco Chaudron wrote: > >> With some datapaths, read TC, it takes a bit longer to update the > >&

Re: [ovs-dev] [PATCH v2] net: openvswitch: fix possible memory leak in ovs_meter_cmd_set()

2023-02-09 Thread Simon Horman
On Thu, Feb 09, 2023 at 05:32:40PM +0800, Hangyu Hua wrote: > old_meter needs to be free after it is detached regardless of whether > the new meter is successfully attached. > > Fixes: c7c4c44c9a95 ("net: openvswitch: expand the meters supported number") > Signed-off-by: Hangyu Hua > --- > >

Re: [ovs-dev] [PATCH v3] net: openvswitch: fix possible memory leak in ovs_meter_cmd_set()

2023-02-10 Thread Simon Horman
4c44c9a95 ("net: openvswitch: expand the meters supported number") > > Signed-off-by: Hangyu Hua > > Thanks for doing a v3. The change looks good to me! > > Acked-by: Eelco Chaudron Reviewed-by: Simon Horman ___ dev mailin

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

2023-02-02 Thread Simon Horman
On Thu, Feb 02, 2023 at 12:09:37PM +0100, 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

Re: [ovs-dev] [PATCH v10 01/11] tests: Include working system-traffic tests into the system-offloads-testsuite.

2023-02-04 Thread Simon Horman
On Fri, Feb 03, 2023 at 08:36:12PM +0100, Ilya Maximets wrote: > On 2/3/23 17:48, Simon Horman wrote: > > On Thu, Feb 02, 2023 at 12:09:47PM +0100, Eelco Chaudron wrote: > >> Include and run the system-traffic.at tests as part of the system offload > >> tests

Re: [ovs-dev] [PATCH v1 2/3] genetlink: Use string_is_valid() helper

2023-02-04 Thread Simon Horman
hould appear in the patch subject: [PATCH v1 net-next 1/3] genetlink: Use string_is_valid() helper That notwithstanding, Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v1 1/3] string_helpers: Move string_is_valid() to the header

2023-02-04 Thread Simon Horman
g_helpers: Move string_is_valid() That notwithstanding, Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH net-next v7 1/1] net:openvswitch:reduce cpu_used_mask memory

2023-02-04 Thread Simon Horman
On Fri, Feb 03, 2023 at 11:42:45PM +0800, Eddy Tao wrote: > Use actual CPU number instead of hardcoded value to decide the size > of 'cpu_used_mask' in 'struct sw_flow'. Below is the reason. > > 'struct cpumask cpu_used_mask' is embedded in struct sw_flow. > Its size is hardcoded to

Re: [ovs-dev] [PATCH v1 3/3] openvswitch: Use string_is_valid() helper

2023-02-04 Thread Simon Horman
hould appear in the patch subject: [PATCH v1 net-next 3/3] openvswitch: Use string_is_valid() That notwithstanding, Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] net: openvswitch: fix flow memory leak in ovs_flow_cmd_new

2023-02-01 Thread Simon Horman
On Tue, Jan 31, 2023 at 10:19:39PM +0300, Fedor Pchelkin wrote: > Syzkaller reports a memory leak of new_flow in ovs_flow_cmd_new() as it is > not freed when an allocation of a key fails. > > BUG: memory leak > unreferenced object 0x888116668000 (size 632): > comm "syz-executor231", pid

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: remove unnecessary vlan init in key_extract

2023-02-07 Thread Simon Horman
On Tue, Feb 07, 2023 at 12:31:33PM +0800, Eddy Tao wrote: > Redefine clear_vlan to initialize one struct vlan_head > Define clear_vlans to initialize key.eth.vlan and key.eth.cvlan > Calls the revised functions accurately > > Reasoning: > > For vlan packet, current code calls clear_vlan

Re: [ovs-dev] [PATCH v6] conntrack: Properly unNAT inner header of related traffic

2023-02-08 Thread Simon Horman
On Wed, Feb 08, 2023 at 07:29:27AM +0100, Ales Musil wrote: > On Tue, Feb 7, 2023 at 11:54 AM Simon Horman > wrote: > > > On Mon, Feb 06, 2023 at 12:46:10PM +0100, Ales Musil wrote: > > > The inner header was not handled properly. > > > Simplify the

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: extract nf_ct_handle_fragments to nf_conntrack_ovs

2023-02-08 Thread Simon Horman
e > done only when defrag returns 0, as it does in other places > in kernel. > > Signed-off-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCHv2 net-next 4/5] net: sched: move frag check and tc_skb_cb update out of handle_fragments

2023-02-08 Thread Simon Horman
ned-off-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCHv2 net-next 1/5] net: create nf_conntrack_ovs for ovs and tc use

2023-02-08 Thread Simon Horman
t; There are nf_ct_helper() and nf_ct_add_helper() from nf_conntrak_helper > in this patch, and will be more in the following patches. > > Signed-off-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mai

Re: [ovs-dev] [PATCHv2 net-next 3/5] openvswitch: move key and ovs_cb update out of handle_fragments

2023-02-08 Thread Simon Horman
; > Signed-off-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCHv2 net-next 2/5] net: extract nf_ct_skb_network_trim function to nf_conntrack_ovs

2023-02-08 Thread Simon Horman
ff-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

<    5   6   7   8   9   10   11   12   13   14   >