Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5697747rwb; Mon, 14 Nov 2022 08:16:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6vpqKBBpKKUj2ykXvq5XRwCDfZLQKnfTuUuEUA6LASnnt8hlqMoeuffzodk5NbkU1JOz3s X-Received: by 2002:a17:906:6d89:b0:7ad:eb7f:d082 with SMTP id h9-20020a1709066d8900b007adeb7fd082mr10322046ejt.356.1668442596288; Mon, 14 Nov 2022 08:16:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668442596; cv=none; d=google.com; s=arc-20160816; b=p3bH4uF/qZq/qJ/LjJ1NnNhmW1ZdrL9SnGZS0iAUsO6LREVVfiAkcDxNPHs4aoPnLq fNRe5X8L9ez8tYAiBN0KS+nEM6fpUkZF/YyJYOotl21XF3ea6NpRMqd6OXYAOvImeQfs pVSKtYBJoAkJXwFEIBci+dnt7dPI3THbweq0iLYahWikk9RBpY2jbg2a18kGnXUeoH2o U8d9B5pxz3HVBgx5BXw4E1ZAzWciHF4qD0XCleFp0JPRdOIbL2C6p1YzrC/B/7aauSDE xA5+1Ljg34LvQiAJoqzz5vom3Ya5FWxxbOXoOWS6P8P/bq4xgJr7GY9cN4YBoFYYp9Qd JJDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g4kuGLBDNNK0zYE8ZcNkwsGe7zCP/iZm1e0W79F7D1U=; b=Q41wNS/H9Wn8k0AQ2d+ZD8UVJEvDm+G5NxFeq1uf7VTKmXGMMLelWVD+beTIEgQis5 dpJt5yFUJ/cMFvRb/Qx6ryU73ReQDfP69GSKX4mBisYOUcAzgpKQibVa8s6xN3iK+l11 jEd1wIsgB82hHI1RVoH/DeoQxmmaM7U1T3/HNpgYdheLpvYsQrbLTrfVeijbKK4IF0nc ybUieZImfZt5wCgLxpsfYNkrV/iHehF4UpjQe34xtx5tOzJCU7kRJdDH3y4XLkdRmYAR r564/K95Gkzqt8tZFatLbwUHgdhxKur2BYkVlqU+cWo1lPHm64JhM8cm5frlWCwQNbhC Ng8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K6+fGhIU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y5-20020a50e605000000b0046154f0f866si8779821edm.159.2022.11.14.08.16.12; Mon, 14 Nov 2022 08:16:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K6+fGhIU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236057AbiKNP17 (ORCPT + 87 others); Mon, 14 Nov 2022 10:27:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235925AbiKNP1w (ORCPT ); Mon, 14 Nov 2022 10:27:52 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DFBA205F4; Mon, 14 Nov 2022 07:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668439671; x=1699975671; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CeP8y2+ZHtojspOJP0iBEQbFRPuMHMLTBfjgk9VQkng=; b=K6+fGhIUQVz3xDRTH80TjGTLM1NWJ95H2YeLYTzr/7pweXzMFEK1i3Yj TkLmQfjR/pUzT1zxRxfE0Ohx1t36lzaFe7DpQJ4JrXY41IQpqTLFIPAuf p1WenAlRTShqqNO0i+heYEDPNb+dxHK0Du60zRScS3QJi58ShEKnZMCWq TlEN5TbyvBS0SuIe/B5XE2IlnrLk3v2MlhxKSCl7oZdWZWZ6chRhonXKO 0SguueyUbV8tOLjINaf0wL1fbOSlAxXJIrTOexw47JaVKeh3qRm40i0SP bm5XJ9UHgcmp7d5B+80jD7QgKTEtcK4FnJeBXNejsIKv6atSdcXBiBIYr A==; X-IronPort-AV: E=McAfee;i="6500,9779,10531"; a="309625356" X-IronPort-AV: E=Sophos;i="5.96,164,1665471600"; d="scan'208";a="309625356" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2022 07:27:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10531"; a="967608289" X-IronPort-AV: E=Sophos;i="5.96,164,1665471600"; d="scan'208";a="967608289" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by fmsmga005.fm.intel.com with ESMTP; 14 Nov 2022 07:27:48 -0800 Received: from newjersey.igk.intel.com (newjersey.igk.intel.com [10.102.20.203]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 2AEFRlhn028426; Mon, 14 Nov 2022 15:27:47 GMT From: Alexander Lobakin To: Shenwei Wang Cc: Alexander Lobakin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , "John Fastabend" , Wei Fang , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "imx@lists.linux.dev" , kernel test robot Subject: Re: [PATCH v3 1/1] net: fec: add xdp and page pool statistics Date: Mon, 14 Nov 2022 16:27:36 +0100 Message-Id: <20221114152736.702858-1-alexandr.lobakin@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: <20221111153505.434398-1-shenwei.wang@nxp.com> <20221114134542.697174-1-alexandr.lobakin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shenwei Wang Date: Mon, 14 Nov 2022 14:53:00 +0000 > > -----Original Message----- > > From: Alexander Lobakin > > Sent: Monday, November 14, 2022 7:46 AM > > To: Shenwei Wang > > Cc: Alexander Lobakin ; David S. Miller > > ; Eric Dumazet ; Jakub > > Kicinski ; Paolo Abeni ; Alexei > > Starovoitov ; Daniel Borkmann ; > >> @@ -29,6 +29,7 @@ config FEC > >> select CRC32 > >> select PHYLIB > >> select PAGE_POOL > >> + select PAGE_POOL_STATS > > > > Drivers should never select PAGE_POOL_STATS. This Kconfig option was made to > > allow user to choose whether he wants stats or better performance on slower > > systems. It's pure user choice, if something doesn't build or link, it must be > > guarded with IS_ENABLED(CONFIG_PAGE_POOL_STATS). > > As the PAGE_POOL_STATS is becoming the infrastructure codes for many drivers, it is > redundant for every driver to implement the stub function in case it is not selected. These > stub functions should be provided by PAGE_POOL_STATS itself if the option is not selected. Correct, but I think you added 'select PAGE_POOL_STATS' due to some build issues on PPC64, or not? So if there are any when !PAGE_POOL_STATS, it's always better to handle this at the Page Pool API level in a separate patch. > > > > >> imply NET_SELFTESTS > >> help > >> Say Y here if you want to use the built-in 10/100 Fast Thanks, Olek