Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2179927rbb; Tue, 27 Feb 2024 13:18:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUj+BXzAUSdJo9xSVaFwbaE6W8e/Vm3iJgasRbo7bholkA7DlpKoV4sZLIH5jyFj6xtAdWOSdp5g9si4uvFISdikFB7Tcr6F6NIW6hLBQ== X-Google-Smtp-Source: AGHT+IFf18zgZmx5WP6Ko38DdCaVh5wBa787djfeOJe6IR9eJUM/MACDVOfWbVJzcGXixJqGQXVL X-Received: by 2002:a05:6a20:94cd:b0:1a1:10f3:5fd7 with SMTP id ht13-20020a056a2094cd00b001a110f35fd7mr2743621pzb.17.1709068708204; Tue, 27 Feb 2024 13:18:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709068708; cv=pass; d=google.com; s=arc-20160816; b=MlTkOALLFuACzs2UAqlxBncfT5bgrxb2wfbAc3+RsIsaTqkTPqrK+8IgkogGhQg01b 40DLW53XQ4XnuapwwoYAcxPZfqxHj2kQtwMST4YAYnjAncN2TfsMzD1c+YIr3PrcqteT /oISwku7QZG7ML2QKI6KokCDKCqew8qwZANNXLzE2IC8FbSW/5YAgk40VssuZYQa4+oz 6beDGszJs60zEBHLMC9U64O9G3u0odQ6txPcVNWbc+sJiJEZiTAc4RgVsRbSIULsF4ej GXHrmJzbmAVQtipgHKn0LnyRtKfkjafwthNBscJvUHQCedmKYbEr9CoQRfT+/TZO893e xBNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=9w1c/wPzzC00qVzHrWYxBARFDO3pJ4orEr+vFkg8bak=; fh=y0Ualdo6Wf4Y69VK3TwiO/U0XB8gbpzDoRA+Cfa3EJw=; b=fkRYgRW14IIhIlcUJQohnkS8Nz969fVDtTEDiERaMC5hp0qSmoOhjnnKUUsBd1oSbh ckEpIMP1yguMOIctAG0A6I9ije4s06uo6spF+wdABCXFbR/YtbxklaIbYY6miT5T/HhG Y9bXI3E3YW1bsPCLrZ2iSj8EBKCE9ojZAD9MrHo5Pp3oRqI+zzeYuzLmP10tSJFjd5M/ AfPpvKlTxyRJxkG8uOrv6AJFs34+w+z2mECssAc2kZ4ptJzBKBS42GHF3I6mCBDjD7ce tqD2n7q9dGGRuHNT5iNAOKOX7LU6OEy45uk6tWfVvwg788qHEZBK9YoNX2yfEnfiMJWL 5gmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=FaIciahU; arc=pass (i=1 spf=pass spfdomain=cloudflare.com dkim=pass dkdomain=cloudflare.com dmarc=pass fromdomain=cloudflare.com); spf=pass (google.com: domain of linux-kernel+bounces-84020-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j71-20020a638b4a000000b005dc855c40a4si6038941pge.645.2024.02.27.13.18.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:18:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84020-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=FaIciahU; arc=pass (i=1 spf=pass spfdomain=cloudflare.com dkim=pass dkdomain=cloudflare.com dmarc=pass fromdomain=cloudflare.com); spf=pass (google.com: domain of linux-kernel+bounces-84020-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C8DBB28A417 for ; Tue, 27 Feb 2024 21:18:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 866ED14F99A; Tue, 27 Feb 2024 21:18:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b="FaIciahU" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 072E614EFF8 for ; Tue, 27 Feb 2024 21:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709068688; cv=none; b=ljPD+CGYCE2CZ9qj11T4asKgFVU/VHlJBCc4GpopWp72x0dOMS24pFAx+bVG8kSmraxjQ8d/wxQd9PN1WuQCEg6XAD4XXouQOnXzXvRB7EudUO8PJl7MEs8Kbw5QN9GIjrTe7XIIWrmrv5+iccZz/n9jGkuejpEgOKMdGz8OB6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709068688; c=relaxed/simple; bh=GM2IpfEXJUSW2VkMqcfLau6RAfFop+hHmlbXoHh2q2I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DS5vCEUlGFLL5iwem1NzAnlBB1ZK9hTivP2T57OcSsYauXxKeI7xqG/9Y2RIg+EBWmcP1tpwGCyxg3592yIJQSTZ+CblPrAbpRPvq0iFzulBKmOZVOL5BqrIUxWOTKRU62WNR6dWB6Haj8QyiKEitGqDwMdBEDvAb2PkilaylEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com; spf=pass smtp.mailfrom=cloudflare.com; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b=FaIciahU; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloudflare.com Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-513173e8191so704741e87.1 for ; Tue, 27 Feb 2024 13:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1709068685; x=1709673485; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9w1c/wPzzC00qVzHrWYxBARFDO3pJ4orEr+vFkg8bak=; b=FaIciahUxu695FYaKfbzdNFa+5S7d7DVOywOVofsV3muYJSRB76A1kCJJ1uXgtGwAN JAeq8SxfHlVtVCcGFq6s0bCja+zNTWLdRHqlQQ8W5Kha1OcsmiiAN415hQLuxGendYQc D655tEO03RBPhJ0TwkvWN+kO86rX/tbq0o575FOpqs6SuOCJMjzwWVYawdawycbkxtuJ FwAqJYdWhqyuyHd+DsFaJ6sLtt4QwLZ6HSGjESC0oEwVktRRGdo621nYXT/snIUCuGAa eICvx2HjgRsJqbjVFwWvwkwJwaAIxCpxlUpTCrO10IzYVtL79umBAbLHA3y/Yfkbz9Ip 0hJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709068685; x=1709673485; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9w1c/wPzzC00qVzHrWYxBARFDO3pJ4orEr+vFkg8bak=; b=SerLGgVKQcWDiXuPl+9qyU7JFj9L4UQ+JjzY8/YrmcBS5bXNmiYH4KN1xoq1laKLUh C8J0spzLPf5BDyBVEW/WYf5pcfjcV4mK+2+IPhX9Soa4SJV8AGOqBP/bJgsYdmd6NNuA teZ3GnaKhvtObMlasTYJ4qSBqnbit2D1QQe4hPuBmTLsHqEp0POy3hpquSlym9mXRfXM /CvJM4OZlOAoeCzal0sv2oPXhY7zuos3joDz370FdPnZALlvYRaEtGpJ2wsNH7nhGdj5 ku+B6QMZmzkVuVcJ0ZS67QkJgrCH0OEMpW4FApyhHr3ri+YSSdD1jK7nh8DNolpWLwc+ dRFQ== X-Forwarded-Encrypted: i=1; AJvYcCXS6joyh5iokTob21OzeT+ACyhlwFqTwKYpXWj6KdRmBgfWGWPmYfRc3JdR2UFvW5unibOK683WXq+uSaJWQ9LAO8Cs1wD+o79WdwwI X-Gm-Message-State: AOJu0Yw/ejE8NQaItuuf7ihumy/IUyoKGpuvVWLCQDEVz1SgDr37K6ym 3Lo5lag+fGaivKwMLqv/wOe0UpXgvZmMqg1oe0qRogvc9H1z4ISuwA5IYWiPM1tr6Z3rLn5NY+K V4lcLmOdpYUtcEllx/QRA1WE6nyEmFzqf7LlQKg== X-Received: by 2002:a05:6512:1114:b0:512:cba9:c5e with SMTP id l20-20020a056512111400b00512cba90c5emr8178182lfg.61.1709068685183; Tue, 27 Feb 2024 13:18:05 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Yan Zhai Date: Tue, 27 Feb 2024 15:17:54 -0600 Message-ID: Subject: Re: [PATCH] net: raise RCU qs after each threaded NAPI poll To: Eric Dumazet Cc: netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Paolo Abeni , Jiri Pirko , Simon Horman , Daniel Borkmann , Lorenzo Bianconi , Coco Li , Wei Wang , Alexander Duyck , Hannes Frederic Sowa , linux-kernel@vger.kernel.org, rcu@vger.kernel.org, bpf@vger.kernel.org, kernel-team@cloudflare.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 10:44=E2=80=AFAM Eric Dumazet = wrote: > > Hmm.... > Why napi_busy_loop() does not have a similar problem ? > That's a good question. Let me try if I can repro this on a busy loop as well, since the structure seems very alike. > It is unclear why rcu_all_qs() in __cond_resched() is guarded by > > #ifndef CONFIG_PREEMPT_RCU > rcu_all_qs(); > #endif > > > Thanks.