Re: [ovs-dev] [ovs-dev v4] dpif-netdev: fix dpif_netdev_flow_put

2023-07-05 Thread Eelco Chaudron
the correct megaflow instead of key lookup. Thanks for fixing Ilya’s comments! I’ve also copied in some of the v3 discussion, so we can wrap it up here. Acked-by: Eelco Chaudron //Eelco > Signed-off-by: Peng He > --- > lib/dpif-netdev.c | 62 ++---

Re: [ovs-dev] [PATCH] vswitchd: Wait for a bridge exit before replying to exit unixctl.

2023-07-05 Thread Eelco Chaudron
On 4 Jul 2023, at 15:11, Ilya Maximets wrote: > Before the cleanup option, the bridge_exit() call was fairly fast, > because it didn't include any particularly long operations. However, > with the cleanup flag, this function destroys a lot of datapath > resources freeing a lot of memory,

Re: [ovs-dev] [ovs-dev v12] ofproto-dpif-upcall: fix push_dp_ops

2023-07-05 Thread Eelco Chaudron
the test suite. > > Signed-off-by: Peng He Thanks for fixing the comments on v11. The changes look good, with one little nit (see below), but those can be applied during commit. Acked-by: Eelco Chaudron > --- > ofproto/ofproto-dpif-upcall.c | 50 +-- >

Re: [ovs-dev] [PATCH ovn v3 2/2] ci: Run the new check-system-dpdk tests as part of the ci.

2023-07-04 Thread Eelco Chaudron
On 4 Jul 2023, at 11:00, Ales Musil wrote: > On Mon, Jun 19, 2023 at 11:32 AM Eelco Chaudron wrote: > >> This patch includes changes made earlier by David in the >> ovs branch to cache the dpdk builds. >> >> Co-authored-by: David Marchand >> Signed-o

Re: [ovs-dev] [PATCH v6 0/9] Add vxlan gbp offload with TC

2023-07-04 Thread Eelco Chaudron
On 27 Jun 2023, at 12:48, Roi Dayan wrote: > Hi, > > This series adds TC offload support for filtering vxlan tunnels with gbp > option. > First 4 patches do some refactoring and the later patches adds the feature. > > Thanks, > Roi Thanks for following up on the series! I’ve applied the

Re: [ovs-dev] [PATCH v1] bridge ovs-vsctl Bridge IPFIX enable_input_sampling, enable_ouput_sampling fix unexpected values

2023-07-04 Thread Eelco Chaudron
On 4 Jul 2023, at 8:55, Sayali Naval (sanaval) via dev wrote: > As per the Open vSwitch Manual > (http://www.openvswitch.org/support/dist-docs/ovs-vsctl.8.txt) the Bridge > IPFIX parameters can be passed as follows: > > ovs-vsctl -- set Bridge br0 ipfix=@i \ > -- --id=@i

Re: [ovs-dev] [PATCH v2] bridge ovs-vsctl Bridge IPFIX enable_input_sampling, enable_ouput_sampling fix unexpected values

2023-07-04 Thread Eelco Chaudron
On 4 Jul 2023, at 3:39, Sayali Naval (sanaval) via dev wrote: > As per the Open vSwitch Manual > (http://www.openvswitch.org/support/dist-docs/ovs-vsctl.8.txt) the Bridge > IPFIX parameters can be passed as follows: > > ovs-vsctl -- set Bridge br0 ipfix=@i \ > -- --id=@i

Re: [ovs-dev] [PATCH 0/3] dpif: probe support for OVS_ACTION_ATTR_DROP

2023-06-30 Thread Eelco Chaudron
On 30 Jun 2023, at 14:33, Eric Garver wrote: > On Fri, Jun 30, 2023 at 08:57:15AM +0200, Eelco Chaudron wrote: >> >> >> On 29 Jun 2023, at 22:30, Eric Garver wrote: >> >>> Probe the datapath implementation for support of OVS_ACTION_ATTR_DROP. >>&g

Re: [ovs-dev] [PATCH 0/7] Improve linux QoS for exotic and fast links

2023-06-30 Thread Eelco Chaudron
On 5 Jun 2023, at 8:25, Adrian Moreno wrote: > On 6/5/23 08:22, Adrian Moreno wrote: >> >> On 6/2/23 16:13, Adrian Moreno wrote: >>> There are currently two issues that limit our ability to configure QoS >>> on certain cards in linux: >>> >>> 1) Firstly, the maximum link speed (which is used as

Re: [ovs-dev] [PATCH 0/3] dpif: probe support for OVS_ACTION_ATTR_DROP

2023-06-30 Thread Eelco Chaudron
On 29 Jun 2023, at 22:30, Eric Garver wrote: > Probe the datapath implementation for support of OVS_ACTION_ATTR_DROP. > Also add a new test case. Hi Eric, Thanks for the patch, but I get quite some build failures on missing switch cases. Can you take a look? If you build with the

Re: [ovs-dev] [PATCH] dpif-netdev: Lockless meters.

2023-06-30 Thread Eelco Chaudron
On 29 Jun 2023, at 17:54, Ilya Maximets wrote: > On 6/29/23 17:43, Eelco Chaudron wrote: >> >> >> On 22 Jun 2023, at 0:32, Ilya Maximets wrote: >> >>> Current implementation of meters in the userspace datapath takes >>> the meter lock for every pa

Re: [ovs-dev] [PATCH] dpif-netdev: Lockless meters.

2023-06-29 Thread Eelco Chaudron
On 22 Jun 2023, at 0:32, Ilya Maximets wrote: > Current implementation of meters in the userspace datapath takes > the meter lock for every packet batch. If more than one thread > hits the flow with the same meter, they will lock each other. > > Replace the critical section with atomic

Re: [ovs-dev] [PATCH v3] ofproto-dpif-upcall: Mirror packets that are modified

2023-06-29 Thread Eelco Chaudron
On 26 Jun 2023, at 15:43, Mike Pattrick wrote: > Currently OVS keeps track of which mirrors that each packet has been > sent to for the purpose of deduplication. However, this doesn't consider > that openflow rules can make significant changes to packets after > ingress. > > For example, OVN

Re: [ovs-dev] [PATCH v6 9/9] system-offloads-traffic.at: Add vxlan gbp offload test

2023-06-29 Thread Eelco Chaudron
On 27 Jun 2023, at 12:48, Roi Dayan wrote: > From: Gavin Li > > Add a vxlan gbp offload test case: > > vxlan offloads with gbp extention - ping between two ports - offloads > enabled ok > > Signed-off-by: Gavin Li > Reviewed-by: Roi Dayan > Reviewed-by: Simon Horman Some small comments

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

2023-06-29 Thread Eelco Chaudron
On 27 Jun 2023, at 12:48, 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 > Reviewed-by: Simon Horman > Acked-by: Eelco Chaudron &g

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

2023-06-27 Thread Eelco Chaudron
On 2 Jun 2023, at 16:13, 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 > because we

Re: [ovs-dev] [PATCH branch-3.1 2/2] Prepare for 3.1.3.

2023-06-27 Thread Eelco Chaudron
On 27 Jun 2023, at 14:16, Ilya Maximets wrote: > Signed-off-by: Ilya Maximets Changes look good. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH branch-3.1 1/2] Set release date for 3.1.2.

2023-06-27 Thread Eelco Chaudron
On 27 Jun 2023, at 14:16, Ilya Maximets wrote: > Signed-off-by: Ilya Maximets Changes look good. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH branch-2.17 1/2] Set release date for 2.17.7.

2023-06-27 Thread Eelco Chaudron
On 27 Jun 2023, at 14:16, Ilya Maximets wrote: > Signed-off-by: Ilya Maximets Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH branch-2.17 2/2] Prepare for 2.17.8.

2023-06-27 Thread Eelco Chaudron
9..673f22720 100644 Change look good, and as you mentioned it’s good the have a new release ;) Acked-by: Eelco Chaudron > --- a/NEWS > +++ b/NEWS > @@ -1,3 +1,6 @@ > +v2.17.8 - xx xxx > +- > + > v2.17.7 - 27 Jun 2023 > --

Re: [ovs-dev] [PATCH v2] ofproto-dpif-upcall: Mirror packets that are modified

2023-06-26 Thread Eelco Chaudron
On 23 Jun 2023, at 19:07, Mike Pattrick wrote: > Currently OVS keeps track of which mirrors that each packet has been > sent to for the purpose of deduplication. However, this doesn't consider > that openflow rules can make significant changes to packets after > ingress. > > For example, OVN

Re: [ovs-dev] [ovs-dev v3] dpif-netdev: fix dpif_netdev_flow_put

2023-06-23 Thread Eelco Chaudron
On 15 Jun 2023, at 4:51, Peng He wrote: > OVS allows overlapping megaflows, as long as the actions of these > megaflows are equal. However, the current implementation of action > modification relies on flow_lookup instead of ufid, this could result > in looking up a wrong megaflow and make the

Re: [ovs-dev] [PATCH] checkpatch: Ignore yml files when checking line lenghts.

2023-06-23 Thread Eelco Chaudron
On 23 Jun 2023, at 14:33, Dumitru Ceara wrote: > On 6/23/23 14:23, Eelco Chaudron wrote: >> >> >> On 23 Jun 2023, at 14:22, Eelco Chaudron wrote: >> >>> On 23 Jun 2023, at 14:12, Dumitru Ceara wrote: >>> >>>> As far as I can tell they'

Re: [ovs-dev] [PATCH] checkpatch: Ignore yml files when checking line lenghts.

2023-06-23 Thread Eelco Chaudron
On 23 Jun 2023, at 14:22, Eelco Chaudron wrote: > On 23 Jun 2023, at 14:12, Dumitru Ceara wrote: > >> As far as I can tell they're used mostly for CI job definitions and >> these tend to result in long lines. >> >> Reported-at: >> https://mail.openvswitch.or

Re: [ovs-dev] [PATCH] checkpatch: Ignore yml files when checking line lenghts.

2023-06-23 Thread Eelco Chaudron
nole > Signed-off-by: Dumitru Ceara Looks good to me. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [ovs-dev v11] ofproto-dpif-upcall: fix push_dp_ops

2023-06-23 Thread Eelco Chaudron
On 9 Jun 2023, at 17:03, Peng He wrote: > push_dp_ops only handles delete ops errors but ignores the modify > ops results. It's better to handle all the dp operation errors in > a consistent way. > > This patch prevents the inconsistency by considering modify failure > in revalidators. > > To

Re: [ovs-dev] [PATCH v5 9/9] system-offloads-traffic.at: Add vxlan gbp offload test

2023-06-23 Thread Eelco Chaudron
On 23 Jun 2023, at 12:57, Simon Horman wrote: > On Fri, Jun 23, 2023 at 11:16:50AM +0200, Eelco Chaudron wrote: >> >> >> On 19 Jun 2023, at 13:56, Roi Dayan wrote: >> >>> From: Gavin Li >>> >>> Add a vxlan gbp offload test case: >>

Re: [ovs-dev] [PATCH v5 9/9] system-offloads-traffic.at: Add vxlan gbp offload test

2023-06-23 Thread Eelco Chaudron
On 19 Jun 2023, at 13:56, Roi Dayan wrote: > From: Gavin Li > > Add a vxlan gbp offload test case: > > vxlan offloads with gbp extention - ping between two ports - offloads > enabled ok > > Signed-off-by: Gavin Li > Reviewed-by: Roi Dayan > Reviewed-by: Simon Horman > --- Thanks for

Re: [ovs-dev] [PATCH v5 8/9] netdev-tc-offloads: Probe for allowing vxlan gbp support

2023-06-23 Thread Eelco Chaudron
h 7 and this one. But I don’t think it should block the series. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-06-23 Thread Eelco Chaudron
On 23 Jun 2023, at 10:44, Eelco Chaudron wrote: > On 19 Jun 2023, at 13:56, 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 >> Revi

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

2023-06-23 Thread Eelco Chaudron
ok good to me, one small nit, but not worth sending a new rev (maybe it can be fixed during commit). Acked-by: Eelco Chaudron > --- > acinclude.m4 | 7 > include/linux/tc_act/tc_tunnel_key.h | 17 +++- > lib/netdev-offload-tc.c |

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

2023-06-23 Thread Eelco Chaudron
named > struct and pass it entirely. > > Signed-off-by: Gavin Li > Reviewed-by: Roi Dayan > Reviewed-by: Simon Horman Thanks for following up! The changes look good to me. Acked-by: Eelco Chaudron ___ dev mailing l

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

2023-06-23 Thread Eelco Chaudron
p! The changes look good to me. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-06-23 Thread Eelco Chaudron
ed by > message policy. To avoid this, add NLA_F_NESTED explicitly for all > nested netlink messages with a new function > nl_msg_start_nested_with_flag(). > > Signed-off-by: Gavin Li > Reviewed-by: Roi Dayan > Reviewed-by: Simon Horman Thanks for following up! The chang

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

2023-06-23 Thread Eelco Chaudron
changes look good to me. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-06-23 Thread Eelco Chaudron
changes look good to me. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-06-23 Thread Eelco Chaudron
support more vxlan > options in the future, change the function arguments to pass tunnel > entirely to it instead of keep adding new arguments. > > Signed-off-by: Gavin Li > Reviewed-by: Roi Dayan > Reviewed-by: Simon Horman Thanks for following up! The changes look g

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

2023-06-22 Thread Eelco Chaudron
ug.cgi?id=2104779 > Signed-off-by: Mike Pattrick > Reviewed-by: Simon Horman Changes look good to me, one small nit below, but not related to your changes. So if no more revs are needed, we can leave it as is. Acked-by: Eelco Chaudron > --- > Since v1: > - Refactored code int

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

2023-06-22 Thread Eelco Chaudron
On 22 Jun 2023, at 13:29, Ilya Maximets wrote: > On 6/22/23 11:30, Eelco Chaudron wrote: >> >> >> On 22 Jun 2023, at 11:15, Ilya Maximets wrote: >> >>> On 6/22/23 10:50, Eelco Chaudron wrote: >>>> >>>> >>>> On 30 May 2023,

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

2023-06-22 Thread Eelco Chaudron
On 22 Jun 2023, at 11:15, Ilya Maximets wrote: > On 6/22/23 10:50, Eelco Chaudron wrote: >> >> >> On 30 May 2023, at 9:32, Eelco Chaudron wrote: >> >>> On 26 May 2023, at 22:51, Ilya Maximets wrote: >>> >>>> On 5/26/23 15:09, Eelco C

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

2023-06-22 Thread Eelco Chaudron
On 30 May 2023, at 9:32, Eelco Chaudron wrote: > On 26 May 2023, at 22:51, Ilya Maximets wrote: > >> On 5/26/23 15:09, Eelco Chaudron wrote: >>> >>> >>> On 26 May 2023, at 14:03, Balazs Nemeth wrote: >>> >>>> The only way that stats-&g

Re: [ovs-dev] [PATCH] MAINTAINERS: Add Eelco Chaudron

2023-06-21 Thread Eelco Chaudron
On 21 Jun 2023, at 14:50, Simon Horman wrote: > Eelco Chaudron was elected by the Open vSwitch committers yesterday. > This formalises his status as an Open vSwitch committer. > > Welcome Eelco! Not sire if I should ack ;) Acked-by: Eelco Chaudron > Signed-off-b

Re: [ovs-dev] Request adding long poll interval metrics to coverage metrics

2023-06-21 Thread Eelco Chaudron
On 20 Jun 2023, at 16:57, Ilya Maximets wrote: > On 6/20/23 16:10, Aaron Conole wrote: >> Adrian Moreno writes: >> >>> On 6/19/23 10:36, Eelco Chaudron wrote: >>>> On 16 Jun 2023, at 19:19, Aaron Conole wrote: >>>> >>>>> Martin Ke

Re: [ovs-dev] [PATCH] dpif: Add coverage counters for dpif_operate() failures.

2023-06-20 Thread Eelco Chaudron
On 20 Jun 2023, at 16:17, Aaron Conole wrote: > Eelco Chaudron writes: > >> Add additional error coverage counters for dpif operation failures. >> This could help to quickly identify netlink problems when communicating >> with the OVS kernel module.

[ovs-dev] [PATCH] dpif: Add coverage counters for dpif_operate() failures.

2023-06-19 Thread Eelco Chaudron
Add additional error coverage counters for dpif operation failures. This could help to quickly identify netlink problems when communicating with the OVS kernel module. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2070630 Signed-off-by: Eelco Chaudron --- lib/dpif.c | 39

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

2023-06-19 Thread Eelco Chaudron
> > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > Acked-by: Eelco Chaudron Thanks for making all the suggested changes to this series. This is my final ack, which should conclude the series :) Acked-by: Eelco Chaudron //Eelco ___

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

2023-06-19 Thread Eelco Chaudron
Mi > Reviewed-by: Roi Dayan Thanks for making all the suggested changes. Acked-by: Eelco Chaudron //Eelco ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v28 5/8] netdev-offload: Add netdev offload recv and recv_wait APIs

2023-06-19 Thread Eelco Chaudron
On 19 Jun 2023, at 7:05, Chris Mi wrote: > Iterate each registered offload API. It's not a problem for today > since we only have one implementation. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > --- > You forgot to include my ACK on v27. So here it is ag

Re: [ovs-dev] [PATCH v28 6/8] dpif-netlink: Add netdev offload recv in normal recv upcalls

2023-06-19 Thread Eelco Chaudron
ait. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan You forgot to include my ACK on v27. So here it is again: Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-06-19 Thread Eelco Chaudron
to include my ACK on v27. So here it is again: Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-06-19 Thread Eelco Chaudron
D, userspace can recover the sample > info and send sampled packet to the right sample monitoring host. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan Thanks for making all the suggested changes. Acked-by: Eelco Chaudron //Eelco __

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

2023-06-19 Thread Eelco Chaudron
On 19 Jun 2023, at 7:01, Chris Mi wrote: > >>> +if (err) { >>> +VLOG_ERR_RL(_rl, "No OVS_ACTION_ATTR_USERSPACE attribute"); >>> +} >>> +return err; >>> +} >>> + >>> +static void >>> +offload_sample_init(struct offload_sample *sample, >>> +const struct

[ovs-dev] [PATCH ovn v3 2/2] ci: Run the new check-system-dpdk tests as part of the ci.

2023-06-19 Thread Eelco Chaudron
This patch includes changes made earlier by David in the ovs branch to cache the dpdk builds. Co-authored-by: David Marchand Signed-off-by: David Marchand Signed-off-by: Eelco Chaudron --- v2: Replaced 'sleep 1' with '' after consulting with Dumitru. v3: No changes Note that I ran the full

[ovs-dev] [PATCH ovn v3 1/2] tests: add make check-system-dpdk to test suite.

2023-06-19 Thread Eelco Chaudron
Allow the ovn-system tests to run on the OVS-DPDK infrastructure, i.e., DPDK ports and mbuf memory. Co-authored-by: David Marchand Signed-off-by: David Marchand Signed-off-by: Eelco Chaudron --- v2: No changes. v3: Add 'dpdk-extra="--log-level=pmd.*:error --no-pci"' to test init

Re: [ovs-dev] Request adding long poll interval metrics to coverage metrics

2023-06-19 Thread Eelco Chaudron
On 16 Jun 2023, at 19:19, Aaron Conole wrote: > Martin Kennelly writes: > >> Hey ovs community, >> >> I am a developer working on ovn-kubernetes and I want to programmatically >> consume long poll information >> i.e: >> ovs|00211|timeval(handler25)|WARN|Unreasonably long 52388ms poll

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

2023-06-16 Thread Eelco Chaudron
> > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > Acked-by: Eelco Chaudron See some comments inline below. //Eelco > --- > Documentation/howto/tc-offload.rst | 24 + > tests/system-offloads-traffic.at | 152 + > 2 files ch

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

2023-06-16 Thread Eelco Chaudron
On 1 Jun 2023, at 13:16, Chris Mi wrote: > Create a unique group ID to map the sFlow info when offloading sample > action to TC. When showing the offloaded datapath flows, translate the > group ID from TC sample action to sFlow info using the mapping. > > Signed-off-by: Chris Mi > Reviewed-by:

Re: [ovs-dev] [PATCH v27 6/8] dpif-netlink: Add netdev offload recv in normal recv upcalls

2023-06-16 Thread Eelco Chaudron
ait. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan Thanks for working trough all the revisions. This one looks good... Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v27 5/8] netdev-offload: Add netdev offload recv and recv_wait APIs

2023-06-16 Thread Eelco Chaudron
On 1 Jun 2023, at 13:16, Chris Mi wrote: > Iterate each registered offload API. It's not a problem for today > since we only have one implementation. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan Thanks for working trough all the revisions. This one looks good...

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

2023-06-16 Thread Eelco Chaudron
working trough all the revisions. This one looks good... Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-06-16 Thread Eelco Chaudron
On 1 Jun 2023, at 13:16, Chris Mi wrote: > When offloading sample action to TC, userspace creates a unique ID > to map sample action and tunnel info and passes this ID to kernel > instead of the sample info. Kernel will send this ID and sampled > packet to userspace. Using the ID, userspace can

Re: [ovs-dev] [PATCH v27 0/8] Add offload support for sFlow

2023-06-16 Thread Eelco Chaudron
On 1 Jun 2023, at 13:16, Chris Mi wrote: > This patch set adds offload support for sFlow. > > Psample is a genetlink channel for packet sampling. TC action act_sample > uses psample to send sampled packets to userspace. > > When offloading sample action to TC, userspace creates a unique ID to >

Re: [ovs-dev] [PATCH v2] Add editorconfig file

2023-06-12 Thread Eelco Chaudron
On 12 Jun 2023, at 17:07, Mike Pattrick wrote: > On Mon, Jun 12, 2023 at 10:54 AM Eelco Chaudron wrote: >> >> >> >> On 12 Jun 2023, at 15:11, Mike Pattrick wrote: >> >>> On Tue, May 30, 2023 at 10:23 AM Robin Jarry wrote: >>>> >>&g

Re: [ovs-dev] [PATCH v2] Add editorconfig file

2023-06-12 Thread Eelco Chaudron
On 12 Jun 2023, at 15:11, Mike Pattrick wrote: > On Tue, May 30, 2023 at 10:23 AM Robin Jarry wrote: >> >> EditorConfig is a file format and collection of text editor plugins for >> maintaining consistent coding styles between different editors and IDEs. >> >> Initialize the file following the

Re: [ovs-dev] [PATCH ovn v2 1/2] tests: add make check-system-dpdk to test suite.

2023-06-12 Thread Eelco Chaudron
On 9 Jun 2023, at 17:08, Ilya Maximets wrote: > On 6/9/23 16:40, Eelco Chaudron wrote: >> Allow the ovn-system tests to run on the OVS-DPDK infrastructure, >> i.e., DPDK ports and mbuf memory. >> >> Co-authored-by: David Marchand >> Signed-off-by: David

[ovs-dev] [PATCH ovn v2 2/2] ci: Run the new check-system-dpdk tests as part of the ci.

2023-06-09 Thread Eelco Chaudron
This patch includes changes made earlier by David in the ovs branch to cache the dpdk builds. Co-authored-by: David Marchand Signed-off-by: David Marchand Signed-off-by: Eelco Chaudron --- v2: Replaced 'sleep 1' with '' after consulting with Dumitru. Note that I ran the full GitHub ci 20x

[ovs-dev] [PATCH ovn v2 1/2] tests: add make check-system-dpdk to test suite.

2023-06-09 Thread Eelco Chaudron
Allow the ovn-system tests to run on the OVS-DPDK infrastructure, i.e., DPDK ports and mbuf memory. Co-authored-by: David Marchand Signed-off-by: David Marchand Signed-off-by: Eelco Chaudron --- v2: No changes for this patch. tests/automake.mk | 23 +++-- tests/ofproto

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

2023-06-09 Thread Eelco Chaudron
On 25 May 2023, at 22:34, 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 > xlate_resubmit_resource_check() is able to

Re: [ovs-dev] [ovs-dev v10] ofproto-dpif-upcall: fix push_dp_ops

2023-06-09 Thread Eelco Chaudron
On 3 Jun 2023, at 2:01, Peng He wrote: > push_dp_ops only handles delete ops errors but ignores the modify > ops results. It's better to handle all the dp operation errors in > a consistent way. > > This patch prevents the inconsistency by considering modify failure > in revalidators. > > To

Re: [ovs-dev] [PATCH] fatal-signal: Don't share signal fds/handles with forked process.

2023-06-09 Thread Eelco Chaudron
fen...@inspur.com/ > Signed-off-by: Ilya Maximets The changes look good to me. Only tested on linux, and looking up the APIs on Windows, that part seems fine. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] dpif-netdev: fix dpif_netdev_flow_put

2023-06-08 Thread Eelco Chaudron
On 2 Jun 2023, at 20:42, Peng He wrote: > OVS allows overlapping megaflows, as long as the actions of these > megaflows are equal. However, the current implementation of action > modification relies on flow_lookup instead of ufid, this could result > in looking up a wrong megaflow and make the

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

2023-06-08 Thread Eelco Chaudron
On 18 May 2023, at 22:08, 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 > xlate_resubmit_resource_check() is able to

[ovs-dev] [PATCH ovn 2/2] ci: Run the new check-system-dpdk tests as part of the ci.

2023-06-07 Thread Eelco Chaudron
This patch includes changes made earlier by David in the ovs branch to cache the dpdk builds. Co-authored-by: David Marchand Signed-off-by: David Marchand Signed-off-by: Eelco Chaudron --- .ci/ci.sh | 12 ++- .ci/dpdk-build.sh | 54

[ovs-dev] [PATCH ovn 1/2] tests: add make check-system-dpdk to test suite.

2023-06-07 Thread Eelco Chaudron
Allow the ovn-system tests to run on the OVS-DPDK infrastructure, i.e., DPDK ports and mbuf memory. Co-authored-by: David Marchand Signed-off-by: David Marchand Signed-off-by: Eelco Chaudron --- tests/automake.mk | 23 +++-- tests/ofproto-macros.at|9 ++- tests

Re: [ovs-dev] [PATCH 1/2] tests: add make check-system-dpdk to test suite.

2023-06-07 Thread Eelco Chaudron
Forgot to put OVN in the title will resend it, so the correct patchwork will pick it up :( //Eelco On 7 Jun 2023, at 10:58, Eelco Chaudron wrote: > Allow the ovn-system tests to run on the OVS-DPDK infrastructure, > i.e., DPDK ports and mbuf memory. > > Co-authored-by: Da

Re: [ovs-dev] [PATCH net v2] net: openvswitch: fix upcall counter access before allocation

2023-06-07 Thread Eelco Chaudron
On 7 Jun 2023, at 3:05, wangchuanlei wrote: > Thanks for fix this, in common enviroment, it's a > small probability event. Well, on ARM, they could replicate it a couple of times, but I guess the system was under memory pressure and has a lot of cores. >> Eelco Chau

[ovs-dev] [PATCH 2/2] ci: Run the new check-system-dpdk tests as part of the ci.

2023-06-07 Thread Eelco Chaudron
This patch includes changes made earlier by David in the ovs branch to cache the dpdk builds. Co-authored-by: David Marchand Signed-off-by: David Marchand Signed-off-by: Eelco Chaudron --- .ci/ci.sh | 12 ++- .ci/dpdk-build.sh | 54

[ovs-dev] [PATCH 1/2] tests: add make check-system-dpdk to test suite.

2023-06-07 Thread Eelco Chaudron
Allow the ovn-system tests to run on the OVS-DPDK infrastructure, i.e., DPDK ports and mbuf memory. Co-authored-by: David Marchand Signed-off-by: David Marchand Signed-off-by: Eelco Chaudron --- tests/automake.mk | 23 +++-- tests/ofproto-macros.at|9 ++- tests

Re: [ovs-dev] [PATCH net] net: openvswitch: fix upcall counter access before allocation

2023-06-06 Thread Eelco Chaudron
On 6 Jun 2023, at 13:43, Paolo Abeni wrote: > On Mon, 2023-06-05 at 16:38 +0200, Simon Horman wrote: >> On Mon, Jun 05, 2023 at 03:53:59PM +0200, Eelco Chaudron wrote: >>>> Yeah, I see that. And I might have done the same thing. >>>> But, OTOH, this change is m

[ovs-dev] [PATCH net v2] net: openvswitch: fix upcall counter access before allocation

2023-06-06 Thread Eelco Chaudron
0f06079f90 We moved the per cpu upcall counter allocation to the existing vport alloc and free functions to solve this. Fixes: 95637d91fefd ("net: openvswitch: release vport resources on failure") Fixes: 1933ea365aa7 ("net: openvswitch: Add support to count upcall packets"

Re: [ovs-dev] [PATCH net] net: openvswitch: fix upcall counter access before allocation

2023-06-05 Thread Eelco Chaudron
On 5 Jun 2023, at 15:07, Simon Horman wrote: > On Mon, Jun 05, 2023 at 02:54:35PM +0200, Eelco Chaudron wrote: >> >> >> On 5 Jun 2023, at 14:41, Simon Horman wrote: >> >>> On Mon, Jun 05, 2023 at 10:59:50AM +0200, Eelco Chaudron wrote: >>>> Curr

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

2023-06-05 Thread Eelco Chaudron
ing the mutex, so the current behavior is not changing. The seq_read() behavior is already defined as, "Returns seq's current sequence number (which could change immediately)". So the change should not impact the current behavior. Signed-off-by: Eelco Chaudron --- v2: Update acquir

Re: [ovs-dev] [PATCH net] net: openvswitch: fix upcall counter access before allocation

2023-06-05 Thread Eelco Chaudron
On 5 Jun 2023, at 14:41, Simon Horman wrote: > On Mon, Jun 05, 2023 at 10:59:50AM +0200, Eelco Chaudron wrote: >> Currently, the per cpu upcall counters are allocated after the vport is >> created and inserted into the system. This could lead to the datapath >> accessin

[ovs-dev] [PATCH net] net: openvswitch: fix upcall counter access before allocation

2023-06-05 Thread Eelco Chaudron
0f06079f90 We moved the per cpu upcall counter allocation to the existing vport alloc and free functions to solve this. Fixes: 95637d91fefd ("net: openvswitch: release vport resources on failure") Fixes: 1933ea365aa7 ("net: openvswitch: Add support to count upcall packets")

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

2023-06-02 Thread Eelco Chaudron
On 2 Jun 2023, at 17:12, Peng He wrote: > Hi, Eelco and Ilya, > I have sent a new version of this patch with a test case. Thanks! I’ll try to review it asap, but I have a bit of a review backlog :( //Eelco > Eelco Chaudron 于2023年5月15日周一 15:45写道: > >> >> >> On

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

2023-06-02 Thread Eelco Chaudron
On 2 Jun 2023, at 17:12, Peng He wrote: > Hi, Eelco and Ilya, > I have sent a new version of this patch with a test case. Nice… > Eelco Chaudron 于2023年5月15日周一 15:45写道: > >> >> >> On 12 May 2023, at 3:57, Peng He wrote: >> >>> Hi, >

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

2023-06-01 Thread Eelco Chaudron
On 26 May 2023, at 10:24, Chris Mi wrote: > 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), >&

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

2023-06-01 Thread Eelco Chaudron
On 26 May 2023, at 10:21, Chris Mi wrote: > 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_defi

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

2023-06-01 Thread Eelco Chaudron
On 26 May 2023, at 10:19, Chris Mi wrote: > 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_samp

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

2023-06-01 Thread Eelco Chaudron
On 26 May 2023, at 10:18, Chris Mi wrote: > 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 &g

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

2023-06-01 Thread Eelco Chaudron
On 26 May 2023, at 10:17, Chris Mi wrote: > 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 =

Re: [ovs-dev] [PATCH] netdev-offload: Fix some typos.

2023-05-31 Thread Eelco Chaudron
t;) > Signed-off-by: David Marchand Changes look god to me (visual inspection only). Acked-by: Eelco Chaudron > --- > lib/netdev-offload-dpdk.c | 2 +- > lib/netdev-offload.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/netdev-offlo

Re: [ovs-dev] [PATCH v3] dpif-netdev: Use unmasked key when adding datapath flows.

2023-05-31 Thread Eelco Chaudron
em also exists in the real world when the end-user changes the OpenFlow rules. //Eelco > Eelco Chaudron 于2022年11月28日周一 16:53写道: > >> The datapath supports installing wider flows, and OVS relies on >> this behavior. For example if ipv4(src=1.1.1.1/192.0.0.0, >> dst=1.1.1.2/

Re: [ovs-dev] [ovs-discuss] Is there further plan for OVS STP testing?

2023-05-31 Thread Eelco Chaudron
On 30 May 2023, at 10:39, Hao Jue PX Wang via discuss wrote: Hello team, In this stable release doc link https://docs.openvswitch.org/en/stable/faq/issues/, I found this description of STP, I am wondering is there further plan for OVS STP testing? as this STP is very useful in preventing

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

2023-05-30 Thread Eelco Chaudron
On 26 May 2023, at 22:51, Ilya Maximets wrote: > 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

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 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 t

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, Ee

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

2023-05-26 Thread Eelco Chaudron
wed-by: Simon Horman > Signed-off-by: Frode Nordahl Thanks Frode for the v4, it looks good to me. And if you sent out a v5 with only Ilya’s suggested change you can keep my ack. Acked-by: Eelco Chaudron ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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 a missing “,” compared to the dp flow dump, but I think Ilya can add this on commit. Acked-by: Eelco Chaudron //Eelco > --- > ofproto/ofproto-dpif-upcall.c | 30 -- > 1 file changed, 24 insertions(+), 6 deletions(-) > > diff --git a/ofproto/o

<    2   3   4   5   6   7   8   9   10   11   >