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

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

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

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

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

2022-10-19 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksumming improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. Flavio Leitner

[ovs-dev] [PATCH v7 2/4] dpif-netdev: Add command to show netdev offloading flags.

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

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

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

Re: [ovs-dev] [PATCH] openvswitch: Use kmalloc_size_roundup() to match ksize() usage

2022-10-19 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski : On Tue, 18 Oct 2022 02:06:33 -0700 you wrote: > Round up allocations with kmalloc_size_roundup() so that openvswitch's > use of ksize() is always accurate and no special handling of the memory > is needed by KASAN,

Re: [ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Mike Pattrick
On Wed, Oct 19, 2022 at 12:27 PM Ilya Maximets wrote: > > On 10/19/22 15:48, Mike Pattrick wrote: > > On Wed, Oct 19, 2022 at 9:30 AM Flavio Leitner wrote: > >> > >> > >> Hi Mike, > >> > >> Thanks for the patch. > >> > >> Does this patch need to change this line too? > >>

Re: [ovs-dev] [PATCH ovn] northd: add the capability to inherit logical routers lbs groups on logical switches

2022-10-19 Thread Lorenzo Bianconi
> On 10/19/22 23:00, Lorenzo Bianconi wrote: > >> On 9/14/22 14:42, Lorenzo Bianconi wrote: > >>> Similar to single load balancers, add the capability to automatically > >>> deploy a load-balancer group on each logical-switch connected to a > >>> logical router where the load-balancer group has

Re: [ovs-dev] [PATCH ovn] northd: add the capability to inherit logical routers lbs groups on logical switches

2022-10-19 Thread Ilya Maximets
On 10/19/22 23:10, Dumitru Ceara wrote: > On 10/19/22 23:00, Lorenzo Bianconi wrote: >>> On 9/14/22 14:42, Lorenzo Bianconi wrote: Similar to single load balancers, add the capability to automatically deploy a load-balancer group on each logical-switch connected to a logical router

Re: [ovs-dev] [PATCH ovn] northd: add the capability to inherit logical routers lbs groups on logical switches

2022-10-19 Thread Dumitru Ceara
On 10/19/22 23:00, Lorenzo Bianconi wrote: >> On 9/14/22 14:42, Lorenzo Bianconi wrote: >>> Similar to single load balancers, add the capability to automatically >>> deploy a load-balancer group on each logical-switch connected to a >>> logical router where the load-balancer group has been

Re: [ovs-dev] [PATCH ovn] northd: add the capability to inherit logical routers lbs groups on logical switches

2022-10-19 Thread Lorenzo Bianconi
> On 9/14/22 14:42, Lorenzo Bianconi wrote: > > Similar to single load balancers, add the capability to automatically > > deploy a load-balancer group on each logical-switch connected to a > > logical router where the load-balancer group has been installed by the > > CMS. > > > > Reported-at:

Re: [ovs-dev] [PATCH v3 ovn 3/3] northd: rely on new actions for lb affinity

2022-10-19 Thread Dumitru Ceara
On 10/14/22 16:04, Lorenzo Bianconi wrote: > Rely on the following new actions in order to introduce affinity timeout > support to load-balancer sessions: > - commit_lb_aff > - chk_lb_aff > > Introduce the following tables in switch and router pipelines > respectively: > -

Re: [ovs-dev] [PATCH v3 ovn 1/3] actions: introduce commit_lb_aff action

2022-10-19 Thread Dumitru Ceara
On 10/14/22 16:04, Lorenzo Bianconi wrote: > commit_lb_aff action translates to an openflow "learn" action that > inserts a new flow in the OFTABLE_CHK_LB_AFFINITY table. The new flow is > used to match on the the 5-tuple and set REGBIT_KNOWN_LB_SESSION bit. > Moreover the new flow stores backend

Re: [ovs-dev] [PATCH v4] revalidator: add a USDT probe after evaluation when flows are deleted.

2022-10-19 Thread ksprague0711
On Wednesday, October 19, 2022 10:39:55 AM EDT Eelco Chaudron wrote: > On 19 Oct 2022, at 12:14, Adrian Moreno wrote: > > Hi Kevin. > > > > Thanks for following up with this patch! > > > > On 10/3/22 22:07, Kevin Sprague wrote: > >> During normal operations, it is useful to understand when a

[ovs-dev] [PATCH net 2/2] selftests: add openvswitch selftest suite

2022-10-19 Thread Aaron Conole
Previous commit resolves a WARN splat that can be difficult to reproduce, but with the ovs-dpctl.py utility, it can be trivial. Introduce a test case which creates a DP, and then downgrades the feature set. This will include a utility 'ovs-dpctl.py' that can be extended to do additional work.

[ovs-dev] [PATCH net 1/2] openvswitch: switch from WARN to pr_warn

2022-10-19 Thread Aaron Conole
As noted by Paolo Abeni, pr_warn doesn't generate any splat and can still preserve the warning to the user that feature downgrade occurred. We likely cannot introduce other kinds of checks / enforcement here because syzbot can generate different genl versions to the datapath. Reported-by:

[ovs-dev] [PATCH net 0/2] openvswitch: syzbot splat fix and introduce selftest

2022-10-19 Thread Aaron Conole
Syzbot recently caught a splat when dropping features from openvswitch datapaths that are in-use. The WARN() call is definitely too large a hammer for the situation, so change to pr_warn. Second patch in the series introduces a new selftest suite which can help show that an issue is fixed. This

Re: [ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Ilya Maximets
On 10/19/22 15:48, Mike Pattrick wrote: > On Wed, Oct 19, 2022 at 9:30 AM Flavio Leitner wrote: >> >> >> Hi Mike, >> >> Thanks for the patch. >> >> Does this patch need to change this line too? >>

Re: [ovs-dev] [PATCH ovn] northd: add the capability to inherit logical routers lbs groups on logical switches

2022-10-19 Thread Dumitru Ceara
On 9/14/22 14:42, Lorenzo Bianconi wrote: > Similar to single load balancers, add the capability to automatically > deploy a load-balancer group on each logical-switch connected to a > logical router where the load-balancer group has been installed by the > CMS. > > Reported-at:

Re: [ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Eelco Chaudron
On 19 Oct 2022, at 15:01, Mike Pattrick wrote: > Previously the minimum thread stack size was always set to 512 kB to > help accomidate smaller OpenWRT based systems. Often these devices > don't have a lot of total system memory, so such a limit makes sense. > > The default under x86-64 linux

[ovs-dev] [PATCH v4] ofproto-dpif-xlate: Update tunnel neighbor when receive gratuitous arp.

2022-10-19 Thread Han Ding
OVS now just allow the ARP Relpy whitch the destination address is matched against the known xbridge addresses to udpate tunnel neighbor. So when ovs receive the gratuitous ARP from underlay gateway which the source address and destination address are all gateway IP, tunnel neighbor will not be

Re: [ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Flavio Leitner
On Wed, Oct 19, 2022 at 09:48:18AM -0400, Mike Pattrick wrote: > On Wed, Oct 19, 2022 at 9:30 AM Flavio Leitner wrote: > > > > > > Hi Mike, > > > > Thanks for the patch. > > > > Does this patch need to change this line too? > >

Re: [ovs-dev] [PATCH v4] revalidator: add a USDT probe after evaluation when flows are deleted.

2022-10-19 Thread Eelco Chaudron
On 19 Oct 2022, at 12:14, Adrian Moreno wrote: > Hi Kevin. > > Thanks for following up with this patch! > > On 10/3/22 22:07, Kevin Sprague wrote: >> During normal operations, it is useful to understand when a particular flow >> gets removed from the system. This can be useful when debugging

Re: [ovs-dev] [PATCH] daemon-unix: Fix file descriptor residuals caused 100% CPU utilization

2022-10-19 Thread Ilya Maximets
On 10/19/22 11:31, Fengqi Li wrote: > When segmentation fault occured in ovn-northd, the ovn-northd > daemon process will try to restart for every 10s. > Remove the segmentation fault condation,the ovn-northd daemon > process becomes active again,but fatal_signal fds are not recreated > resulting

Re: [ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Mike Pattrick
On Wed, Oct 19, 2022 at 9:30 AM Flavio Leitner wrote: > > > Hi Mike, > > Thanks for the patch. > > Does this patch need to change this line too? > https://github.com/openvswitch/ovs/blob/31db0e043119cf597d720d94f70ec19cf5b8b7d4/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in#L18 > > >

Re: [ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Flavio Leitner
Hi Mike, Thanks for the patch. Does this patch need to change this line too? https://github.com/openvswitch/ovs/blob/31db0e043119cf597d720d94f70ec19cf5b8b7d4/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in#L18 Wouldn't it be better to have a config option that we can change at runtime?

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

2022-10-19 Thread Peng He
sorry to miss that part, will take some time to think if we need it or not. BTW, looks like the kernel handle_upcalls code path has also this issue. the code is here: for (i = 0; i < n_ops; i++) { struct udpif_key *ukey = ops[i].ukey; if (ukey) {

Re: [ovs-dev] [PATCH] dpif-netdev: fix the race comments

2022-10-19 Thread Peng He
I'll take a look at that! thanks. Eelco Chaudron 于2022年10月19日周三 18:21写道: > > > On 3 Oct 2022, at 6:02, Peng He wrote: > > > The following comments (brought in at 0de8783a9): > > > > /* XXX: There's a race window where a flow covering this packet > > * could have already been installed since we

Re: [ovs-dev] [RFC PATCH ovn] northd, controller: Commit flows dropped by ACLs in a separate CT zone

2022-10-19 Thread Dumitru Ceara
Hi Abhiram, Thanks for the patch! I only skimmed the changes so this is not a full review but more of a discussion starter. On 10/18/22 17:33, Abhiram Sangana wrote: > To identify connections dropped by ACLs, users can enable logging for ACLs > but this approach does not scale. ACL logging uses

[ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Mike Pattrick
Previously the minimum thread stack size was always set to 512 kB to help accomidate smaller OpenWRT based systems. Often these devices don't have a lot of total system memory, so such a limit makes sense. The default under x86-64 linux is 2MB, this limit is not always enough to reach the

Re: [ovs-dev] [PATCH] tests: fix reference output for meter offload stats

2022-10-19 Thread Simon Horman
On Wed, Oct 19, 2022 at 02:17:42PM +0200, Ilya Maximets wrote: > On 10/19/22 10:12, Simon Horman wrote: > > On Fri, Oct 14, 2022 at 10:40:30AM -0400, Jamal Hadi Salim wrote: > >> On Fri, Oct 14, 2022 at 9:00 AM Ilya Maximets wrote: > >>> > >> > >> [..] > I thought it was pipe but maybe it is

Re: [ovs-dev] [PATCH] tests: fix reference output for meter offload stats

2022-10-19 Thread Ilya Maximets
On 10/19/22 10:12, Simon Horman wrote: > On Fri, Oct 14, 2022 at 10:40:30AM -0400, Jamal Hadi Salim wrote: >> On Fri, Oct 14, 2022 at 9:00 AM Ilya Maximets wrote: >>> >> >> [..] I thought it was pipe but maybe it is OK(in my opinion that is a bad code for just "count"). We have some (at

Re: [ovs-dev] [PATCH] mac-learning: Fix learned fdb entries are not age out issue.

2022-10-19 Thread Eelco Chaudron
On 29 Jul 2022, at 13:16, mit...@outlook.com wrote: > From: Lin Huang > > After user add a static fdb entry, the get_lru() function will always return > the > static fdb entry. That's normal fdb entries will not age out through > mac_learning_run(). > > Fix the issue by modify the get_lru()

Re: [ovs-dev] [PATCH v4] revalidator: add a USDT probe after evaluation when flows are deleted.

2022-10-19 Thread Adrian Moreno
On 10/3/22 22:07, Kevin Sprague wrote: During normal operations, it is useful to understand when a particular flow gets removed from the system. This can be useful when debugging performance issues tied to ofproto flow changes, trying to determine deployed traffic patterns, or while debugging

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

2022-10-19 Thread Eelco Chaudron
On 10 Oct 2022, at 9:12, Eelco Chaudron wrote: > On 8 Oct 2022, at 5:27, Peng He wrote: > >> Hi,Eelco >> >> after a second thought, I think this patch is not needed neither, >> the code here is trying to find a rule which cover the packet, >> it does not mean the match and action of rule equals

Re: [ovs-dev] [PATCH v4 2/3] ofproto-dpif-upcall: new ukey needs to take the old ukey's dump seq

2022-10-19 Thread Eelco Chaudron
On 3 Oct 2022, at 6:02, Peng He wrote: > The userspace datapath mananges all the magaflows by a cmap. The cmap > data structrue will grow/shrink during the datapath processing and it > will re-position megaflows. This might result in two revalidator threads > might process a same megaflow

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

2022-10-19 Thread Eelco Chaudron
On 3 Oct 2022, at 6:02, 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. > > We observe in the production environment that sometimes a megaflow > with wrong actions keep

Re: [ovs-dev] [PATCH] dpif-netdev: fix the race comments

2022-10-19 Thread Eelco Chaudron
On 3 Oct 2022, at 6:02, Peng He wrote: > The following comments (brought in at 0de8783a9): > > /* XXX: There's a race window where a flow covering this packet > * could have already been installed since we last did the flow > * lookup before upcall. This could be solved by moving the > *

Re: [ovs-dev] [PATCH v4] revalidator: add a USDT probe after evaluation when flows are deleted.

2022-10-19 Thread Adrian Moreno
Hi Kevin. Thanks for following up with this patch! On 10/3/22 22:07, Kevin Sprague wrote: During normal operations, it is useful to understand when a particular flow gets removed from the system. This can be useful when debugging performance issues tied to ofproto flow changes, trying to

[ovs-dev] [PATCH] daemon-unix: Fix file descriptor residuals caused 100% CPU utilization

2022-10-19 Thread Fengqi Li
When segmentation fault occured in ovn-northd, the ovn-northd daemon process will try to restart for every 10s. Remove the segmentation fault condation,the ovn-northd daemon process becomes active again,but fatal_signal fds are not recreated resulting in ovn-northd 100% cpu utilization.

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

2022-10-19 Thread Eelco Chaudron
On 19 Oct 2022, at 1:08, Ilya Maximets wrote: > On 10/19/22 00:07, Jan Scheurich wrote: >> Hi guys, >> >> I am afraid that commit is too long ago that would remember any details that >> caused us to change the code in beb75a40fdc2 ("userspace: Switching of L3 >> packets in L2 pipeline"). What

[ovs-dev] OVS revalidator process

2022-10-19 Thread Eelco Chaudron
Hi All, For people interested in how the OVS revalidator process works, here is a nice article trying to explain it. https://developers.redhat.com/articles/2022/10/19/open-vswitch-revalidator-process-explained Cheers, Eelco ___ dev mailing list

Re: [ovs-dev] [PATCH] netdev-linux: Allow meter to work in tc software datapath

2022-10-19 Thread Simon Horman
On Tue, Oct 11, 2022 at 11:35:27AM +0200, Simon Horman wrote: > From: Baowen Zheng > > Add tc action flags when adding police action to offload meter table. > > There is a restriction that the flag of skip_sw/skip_hw should be same for > filter rule and the independent created tc actions the

Re: [ovs-dev] [PATCH] tests: fix reference output for meter offload stats

2022-10-19 Thread Simon Horman
On Fri, Oct 14, 2022 at 10:40:30AM -0400, Jamal Hadi Salim wrote: > On Fri, Oct 14, 2022 at 9:00 AM Ilya Maximets wrote: > > > > [..] > > > I thought it was pipe but maybe it is OK(in my opinion that is a bad code > > > for just "count"). We have some (at least NIC) hardware folks on the list. >