Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5700531rwb; Mon, 14 Nov 2022 08:18:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf646OOWnJCAqPBtjqpsABhpH7MixLt6ygIJ7JWMondBHsp4BjQtpz4e0sHLmSePKiNj2r3m X-Received: by 2002:a17:906:b56:b0:7ad:95d2:9df2 with SMTP id v22-20020a1709060b5600b007ad95d29df2mr10548147ejg.607.1668442722379; Mon, 14 Nov 2022 08:18:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668442722; cv=pass; d=google.com; s=arc-20160816; b=XP4nrcJ4mAkLVgGLgHJxFx4GEYHF+sAqNXrHeSSbCke4hWGM8aTLNB1HGG6mV6PYkG uzDojhs2L8C8bjqPjvJyHo3dUXgrBelPb/PyHBr3OjsAEbdt0fGE1xNVKmeQ1+4gw+Hf CxMswCB9TofznzZ65PO8tNP/a8lHeMyV30ZYvSmL1uHXfEZhDV0y6npeKmISliT2ib7J IeE3oKl5ULcdgStymYUsn1V2aXuAr21IGuJbGnPLUb7sjdH7+OGiVrpCWEOj7zLpcYwF u9tLA/I5tc4a5NeYeRjCnTYyZNBhbUiqZrPMdWBHjXRSEVBamcZzAtg5GSfnsnYNTQrz sLJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=onNZqgODvoS7N/S0k0vEvZp0az7Jfny1lAfVnqyMmFU=; b=mtafVhtrkQrd1QOT8j8SIhM3zew6dYJ5B7FhNN+2hLxwZ9nRfSGiNtqBq+f2PlFpU5 7VfdQdGl2DRmXhc2CuXd2qaam4A6anJykpguK+YNEmB8xppFTSNqEiWxoAqCJl0Yh5dg HlQT8jHWxx5bhomp5MTdSkxy+W/mOFhNWMNGgdIZiAR1FU3nqLBm/xIZqKQKrU48PleG HlsalwgKxpMlYxcilEyvp/6085z2QAOIlS8m29oeNDm9c5iQh3wzkFpmmNJk+rA0/iaX QVWzCfRSs+k9Z+dgxt9uWVxN3Pt7WfSgYNRKwwF+ftFkj50ES+UvCyC2bANykjreb9x1 yckA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=QIbiHq4J; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd29-20020a1709076e1d00b007aecd8912ecsi7491460ejc.21.2022.11.14.08.18.20; Mon, 14 Nov 2022 08:18:42 -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=@nxp.com header.s=selector2 header.b=QIbiHq4J; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236866AbiKNPbd (ORCPT + 87 others); Mon, 14 Nov 2022 10:31:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236700AbiKNPb1 (ORCPT ); Mon, 14 Nov 2022 10:31:27 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2081.outbound.protection.outlook.com [40.107.20.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB9A2497A; Mon, 14 Nov 2022 07:31:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XvmoSlVofKqv4iO9EjO+qelSzJ90fC99R6Q6B5ToZ02Twzde7u/9pComYm3aSwM7y4E0bzOSuwFZtd6u4NVHL6NHJNGUTb2TdWsy6tgQRFHj7EvDVqEUGGUOetYYSyZ7BjjoM9MyG+EljqkhuMmOCsl4OZyfrlnn1JmEvn6QeKJM+lfhUNfChgr3E/Hz+0Zgyo3ZfO9LnHigV5wirXkc8iLCg3kfqu/95zWD36VufGLkpQrml2EgYI2X0klL0xeRIdhF3DhnIZvFhoZROp9Ny8rKwQ3FCykcbyESnTxHp0kowZjTeAfTWQSW/Q19n9gYtzaJG1kxsHmsmIo8J0o96g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=onNZqgODvoS7N/S0k0vEvZp0az7Jfny1lAfVnqyMmFU=; b=VyfX8W7FkW6bGiOxbW4cJr2qjPiX+uQ5G1bLjWpqN3dbFZ6fQZMRWnMHXoEaJ9iEtx0kdmasKVcHm4I8wxkYxhHzir6Pm+MYbgsdh8SGIBnBA+3rqt7r9PHkVPtCPGFgta74t/jiE6Dw92kbKNqdLzNuaEp6UaNFljfwmYVRsxj67RMOmX2hACLCaAFZkyIxaPBmZYGXWJIPc59xu1MJKfZwapE+/n1VIh4KAA9iB0PRvKv6pBMXqJN2NhjrB3swNZOWfmGYxAdxJIOm6V+m9f6t7FUMEiLzbf18g2TZpTykcN1XlAAVCy8enwVTh429cF1NxvuoVSE3Vy2Qg/gmoA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=onNZqgODvoS7N/S0k0vEvZp0az7Jfny1lAfVnqyMmFU=; b=QIbiHq4JUOZavQYsAlvJD6OS2U+63r8vgGcYq1Sav65UJAhDzDcETJIVMaYQjuAyaGvJ+uWp37pcPN2fBj4hFNGzESN+cVMXWgkANiByWtePliwT2w3eLUF6GxrSlJJ56hCtYHr48K7Fy7JI0Uq0bmNoHb+CGzNxpuWCO52CwrE= Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by PA4PR04MB7744.eurprd04.prod.outlook.com (2603:10a6:102:c9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17; Mon, 14 Nov 2022 15:31:21 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::6b44:4677:ad1d:b33a]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::6b44:4677:ad1d:b33a%6]) with mapi id 15.20.5813.017; Mon, 14 Nov 2022 15:31:21 +0000 From: Shenwei Wang To: Alexander Lobakin CC: "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: [EXT] Re: [PATCH v3 1/1] net: fec: add xdp and page pool statistics Thread-Topic: [EXT] Re: [PATCH v3 1/1] net: fec: add xdp and page pool statistics Thread-Index: AQHY9eM2DcCGX+tMv0uN92sufUZdVq4+cwAAgAAQvXCAAAu7AIAAAHJg Date: Mon, 14 Nov 2022 15:31:20 +0000 Message-ID: References: <20221111153505.434398-1-shenwei.wang@nxp.com> <20221114134542.697174-1-alexandr.lobakin@intel.com> <20221114152736.702858-1-alexandr.lobakin@intel.com> In-Reply-To: <20221114152736.702858-1-alexandr.lobakin@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAXPR04MB9185:EE_|PA4PR04MB7744:EE_ x-ms-office365-filtering-correlation-id: 4ab8b58d-0ab7-4e75-5edf-08dac655480d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rAcNxajY+j084WOVlZ6sbs+TKkvs4I8LE9volHg7Q4zT8mlAqIqZja5cwr6whqu4NA0WM6yFejMHjw2s1gOZS69y7NaVC02bXB/SMmOHCRH1XFi6NAzlx4pgPZLYsKrYPJ7ZQ9zlshoJYqtCJxjAlgWhyeOpaiYYbsag/yHwFIYisVjKyibWBSSJ6via20eqD5FxC06KicJr1c28Q2q94UMtpEINP+SWhILLpBuRZZgItox+iZMYasBqcvxINIQORyEz0smMvQDmhsyVfEu1r6neVGy5/35VAARqO0/EIx47hB1MKtNuEY20zIjp6meFN7/2qyiaK/ys/68QPFDum/CnUj0XimPteiUKGUwcw4qxbTWQy75RkSGZy4FZW7yyipiOdQQlbKFgm0WkyOy/Nog0tI7MxNaavi7PxlZlOmOuf2TbJMZotDdSeSLFw0MEtPavmkHenj5WaFjVsWfpWSEundGSWQz0+myD/Pc8y/jytuNsJah2jmDzjHIMA1J02UTjZLj6EnaqUyisyoeT44bznZpJeWLwcjq4eX/BuHWFWs1LJ6zhbEnp2i+VV9/SL6CXMYFrdCW18leXxkoD1O7KJKbO2ryrmUnFeT7iYv5JkFJ/PwFpduunOpTp+vpg2QNLr4hh5G3VsNP+IsSXJf2TEH4XA6sDiC2Ktz59NtuyTgwjWYoRgt/vgF462onBTuiLcNTXPyURBXlZMUCGWTqG86Hne47M7/BuPN6Vwc7iA9nNPeFDXBOQESvYArPQkC+K44AIuPRZ7W4E+kDP4w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(376002)(346002)(366004)(39860400002)(136003)(451199015)(9686003)(7696005)(71200400001)(26005)(6506007)(478600001)(53546011)(55236004)(66446008)(66476007)(54906003)(41300700001)(66556008)(4326008)(66946007)(8676002)(64756008)(76116006)(6916009)(186003)(44832011)(316002)(83380400001)(7416002)(52536014)(55016003)(8936002)(33656002)(5660300002)(38100700002)(38070700005)(86362001)(122000001)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8hidr3wck9agXqKOY0PeWPPBbSovXSLQNjHBvXC5uz7ut4LnJ+VWxpicrZ9U?= =?us-ascii?Q?wDpbwxmBxYuq9F/crZNYK1Lm8v76uhnCCVpRbODBIkuU/2LkvtxRUj0sLpQH?= =?us-ascii?Q?RGKEE6JMaKC+00UcoOXm/zTf/sgR+bNoJkhUgPXNcL48+PKPvb2hP6xMLzFf?= =?us-ascii?Q?sdrIlM4tw1p2qt/k6Rxem5iSBSiKfNf61FXi6TskO2jOs/72yyWjSBh138Sz?= =?us-ascii?Q?k6SHS6N/xxvMstok4kpnYMO7plcPSmj6T1VBM69wuUK2XiwJLIN0TdDhzwHo?= =?us-ascii?Q?j6zmak+/KDZrZWBkhe153pqJjeUaoNV/02wjgD9yv/LyrUfmVULxcuF1cqDu?= =?us-ascii?Q?bk4HVyQKb0gXDDFI2Boz9jXk7fig7xAyQkKIIJBrpL/alRl7bT0o7m8BsKap?= =?us-ascii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g+05Q+PR+CJaGVt8f53tIbLx?= =?us-ascii?Q?lQ6F0ZZg/twE+2Jnj+7jzzfzgNsyij3+60C7gKQ2nBFiYz4hrTzLeSKmIscQ?= =?us-ascii?Q?UwiorEP8U0eggPMSGxrrMNXhCLBj/xMEzAuo2g/10zEtL93YNfK5Z1BPAPPZ?= =?us-ascii?Q?M7PVxkCCyi/UxGEaNpTDdbB62efG+Eb6wI443xXs4I81A5rkWD2aLCEeUBY+?= =?us-ascii?Q?2MCgbFKAjCFu+G5+NvC8r2fuUQPTJ1xM6+sdp6SEJE0a9eYSKoF8VSvhqgNE?= =?us-ascii?Q?GwbeCYQu27IQW/gDl85h2NUPs1UuU+hTbyS6ysqZ?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ab8b58d-0ab7-4e75-5edf-08dac655480d X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Nov 2022 15:31:20.9077 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Jz8TnW7+A1e9MlM+KpXfXwz1gCskdlA3p6nT1HQLAK8IfP/lNqBe+TMoOz8r7Bo+OKhF1EOUNc00xceiaN6BAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7744 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 > -----Original Message----- > From: Alexander Lobakin > Sent: Monday, November 14, 2022 9:28 AM > 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 > > > ; > > >> @@ -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 pro= vided by > PAGE_POOL_STATS itself if the option is not selected. >=20 > 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 pat= ch. Yes, the 'select PAGE_POOL_STATS' was added because of the building failure found on PPC64 platform. Thanks, Shenwei >=20 > > > > > > > >> imply NET_SELFTESTS > > >> help > > >> Say Y here if you want to use the built-in 10/100 Fast >=20 > Thanks, > Olek