Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0605C636D4 for ; Thu, 2 Feb 2023 08:59:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232125AbjBBI70 (ORCPT ); Thu, 2 Feb 2023 03:59:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjBBI7Y (ORCPT ); Thu, 2 Feb 2023 03:59:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6076311C; Thu, 2 Feb 2023 00:59:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EE8B96192B; Thu, 2 Feb 2023 08:59:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D92CBC433EF; Thu, 2 Feb 2023 08:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675328362; bh=8NSMvJdX2TBYQSVZ7UeW0jol0hoDcR4E5Vb+ot0qQ+Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vP04wiZuGNYlHIoaTIRsLeW/+vW7wuKt6KEp3Tp4kQgC27dCj1qurBEBqy0XiOB9N zqy5wQDMbF4BpAPOMF4jRlnnAoKtDbsZM5WazaOsiBzeY1sVJHxgGuK1LKCkHm6Rom Mh0eqF+XpHP8JTfY7AnmI/ovl2lkRirxjaHXqZZp0dFx+q/SsBVfazgXt/1guAtjNX 8c4RhFn9yeMXrczHniQlstc7/GQzf4dUCv26+GEOLik0xQ2GI/lE6/H1TdfNyBnVNS d0Ok4/kE/zODtHteKcnfnTCgu34zpeA3/oGb5JPM72wPDftYIogaECrJ3/N+HVylk/ 1DtcICVNfoIqw== Date: Thu, 2 Feb 2023 10:59:18 +0200 From: Leon Romanovsky To: Qingfang DENG Cc: Jesper Dangaard Brouer , Ilias Apalodimas , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi , Daniel Borkmann , John Fastabend , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: page_pool: use in_softirq() instead Message-ID: References: <20230202024417.4477-1-dqfext@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230202024417.4477-1-dqfext@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 02, 2023 at 10:44:17AM +0800, Qingfang DENG wrote: > From: Qingfang DENG > > We use BH context only for synchronization, so we don't care if it's > actually serving softirq or not. > > As a side node, in case of threaded NAPI, in_serving_softirq() will > return false because it's in process context with BH off, making > page_pool_recycle_in_cache() unreachable. > > Signed-off-by: Qingfang DENG > Fixes: 7886244736a4 ("net: page_pool: Add bulk support for ptr_ring") > Fixes: ff7d6b27f894 ("page_pool: refurbish version of page_pool code") Please put your Signed-off-by after Fixes. Thanks