Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp414971rdb; Thu, 30 Nov 2023 08:03:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRJiPbGytslRlkHSEq60THePfDbSDqEyZ/iJKPpIlJoAcvwgLNCqe7T2Egk2Se/x7spX3i X-Received: by 2002:a25:5c3:0:b0:db5:416d:49e0 with SMTP id 186-20020a2505c3000000b00db5416d49e0mr1468118ybf.22.1701360185040; Thu, 30 Nov 2023 08:03:05 -0800 (PST) Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e63-20020a25d342000000b00db39d6687d1si707289ybf.241.2023.11.30.08.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:03:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Uh2LJM9E; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AFD8082A9BA2; Thu, 30 Nov 2023 08:02:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346536AbjK3QCl (ORCPT + 99 others); Thu, 30 Nov 2023 11:02:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346496AbjK3QCi (ORCPT ); Thu, 30 Nov 2023 11:02:38 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA230170C; Thu, 30 Nov 2023 08:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701360147; x=1732896147; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=6frXSfxU8ie8NVKoTJ92q0K2tw5cTUPiwkn8q2XaPXw=; b=Uh2LJM9ER5ULbkEZ8Tno1cFqkbxdg2sJHAOq5fg8W+nxgLA1gZNAQfCh d329mJGB2z//iII/Bj18xjl1VfYMIdeaVhUDczgsB55tEuIpVfCfPXhyF 9XvSXnKJKyrLxbszXXP6ZHmfpfqXZFrT6rFvXRvGKxUOjNENdRkIi2UiE FvPYd1yYJIVWYV4jBOCjugmXe7awYyFXguoND7DsbW3GquH7MmDrb00fV 4RzTKGmCPCWsEX7/+SF+dAh0kYwVprDgiHwWjhdZMSAoXrsyK36ysYeSm NCM4LwhHHTp62CG9w0V8fAXyejzOvgBvlekxS9oMS//ESCuiLNvb1jPQm g==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="459836284" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="459836284" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 08:02:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="887280665" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="887280665" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Nov 2023 08:02:21 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 30 Nov 2023 08:02:18 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Thu, 30 Nov 2023 08:02:18 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Thu, 30 Nov 2023 08:02:18 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YxsYMCdTBUTCBq8K/qhYKUhRYO879Mi4KL2DLiKwCfgU73vYRm7ZTLBlfH0yoeD/iLPpmhiHdeGHyLWkRAju8iZXyaGAOEnFFU6zn+ieyz8uoW3GQQN+csg9VZRJczBzYxS+po5iGyBl+xB1T3AxIv5lB7aRbhLmnHwO3vNrOLi4qADzeFmz0Jt/SFzT1C8x2SojsLD85gdT2jMkhzx2lvlWkHdjZtsQN7irAYDklpY3PDttaAnHpHK4uKqQgTehVCh0Gp96JU+m5joivMBkhHC+0Guc7yxUR/XMCEy13hG4TcPtMmTDt6L1VyLzM3UJXbEFYzTGHMAd+v1JKG5AdA== 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=pZ8x7w7kVAcusRPwvFmZueg8rP1lRiWA1tJMiWFGmPE=; b=DLpmngnVPOcY1k9JUM9vnXC1C292D4VL0UDJZlTSl+E68srg1rwX4ksWYMaC8+egwsf7lkUCUDu/r7DbwJr8J/RDWTmHgqYexOyq2RLhcAjpA2Qf5wYm5AuGXU2X91EbvmkxXA0NkXDs/i8dQPl4oR3GkB7XupAa2cR0E1zlj7lMGORfW2FliOQK2s6uPYH39CutjtwGBA6hKqdgiPmN88Hk6UfpSuKOV788vfYEYfdM5BQXUvdqeQnmSvhhK9eKm3vHqTZlwHHYFtaEUizxTBRJF4fJoC84I0Hb+9+YShjpN1H+SalE4jlk/chTtPeN2bG7cI87BjzO8HrTms2Eiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) by CH3PR11MB8363.namprd11.prod.outlook.com (2603:10b6:610:177::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.24; Thu, 30 Nov 2023 16:02:17 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::36be:aaee:c5fe:2b80]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::36be:aaee:c5fe:2b80%7]) with mapi id 15.20.7046.024; Thu, 30 Nov 2023 16:02:17 +0000 Message-ID: Date: Thu, 30 Nov 2023 17:01:23 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5 13/14] libie: add per-queue Page Pool stats Content-Language: en-US To: Jakub Kicinski CC: "David S. Miller" , Eric Dumazet , Paolo Abeni , Maciej Fijalkowski , Michal Kubiak , Larysa Zaremba , Alexander Duyck , Yunsheng Lin , "David Christensen" , Jesper Dangaard Brouer , Ilias Apalodimas , "Paul Menzel" , , , References: <20231124154732.1623518-1-aleksander.lobakin@intel.com> <20231124154732.1623518-14-aleksander.lobakin@intel.com> <20231129062914.0f895d1c@kernel.org> From: Alexander Lobakin In-Reply-To: <20231129062914.0f895d1c@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0247.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b5::17) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB3625:EE_|CH3PR11MB8363:EE_ X-MS-Office365-Filtering-Correlation-Id: 9402e759-85c6-49d6-3e4c-08dbf1bdb951 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 43+tiC/mabBYboMyl5ZijmAwG90AZSv+wJ1dQXsZFSO7/m3Kmk/mdvD3FvV6V0tgJc1ZMLgUkReY8bnut4VOOKE3lhDO9+MysZBwp+xwRfIR9qDUsvlFGnd4J8RhgQPJIQ5ymkAwfJ9E7y+TdmRrXwlWzy0a0IeNQ6f8zc7txVyKqNgZnf4/g4L68VcKBkm2xgyjQk8EC0M24bYJZ7M27xcgnGITOwcN3x6O4TlinJO6+gE/TgVWP7er+mw+uIK7WbrfPuy/jVu0B9K1zFi8vgA5xRIUv2WCp2k1dCVHzLLeoqEcRktkQZ455FIbPn+raJ0MkkywONw5w+js28Tc1dvWirsn9egMgchSxf/ew6dFtjXEg5x1kx0LAhDTcZ7FHwRdefP1vyr8Ohs/9WMwFXy+U/dxqrMbR1rf/TXy/6A2TGuVukGFEsVqjPjj9/rnU2UkFv69g1W1UvGzjsaxjLODr+dTeoteCEMjRXq4htCOtsuYgKtT0Yh1JAmkGcMZioY64w17HKw7vPpd2NS5EIMd1ogX99MnRU+nCycJuYap8ny4mh7nPJpknCFN32y9yOcpaJMG4ZUshTP39diR1jHJFU2GH+natLmuaWzlr15gK8VXFALDQPLOGma3Kq0Q1HGUMh20avptair55iF/Dw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB3625.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(39860400002)(376002)(136003)(346002)(366004)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(26005)(31686004)(82960400001)(38100700002)(7416002)(2906002)(5660300002)(6666004)(6506007)(83380400001)(2616005)(6512007)(478600001)(36756003)(6486002)(41300700001)(66946007)(6916009)(54906003)(4326008)(8676002)(66556008)(86362001)(66476007)(31696002)(8936002)(316002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WEdYN0dYRGtYN3owTm9aYUZpYmlsYXhZYStWL2Ixenh0S0RFZ1JJblJ0bm9M?= =?utf-8?B?M3k4bU1Qc3pRdm1EakYzWnk1Wk5CVnpxSGE2YmFwb3JKbUhCcS9LU3kvZURa?= =?utf-8?B?VW5QbUptMjFDQUJjU09JOFBYNS9qcU9sWWVVcjRUOENuZ1lFZVA3Q1J6M2Na?= =?utf-8?B?RlZxTTRRbzFQSng2VG0rdG9JcUM4TWhkR0xBcWhSbmpzeHlXc01ZVWRJeTlU?= =?utf-8?B?K3NYVDRFdmZkSjhkQXkvS2ZMMU9MY2dJcUh0aTFOZ25ZT01nWlU2NlJMRnVu?= =?utf-8?B?cTUwZFZoSTRJZ2VHL2xsMWIvczlmL29iL1E2NTM3Yk1jMGE0TVdYci9KaTVX?= =?utf-8?B?TUFqVTlHTXN3VnBHc3VCdzBzWEY0Z3BqREJKTTYyWEhJY2JJQmtLb01DcWNq?= =?utf-8?B?ZW1SMjFyTDJuenJtdzhCeHJWbFprY1VqWm1pSS9BRXg1TzVtbUNGMkZPNEs2?= =?utf-8?B?dHlseHFWakh1L2lhNkYxdUhzazZZQ1g2Q2U4T2RNNlhVbDI2dnJYSTd3VlFE?= =?utf-8?B?SlZnK3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vm5o?= =?utf-8?B?MXN6YitlbUdHOGVuMXk5bEZvUmxoajEwQjNuaWV6Um43RW05K2hlL1NnYTdq?= =?utf-8?B?SjBOU3AzdFlXdGdza3Z5K0ZSVVB2TEE0VnFId2Mwc3A2dTN4QVpYcDl6dWVW?= =?utf-8?B?dXpOaUlMY3dZdnJBemQ5TWlFcHVWTFVHRmtrU3B5c2IxN3NqUlpBYjZvTlA2?= =?utf-8?B?S3M0RlIyY2FlM0Q3bXVhb2daM09peG9CMkw1S3NlckxQRjNaM3JNN3ZpeVc4?= =?utf-8?B?K0VuLzRTbm5CaTlhNzY1OXRBaUhBT05yTTdseUJZell0N2luZU41SHN3OU9M?= =?utf-8?B?TGQyaHlOLzhBTEx6cm5sUmlvTU50SDljcnpGclVxV21pQ0NNWmhTL2tINGcx?= =?utf-8?B?aHU1VjRPaER6VjVMZVo4QXBTZ1RjYkR6Y0RMWEFwVFowTXVSMVhWNCtXWEdT?= =?utf-8?B?N3ZsNUZiaTZEZEFiVTJNZEozOFFxNWhYdnJsTnZTa3dYMHkzeWxqY1lkSEMz?= =?utf-8?B?K2g4eHpyMUI1YXNuWDhUcElsa1dFdkM0ZW83SHFQVldaM0hmNEpjNjV0djBq?= =?utf-8?B?MUplRCtWOC9YSmFjRCtxSzROaUVYUzhBQWhWczNGVytoRUtRa0tjV3d2Qm83?= =?utf-8?B?bWtsQjBoS2RaVFplNXUzSG1seEtVck16cnRibHFuMnFuWHRuSVlydTVzVkdk?= =?utf-8?B?d0I2a0NJZERRZlJ2UTNjWHN5OWdrNFR6WnVLM3djWWw3WFFKcHhGR2xPNjBt?= =?utf-8?B?WkE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 9402e759-85c6-49d6-3e4c-08dbf1bdb951 X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3625.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2023 16:02:16.6160 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: egH4tE00az/IF+dz4iACkrsQiwyEfMtyIa7OvbIsv2GCps5xO5wNJMD2lzMjD9DaYHpHrbEMZk88Pm4oRdAOehCRIvb+mFT+4zJ+Jh7AEdA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8363 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 08:02:55 -0800 (PST) From: Jakub Kicinski Date: Wed, 29 Nov 2023 06:29:14 -0800 > On Wed, 29 Nov 2023 14:40:33 +0100 Alexander Lobakin wrote: >>> Expand the libie generic per-queue stats with the generic Page Pool >>> stats provided by the API itself, when CONFIG_PAGE_POOL_STATS is >>> enabled. When it's not, there'll be no such fields in the stats >>> structure, so no space wasted. >> >> Do I get it correctly that after Page Pool Netlink introspection was >> merged, this commit makes no sense and we shouln't add PP stats to the >> drivers private ones? > > Yes, 100%. Meh, this way the stats won't survive ifdown/ifup cycles as usually page_pools get destroyed on ifdown :z In that patch, I backup the PP stats to a device-lifetime container when the pool gets destroyed, maybe we could do something similar? > > FWIW I am aware that better tooling would be good so non-developers > could access to the PP Netlink :( I'm thinking we should clean up > YNL lib packaging a little and try to convince iproute2 maintainers > to accept simple CLI built on top of it. Thanks, Olek