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 v3 6/7] tc: Pass encap entirely to nl_msg_put_act_tunnel_key_set

2023-05-26 Thread Eelco Chaudron
named > struct and pass it entirely. > > Signed-off-by: Gavin Li > Reviewed-by: Roi Dayan > Reviewed-by: Simon Horman This looks good to me! Thanks for cleaning this up, looks way better this way. Acked-by: Eelco Chaudron ___ dev mai

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 t

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

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
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 The changes look good

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

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

2023-05-26 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 The changes look g

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

2023-05-24 Thread Eelco Chaudron
On 24 May 2023, at 21:05, Ilya Maximets wrote: > On 5/23/23 15:11, 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

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

2023-05-24 Thread Eelco Chaudron
y: Balazs Nemeth Thanks for all the re-work, this revision looks good to me. Acked-by: Eelco Chaudron Cheers, Eelco ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-05-22 Thread Eelco Chaudron
On 22 May 2023, at 12:32, Frode Nordahl wrote: > On Mon, May 22, 2023 at 11:33 AM Eelco Chaudron wrote: >> >> >> >> On 19 May 2023, at 12:31, Frode Nordahl wrote: >> >>> On Fri, May 19, 2023 at 11:55 AM Eelco Chaudron wrote: >>>> >&g

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

2023-05-22 Thread Eelco Chaudron
On 19 May 2023, at 12:31, Frode Nordahl wrote: > On Fri, May 19, 2023 at 11:55 AM Eelco Chaudron wrote: >> >> >> >> On 15 May 2023, at 10:04, Frode Nordahl wrote: >> >>> The tc module combines the use of the `tc_transact` helper >>&g

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

2023-05-19 Thread Eelco Chaudron
On 17 May 2023, at 17:05, 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

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

2023-05-19 Thread Eelco Chaudron
On 15 May 2023, at 10:04, 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 v5] ofproto-dpif-upcall: Don't set statistics to 0 when they jump back

2023-05-17 Thread Eelco Chaudron
On 31 Mar 2023, at 15:19, Eelco Chaudron wrote: > On 31 Mar 2023, at 15:15, Ilya Maximets wrote: > >> On 3/31/23 15:06, Eelco Chaudron wrote: >>> >>> >>> On 31 Mar 2023, at 12:38, Simon Horman wrote: >>> >>>> On Fri, Mar 31, 2023 at 1

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

2023-05-17 Thread Eelco Chaudron
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, a

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

2023-05-16 Thread Eelco Chaudron
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, Ilya Maximets wrote: >> >>> On 3/27/23 13:25, Eelco Chaudron wrote: >>>> Make the read of the current seq->value atomic,

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

2023-05-15 Thread Eelco Chaudron
On 4 May 2023, at 0:55, Ilya Maximets wrote: > On 3/27/23 13:25, Eelco Chaudron wrote: >> Make the read of the current seq->value atomic, i.e., not needing to >> acquire the global mutex when reading it. On 64-bit systems, this >> incurs no overhead, and it will avoid t

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

2023-05-15 Thread Eelco Chaudron
On 12 May 2023, at 3:57, Peng He wrote: > Hi, > > > Eelco Chaudron 于2023年5月11日周四 15:04写道: > >> >> >> On 4 May 2023, at 9:50, Peng He wrote: >> >>> Hi, >>> >>> sorry for the late reply. >>> >>> Yes, basically

Re: [ovs-dev] [RESEND PATCH net-next] net: openvswitch: Use struct_size()

2023-05-15 Thread Eelco Chaudron
On 13 May 2023, at 9:25, Christophe JAILLET wrote: > Use struct_size() instead of hand writing it. > This is less verbose and more informative. > > Signed-off-by: Christophe JAILLET Change looks good to me. Acked-by: Eelco Chaudron ___

Re: [ovs-dev] [PATCH v3 2/2] netdev-dpdk: Add support for userspace port-based ingress packet-per-second policing.

2023-05-11 Thread Eelco Chaudron
On 1 May 2023, at 13:33, mit...@outlook.com wrote: > From: Lin Huang > > OvS has supported packet-per-second policer which can be set at ingress > and egress side in kernel datapath. But the userspace datapath dosen't > support for ingress and egress packet-per-second policing now. > > So,

Re: [ovs-dev] [PATCH v3 1/2] netdev-dpdk: Add support for userspace port-based egress packet-per-second policing.

2023-05-11 Thread Eelco Chaudron
On 1 May 2023, at 13:33, mit...@outlook.com wrote: > From: Lin Huang > > OvS has supported packet-per-second policer which can be set at ingress > and egress side in kernel datapath. But the userspace datapath dosen't > support for ingress and egress packet-per-second policing now. > > So,

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

2023-05-11 Thread Eelco Chaudron
On 10 May 2023, at 23:41, Ilya Maximets wrote: > On 5/9/23 16:29, 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 some >> debugging, it was discovered that the ne

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

2023-05-11 Thread Eelco Chaudron
On 4 May 2023, at 9:50, Peng He wrote: > Hi, > > sorry for the late reply. > > Yes, basically this means going back to v5, but with a minor difference. > > In the original v5, the INCONSISTENT to EVICTING change is in the > revalidate_sweep__ phrase. > > However,since you have spot that doing

Re: [ovs-dev] [ovs-dev v8 2/2] dpif-netdev: fix the race comments

2023-05-11 Thread Eelco Chaudron
ich > would insert datapath flows. Thanks this looks good to me. Will try to review patch 1/2 next week. Acked-by: Eelco Chaudron > Signed-off-by: Peng He > --- > lib/dpif-netdev.c | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/lib/dpif-n

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

2023-05-10 Thread Eelco Chaudron
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 v26 8/8] system-offloads-traffic.at: Add sFlow offload test cases

2023-05-10 Thread Eelco Chaudron
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 >>> "s/used:[[0-9]].[[0-9]]*s/used:0.001s/;s/eth(src=[[a-z0-9:]]*,dst=[[a-z0-9:]]*)/eth(macs)/;s/pid=[[0-9]]*/pid=1/;s/output=$P0_IFINDEX/output=1/"]) >>>

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

2023-05-10 Thread Eelco Chaudron
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 struct flow_tnl

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

2023-05-10 Thread Eelco Chaudron
On 26 Apr 2023, at 4:38, Chris Mi wrote: > On 4/12/2023 10:07 PM, Eelco Chaudron wrote: >> On 29 Mar 2023, at 13:42, Chris Mi wrote: >> >>> Iterate each registered offload API. It's not a problem for today >>> since we only have one implementation. >

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

2023-05-10 Thread Eelco Chaudron
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;/* Argument to

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

2023-05-10 Thread Eelco Chaudron
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-&g

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

2023-05-09 Thread Eelco Chaudron
separate read/write locks, with an order guarantee to avoid another potential deadlock. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2182541 Fixes: 9fe21a4fc12a ("netdev-offload: replace netdev_hmap_mutex to netdev_hmap_rwlock") Reviewed-by: Simon Horman Signed-off-by: Eelc

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

2023-05-09 Thread Eelco Chaudron
On 26 Apr 2023, at 23:54, Ilya Maximets wrote: > On 4/20/23 09:39, 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 some >> debugging, it was discovered that the ne

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

2023-05-09 Thread Eelco Chaudron
On 28 Apr 2023, at 9:01, Simon Horman wrote: > 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

Re: [ovs-dev] [PATCH ovn v2] system-tests: Fix and enable the SCTP test

2023-04-21 Thread Eelco Chaudron
Rebase on top of current main. > Address comment from Eelco about not removing the sctp > module if it was already loaded before run. Thanks for changing! Two nits below, but it looks good to me. Acked-by: Eelco Chaudron > --- > tests/system-common-macros.at | 13

Re: [ovs-dev] [PATCH v3] ofp-parse: Check ranges on string to uint32_t conversion.

2023-04-21 Thread Eelco Chaudron
sing my comment. It 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] [PATCH ovn] system-tests: Fix and enable the SCTP test

2023-04-21 Thread Eelco Chaudron
On 18 Apr 2023, at 8:50, Ales Musil wrote: > Fix the outdated parts of SCTP test and > allow it to be run on CI, in order to do that > we just need to load sctp kernel module. Hi Ales, Thanks for looking into this. Some comments/questions inline… > Reported-at:

Re: [ovs-dev] [PATCH v2] ofp-parse: Check ranges on string to uint32_t conversion.

2023-04-21 Thread Eelco Chaudron
On 21 Apr 2023, at 4:51, Yunjian Wang via dev wrote: > An unnecessarily overflow would occurs when the 'value' is longer than > 4294967295. So it's required to check ranges to avoid uint32_t overflow. > > Reported-by: Nan Zhou > Signed-off-by: Yunjian Wang > --- > v2: fix patch code styles >

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

2023-04-20 Thread Eelco Chaudron
separate read/write locks, with an order guarantee to avoid another potential deadlock. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2182541 Fixes: 9fe21a4fc12a ("netdev-offload: replace netdev_hmap_mutex to netdev_hmap_rwlock") Signed-off-by: Eelco Chaudron --- lib/netdev

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

2023-04-19 Thread Eelco Chaudron
nger than 16 bytes, the thread > name will fail to be set Thanks for fixing this! Changes look good to me. Acked-by: Eelco Chaudron > Signed-off-by: Songtao Zhan > --- > lib/util.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/util.c b/lib/util.c > ind

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

2023-04-17 Thread Eelco Chaudron
On 17 Apr 2023, at 8:54, Songtao Zhan wrote: > To: d...@openvswitch.org, > i.maxim...@ovn.org > > The name of the current thread consists of a name with a maximum > length of 16 bytes and a thread ID. The final name may be longer > than 16 bytes. If the name is longer than 16 bytes, the

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

2023-04-12 Thread Eelco Chaudron
ed ok See some comments inline. This concluded the v26 review... //Eelco > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > Acked-by: Eelco Chaudron > --- > tests/system-offloads-traffic.at | 125 +++ > 1 file changed, 125 insertions(+) > > diff -

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

2023-04-12 Thread Eelco Chaudron
On 29 Mar 2023, at 13:42, 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. See comments inline. //Eelco >

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

2023-04-12 Thread Eelco Chaudron
On 29 Mar 2023, at 13:42, Chris Mi wrote: > In thread handler 0, add netdev offload recv in normal recv upcalls. > To avoid starvation, introduce a flag to alternate the order of > receiving normal upcalls and offload upcalls based on that flag. One small comment inline. //Eelco > Add similar

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

2023-04-12 Thread Eelco Chaudron
On 29 Mar 2023, at 13:42, Chris Mi wrote: > Iterate each registered offload API. It's not a problem for today > since we only have one implementation. See comment inline. //Eelco > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > --- > lib/netdev-offload.c | 35

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

2023-04-12 Thread Eelco Chaudron
On 29 Mar 2023, at 13:42, Chris Mi wrote: > Initialize psample socket. Add sample recv API to receive sampled > packets from psample socket. Add sample recv wait API to add psample > socket fd to poll list. Thanks for the update, see comments inline. //Eelco > Signed-off-by: Chris Mi >

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

2023-04-12 Thread Eelco Chaudron
On 29 Mar 2023, at 13:42, 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

Re: [ovs-dev] [PATCH v26 1/8] compat: Add psample and tc sample action defines for older kernels

2023-04-12 Thread Eelco Chaudron
On 29 Mar 2023, at 13:42, Chris Mi wrote: > Update kernel UAPI to support psample and the tc sample action. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > Acked-by: Eelco Chaudron > --- Thanks for incorporating the requested changes. Explicitly acking v26: Acked-

Re: [ovs-dev] [PATCH v26 2/8] ovs-kmod-ctl: Load kernel module psample

2023-04-12 Thread Eelco Chaudron
eviewed-by: Roi Dayan > Acked-by: Eelco Chaudron > --- No changes in v26 for this patch, explicitly acking it: Acked-by: Eelco Chaudron On 12 Apr 2023, at 16:04, Eelco Chaudron wrote: > On 29 Mar 2023, at 13:42, Chris Mi wrote: > >> Update kernel UAPI to support psample and t

Re: [ovs-dev] [PATCH v26 2/8] ovs-kmod-ctl: Load kernel module psample

2023-04-12 Thread Eelco Chaudron
On 29 Mar 2023, at 13:42, Chris Mi wrote: > Update kernel UAPI to support psample and the tc sample action. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > Acked-by: Eelco Chaudron > --- Thanks for incorporating the requested changes. Explicitly acking v26: Acked-

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

2023-04-11 Thread Eelco Chaudron
reads this overflow does not likely happen. However just to clarify it’s not the thread ID that gets added to the end, but the internal thread number. So for example, if we truncate from the end, we can no longer identify which revalidator thread is causing a problem from the log. As they normal

Re: [ovs-dev] [PATCH v2] github: Test building Fedora RPMs.

2023-04-06 Thread Eelco Chaudron
switch to quay.io if that will ever become a problem > in the future. > > Signed-off-by: Ilya Maximets These changes look good to me, did a quick test, and works in my GitHub action. Acked-by: Eelco Chaudron ___ dev mailing list

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

2023-04-05 Thread Eelco Chaudron
On 31 Mar 2023, at 10:11, Songtao Zhan wrote: > To: d...@openvswitch.org, > i.maxim...@ovn.org > > The name of the current thread consists of a name with a maximum > length of 16 bytes and a thread ID. The final name may be longer > than 16 bytes. If the name is longer than 16 bytes, the

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

2023-03-31 Thread Eelco Chaudron
On 30 Mar 2023, at 17:57, Jon Kohler wrote: >> On Mar 28, 2023, at 1:32 PM, Mike Pattrick wrote: >> >> On Mon, Mar 27, 2023 at 7:25 AM Eelco Chaudron wrote: >>> >>> Make the read of the current seq->value atomic, i.e., not needing to >>> acq

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

2023-03-31 Thread Eelco Chaudron
On 28 Mar 2023, at 19:32, Mike Pattrick wrote: > On Mon, Mar 27, 2023 at 7:25 AM Eelco Chaudron wrote: >> >> Make the read of the current seq->value atomic, i.e., not needing to >> acquire the global mutex when reading it. On 64-bit systems, this >> incurs

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

2023-03-31 Thread Eelco Chaudron
look good to me, so if Simon’s tests pass over the weekend: Acked-by: Eelco Chaudron > +]) > +NS_CHECK_EXEC([at_ns0], [ping -q -c 2 -i 0.2 10.1.1.3 | FORMAT_PING], [0], > [dnl > +2 packets transmitted, 2 received, 0% packet loss, time 0ms > +]) > + > +AT_CHECK([ovs-ap

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

2023-03-31 Thread Eelco Chaudron
On 31 Mar 2023, at 15:15, Ilya Maximets wrote: > On 3/31/23 15:06, Eelco Chaudron wrote: >> >> >> On 31 Mar 2023, at 12:38, Simon Horman wrote: >> >>> On Fri, Mar 31, 2023 at 12:05:09PM +0200, Ilya Maximets wrote: >>>> On 3/31/23 11:07, Simon H

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

2023-03-31 Thread Eelco Chaudron
t;>>>> On Fri, Mar 17, 2023 at 09:47:36PM +0100, Eelco Chaudron wrote: >>>>>>> Op 17 mrt. 2023 om 21:11 heeft Marcelo Ricardo Leitner >>>>>>> het volgende geschreven: >>>>>>> Thu, Mar 16, 2023 at 09:51:34AM +0100, Eelco C

Re: [ovs-dev] [PATCH ovn] ci: Add arping package to run floating IP tests.

2023-03-31 Thread Eelco Chaudron
On 31 Mar 2023, at 14:47, Dumitru Ceara wrote: > On 3/31/23 14:16, Eelco Chaudron wrote: >> Add arping package so the "virtual port with floating IP -- ovn-northd" >> tests are run. >> >> Signed-off-by: Eelco Chaudron >> --- > > Hi Eel

[ovs-dev] [PATCH ovn] ci: Add arping package to run floating IP tests.

2023-03-31 Thread Eelco Chaudron
Add arping package so the "virtual port with floating IP -- ovn-northd" tests are run. Signed-off-by: Eelco Chaudron --- .github/workflows/test.yml |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index

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

2023-03-31 Thread Eelco Chaudron
On 30 Mar 2023, at 4:17, Songtao Zhan wrote: > To: d...@openvswitch.org, > i.maxim...@ovn.org > > The name of the current thread consists of a name with a maximum > length of 16 bytes and a thread ID. The final name may be longer > than 16 bytes. If the name is longer than 16 bytes, the

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

2023-03-29 Thread Eelco Chaudron
On 29 Mar 2023, at 13:41, Chris Mi wrote: > On 3/29/2023 6:03 PM, Eelco Chaudron wrote: >> >> On 23 Mar 2023, at 13:07, Eelco Chaudron wrote: >> >>> On 23 Mar 2023, at 12:24, Chris Mi wrote: >> >> >>>>>> I ran it 100 times. All pa

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

2023-03-29 Thread Eelco Chaudron
On 23 Mar 2023, at 13:07, Eelco Chaudron wrote: > On 23 Mar 2023, at 12:24, Chris Mi wrote: >>>> I ran it 100 times. All passed. >>> Visually inspecting this, it looks fine, however, is this failing without >>> passing the actions parts? >> Yes. O

Re: [ovs-dev] [PATCH v2] netdev-tc-offloads: Fix misaligned 8 byte read.

2023-03-29 Thread Eelco Chaudron
dev-offload-tc.c:1276 > #1 in netdev_flow_dump_next lib/netdev-offload.c:303 > #2 in dpif_netlink_flow_dump_next lib/dpif-netlink.c:1921 > [...] > > Signed-off-by: Mike Pattrick Change looks good to me! Acked-by: Eelco Chaudron __

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-28 Thread Eelco Chaudron
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: >>> >>> >>> On 9 Mar 2023, at 15:42, Simon Horman wrote: >>> >>

Re: [ovs-dev] [PATCH] netdev-tc-offloads: Fix misaligned 8 byte read.

2023-03-28 Thread Eelco Chaudron
On 27 Mar 2023, at 22:32, Mike Pattrick wrote: > UB Sanitizer report: > > lib/netdev-offload-tc.c:1276:19: runtime error: load of misaligned > address 0x7f74e801976c for type 'union ovs_u128', which requires 8 byte > alignment > > #0 in netdev_tc_flow_dump_next lib/netdev-offload-tc.c:1276

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

2023-03-27 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 --- lib/ovs-rcu.c |2

Re: [ovs-dev] [PATCH v5] lib, ovsdb, ovs-vsctl, vtep-ctl: Fix multiple Coverity defects

2023-03-27 Thread Eelco Chaudron
On 16 Mar 2023, at 17:36, James Raphael Tiovalen wrote: > This commit addresses several high and medium-impact Coverity defects by > fixing several possible null-pointer dereferences and potentially > uninitialized variables. > > There were cases when crashes were encountered when some null

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

2023-03-23 Thread Eelco Chaudron
On 23 Mar 2023, at 12:24, Chris Mi wrote: > On 3/23/2023 5:47 PM, Eelco Chaudron wrote: >> >> On 23 Mar 2023, at 10:28, Chris Mi wrote: >> >>> On 3/22/2023 6:45 PM, Eelco Chaudron wrote: >>>> On 22 Mar 2023, at 7:15, Chris Mi wrote: >>>

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

2023-03-23 Thread Eelco Chaudron
On 23 Mar 2023, at 10:28, Chris Mi wrote: > On 3/22/2023 6:45 PM, Eelco Chaudron wrote: >> >> On 22 Mar 2023, at 7:15, Chris Mi wrote: >> >>> On 3/20/2023 6:04 PM, Eelco Chaudron wrote: >>>> On 20 Mar 2023, at 6:44, Chris Mi wrote: >>>

Re: [ovs-dev] [PATCH] tests/mfex: Rertain support for cryptography pre-v37.

2023-03-22 Thread Eelco Chaudron
d-off-by: Mike Pattrick Change 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] [PATCH v24 3/8] netdev-offload-tc: Introduce group ID management API

2023-03-22 Thread Eelco Chaudron
On 22 Mar 2023, at 11:45, Eelco Chaudron wrote: > On 22 Mar 2023, at 7:15, Chris Mi wrote: > >> On 3/20/2023 6:04 PM, Eelco Chaudron wrote: >>> On 20 Mar 2023, at 6:44, Chris Mi wrote: >>> >>>> On 3/16/2023 5:09 PM, Eelco Chaudron wrote: &g

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

2023-03-22 Thread Eelco Chaudron
On 22 Mar 2023, at 7:15, Chris Mi wrote: > On 3/20/2023 6:04 PM, Eelco Chaudron wrote: >> On 20 Mar 2023, at 6:44, Chris Mi wrote: >> >>> On 3/16/2023 5:09 PM, Eelco Chaudron wrote: >>>> On 1 Mar 2023, at 8:22, Chris Mi wrote: >>>> >>>

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

2023-03-22 Thread Eelco Chaudron
On 22 Mar 2023, at 7:34, Chris Mi wrote: > On 3/16/2023 7:43 PM, Eelco Chaudron wrote: >> >> On 16 Mar 2023, at 10:24, Eelco Chaudron wrote: >> >>> On 1 Mar 2023, at 8:22, Chris Mi wrote: >>> >>>> Add two sFlow offload test caes: >>&g

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

2023-03-22 Thread Eelco Chaudron
On 22 Mar 2023, at 7:31, Chris Mi wrote: > On 3/16/2023 5:23 PM, Eelco Chaudron wrote: >> On 1 Mar 2023, at 8:22, Chris Mi wrote: >> >>> Create a unique group ID to map the sFlow info when offloading sample >>> action to TC. When showing the offloaded datapath

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

2023-03-22 Thread Eelco Chaudron
On 22 Mar 2023, at 7:21, Chris Mi wrote: > On 3/16/2023 5:13 PM, Eelco Chaudron wrote: >> On 1 Mar 2023, at 8:22, Chris Mi wrote: >> >>> Initialize psample socket. Add sFlow recv API to receive sampled >>> packets from psample socket. Add sFow recv wait API to

[ovs-dev] [PATCH] netdev-offload-tc: Fix parse_tc_flower_to_actions() reporting errors.

2023-03-20 Thread Eelco Chaudron
parse_tc_flower_to_actions() was not reporting errors, which would cause parse_tc_flower_to_match() to ignore them. Fixes: dd03672f7bbb ("netdev-offload-tc: Move flower_to_match action handling to isolated function.") Signed-off-by: Eelco Chaudron --- lib/netdev-offload-t

Re: [ovs-dev] [PATCH 1/1] tc: Fix cleaning chains

2023-03-20 Thread Eelco Chaudron
200, Roi Dayan wrote: >>>>> >>>>> >>>>> On 13/03/2023 14:16, Simon Horman wrote: >>>>>> On Mon, Mar 13, 2023 at 12:31:49PM +0200, Roi Dayan wrote: >>>>>>> >>>>>>> >>>>>&g

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

2023-03-20 Thread Eelco Chaudron
On 20 Mar 2023, at 6:44, Chris Mi wrote: > On 3/16/2023 5:09 PM, Eelco Chaudron wrote: >> On 1 Mar 2023, at 8:22, Chris Mi wrote: >> >>> When offloading sample action to TC, userspace creates a unique ID >>> to map sFlow action and tunnel info and pas

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

2023-03-17 Thread Eelco Chaudron
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 13:32, Eelco Chaudron wrote: >>> >>

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

2023-03-16 Thread Eelco Chaudron
On 16 Mar 2023, at 13:02, Ilya Maximets wrote: > On 3/16/23 12:49, Eelco Chaudron wrote: >> >> >> On 16 Mar 2023, at 12:00, Ilya Maximets wrote: >> >>> On 3/16/23 10:16, Eelco Chaudron wrote: >>>> On 1 Mar 2023, at 8:22, Chris Mi wrote: >>

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

2023-03-16 Thread Eelco Chaudron
On 16 Mar 2023, at 12:00, Ilya Maximets wrote: > On 3/16/23 10:16, Eelco Chaudron wrote: >> On 1 Mar 2023, at 8:22, Chris Mi wrote: >> >>> In thread handler 0, add netdev offload recv in normal recv upcalls. >>> To avoid starvation, introduce a flag to alt

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

2023-03-16 Thread Eelco Chaudron
On 16 Mar 2023, at 11:48, Ilya Maximets wrote: > On 3/16/23 10:15, Eelco Chaudron wrote: >> On 1 Mar 2023, at 8:22, Chris Mi wrote: >> >>> Iterate each registered offload API. It's not a problem for today >>> since we only have one implementation. >

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

2023-03-16 Thread Eelco Chaudron
On 16 Mar 2023, at 10:24, Eelco Chaudron wrote: > On 1 Mar 2023, at 8:22, Chris Mi wrote: > >> Add two sFlow offload test caes: >> >> 3: sflow offloads with sampling=1 - ping between two ports - offloads >> enabled ok >> 4: sflow offloads with

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

2023-03-16 Thread Eelco Chaudron
ow. This completes my review of v24 of the series. //Eelco > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > Acked-by: Eelco Chaudron > --- > tests/system-offloads-traffic.at | 101 +++ > 1 file changed, 101 insertions(+) > > diff --git a/t

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

2023-03-16 Thread Eelco Chaudron
On 1 Mar 2023, at 8:22, 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. See some comments inline below. //Eelco >

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

2023-03-16 Thread Eelco Chaudron
On 1 Mar 2023, at 8:22, Chris Mi wrote: > In thread handler 0, add netdev offload recv in normal recv upcalls. > To avoid starvation, introduce a flag to alternate the order of > receiving normal upcalls and offload upcalls based on that flag. > > Add similar change for recv_wait. See some

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

2023-03-16 Thread Eelco Chaudron
On 1 Mar 2023, at 8:22, Chris Mi wrote: > Iterate each registered offload API. It's not a problem for today > since we only have one implementation. See some comments inline below. //Eelco > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > --- > lib/netdev-offload.c | 35

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

2023-03-16 Thread Eelco Chaudron
On 1 Mar 2023, at 8:22, Chris Mi wrote: > Initialize psample socket. Add sFlow recv API to receive sampled > packets from psample socket. Add sFow recv wait API to add psample > socket fd to poll list. See some comments inline below. and one question for Ilya ;) //Eelco > Signed-off-by: Chris

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

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

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

2023-03-16 Thread Eelco Chaudron
On 22 Dec 2022, at 13:32, Eelco Chaudron wrote: > On 22 Dec 2022, at 10:26, 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 wer

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

2023-03-16 Thread Eelco Chaudron
On 16 Mar 2023, at 7:51, Chris Mi wrote: > On 3/16/2023 11:37 AM, Chris Mi via dev wrote: >> On 3/16/2023 12:40 AM, Eelco Chaudron wrote: >>> >>> On 15 Mar 2023, at 11:07, Chris Mi wrote: >>> >>>> On 3/15/2023 5:28 PM, Eelco Chaudron wrot

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

2023-03-15 Thread Eelco Chaudron
On 15 Mar 2023, at 11:07, Chris Mi wrote: > On 3/15/2023 5:28 PM, Eelco Chaudron wrote: >> >> On 15 Mar 2023, at 4:40, Chris Mi wrote: >> >>> On 3/10/2023 10:02 PM, Eelco Chaudron wrote: >>>> On 10 Mar 2023, at 13:11, Eelco Chaudron wrote: >>

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

2023-03-15 Thread Eelco Chaudron
On 15 Mar 2023, at 4:40, Chris Mi wrote: > On 3/10/2023 10:02 PM, Eelco Chaudron wrote: >> >> On 10 Mar 2023, at 13:11, Eelco Chaudron wrote: >> >>> On 1 Mar 2023, at 8:22, Chris Mi wrote: >>> >>>> This patch set adds offload support

Re: [ovs-dev] [PATCH v24 2/8] ovs-kmod-ctl: Load kernel module psample

2023-03-14 Thread Eelco Chaudron
On 1 Mar 2023, at 8:22, Chris Mi wrote: > Load kernel module psample to receive sampled packets from TC. > Before removing kernel module psample, remove act_sample first. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > Acked-by: Eelco Chaudron > --- Changes

Re: [ovs-dev] [PATCH v24 1/8] compat: Add psample and tc sample action defines for older kernels

2023-03-14 Thread Eelco Chaudron
On 1 Mar 2023, at 8:22, Chris Mi wrote: > Update kernel UAPI to support psample and the tc sample action. > > Signed-off-by: Chris Mi > Reviewed-by: Roi Dayan > Acked-by: Eelco Chaudron > --- > include/linux/automake.mk| 4 ++- > include/linux

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

2023-03-14 Thread Eelco Chaudron
this is hard to troubleshoot, but I guess this is happening due to flow deletion right in the middle of a revalidator run. It sounds odd that a short delay solves it, but if it is we might leave it in for now. Any other idea on this Ilya/Simon? //Eelco > From: Eelco Chaudron > Date: 2023

[ovs-dev] [PATCH] system-traffic: Fix conntrack test cases which are failing with af_xdp.

2023-03-13 Thread Eelco Chaudron
"conntrack: Properly unNAT inner header of related traffic.") Signed-off-by: Eelco Chaudron --- tests/system-traffic.at |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/system-traffic.at b/tests/system-traffic.at index 380372430..2558f3b24 100644 --- a/tes

Re: [ovs-dev] [PATCH 1/1] tc: translate mirror/stolen to mirred

2023-03-13 Thread Eelco Chaudron
On 13 Mar 2023, at 11:27, Roi Dayan wrote: > From: Oz Shlomo > > Currently jumping over a output-to-port action is translated to tc > mirror action and stolen control action. > However, the tc control action is not propagated to the hw offload action, > thus the hardware action will mirror

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

2023-03-13 Thread Eelco Chaudron
I do not see it. //Eelco > From: Eelco Chaudron > Date: 2023-03-08 15:28:05 > To: Faicker Mo > Cc: d...@openvswitch.org,i.maxim...@ovn.org,simon.hor...@corigine.com > Subject: Re: [PATCH v8] netdev-offload-tc: del ufid mapping if device not > exist> >> >

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