Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2501069rwo; Thu, 3 Aug 2023 10:13:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlEHVwUyfSp/+okHDPXVv1vr/7LcB0t8Oj/1GKmr8q0g5sYTmKonDUfrj2lj9Dd1VS9xXATv X-Received: by 2002:a05:6358:2799:b0:132:d32d:d929 with SMTP id l25-20020a056358279900b00132d32dd929mr10342962rwb.20.1691082805449; Thu, 03 Aug 2023 10:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691082805; cv=none; d=google.com; s=arc-20160816; b=MulNIvxlvN5do2GJ4a7WA6BePiiNus2G6zQlnYmN/qxy/Np9x8LiniV0CfFyB4TueY arj/2WYTvC7/VgKUsCcVcyF+pxg3Z9gQU0LZXtbe2+5KlfzKmN4CAO2BqIHluYhKbHdt C6rGrrjnxzZ62mhug1zIXymtqBu7h+D3/FRUoLwG6gQ8Ab8UgAbf6Lwr2/ZOvyfQ63rC HtlfIICqAdfHmeJnfWgu01t/XK7Uqvp979IJPfuhcX1yf4bWindU2c1mtsKHY9Ooavd4 lSfWkMeQprgL9j+LVw3deS/LcihjL9FNKq/7qq7vjXmvLVUDEhi+BLS5MGHu8HQ6yghp /n7w== 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:subject:cc:to:from:date :dkim-signature; bh=A6ovuMLvJyLRgaPPrux1Bl2pVLojfZVEyD17cYvPdTs=; fh=9td/jw969iLpLAYGpdhxsAlo+Zsj+pcV/J0+kv/1e8Y=; b=JCSlA8dvb1t0k/z3rB1aWo4Hg2fIp1p2q3ZIlssVlw15ftZKU6KmNagyRZJFVgIrd4 comJWjFhEAWian6nXij/TjyFojkYZNO7HJ5YHEvVRaimWtm9tlIe9TmpgIPY8UBySbJT AW49y7DB+YpfGbPo7wdpKgXn2noSTHo3hWGZRlHiDglbLXPl5GKnIUraVFkgB+S8Bn6A qGc4MtucHBAFvYOP5fQxbNe9J+YA16HKK59HnZvg3z5Xg/NV/ji0W66hRnjIceyX8iaC /ec19ixWnWPT/11mPN1kD9Bx0/VRu3dciCYR14LXGFxLtgiOYaw6r25BimJyB4TgylLo nZDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aHcukMK9; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u69-20020a638548000000b00563d579024csi220813pgd.118.2023.08.03.10.13.09; Thu, 03 Aug 2023 10:13:25 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=aHcukMK9; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237308AbjHCQBI (ORCPT + 99 others); Thu, 3 Aug 2023 12:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237276AbjHCQBC (ORCPT ); Thu, 3 Aug 2023 12:01:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68EED422D for ; Thu, 3 Aug 2023 09:00:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A41A261E0C for ; Thu, 3 Aug 2023 16:00:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84288C433C7; Thu, 3 Aug 2023 16:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691078431; bh=4Kh3ibsHIzFJJq0/G/F3KHIgajbiAH5Vz1Bxyj9o3Vk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aHcukMK9r4SsEvRHz5MB3JYRd9vv2nzO2Dhx15gcmTQYg7K5ElnS+h6qO4o+Aaxxf F1+fKsZxAbCJSNfd+x5YLgUTPwYDzF1cH4b5hoXLYIE/TNhRRfwRPi/JyQzg5oRwIJ 7o5++3UksN4s9nxdAEUcOSnE9d+utZvJgseu3t9NWr0GPI0WhuZurHyN3WpVFDhqmx g/5hKrabvXUQyxOsYA7lPAyTQpOgJMlAeLLkKXBpdo34MDFacaoBpvO1i+VAMooFQG x4T7YYwvvrf6qXmzcbuvVvdLG31a9OUSp1I6kFdI1J6QmrrAJSgEnmzdKiqStNckTL 1mkytn4qKWhEg== Date: Thu, 3 Aug 2023 09:00:29 -0700 From: Jakub Kicinski To: Alexander Lobakin Cc: Yunsheng Lin , "David S. Miller" , Eric Dumazet , Paolo Abeni , Maciej Fijalkowski , Larysa Zaremba , Alexander Duyck , Jesper Dangaard Brouer , "Ilias Apalodimas" , Simon Horman , , Subject: Re: [PATCH net-next 5/9] page_pool: don't use driver-set flags field directly Message-ID: <20230803090029.16a6798d@kernel.org> In-Reply-To: <7b77dd3a-fd03-884a-8b8a-f76ab6de5691@intel.com> References: <20230727144336.1646454-1-aleksander.lobakin@intel.com> <20230727144336.1646454-6-aleksander.lobakin@intel.com> <6f8147ec-b8ad-3905-5279-16817ed6f5ae@intel.com> <0fe906a2-5ba1-f24a-efd8-7804ef0683b6@intel.com> <20230802142920.4a777079@kernel.org> <7b77dd3a-fd03-884a-8b8a-f76ab6de5691@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, 3 Aug 2023 16:56:22 +0200 Alexander Lobakin wrote: > > FWIW I'm tempted to do something like the patch below (an obvious move, > > I suspect). I want to add another pointer (netdev) to the params and > > Just take napi->dev as I do in libie :) :) The fields have extra semantics, like napi implies that recycling is allowed, and netdev implies that there is only _one_ netdev eating from the PP. There's also a way to get the pp <> netdev from the memory model registration. But I feel like explicit field is cleanest. Anyone, conversation for a later time :) > > I don't want it to eat up bytes in the first cache line. > > The patch is incomplete, we need to stash a one-bit indication in > > the first cache line to know init_callback is not present without > > having to look at @slow. I'll defer doing that cleanly until your > > patches land. > > I would propose to include it in the series, but it has grown a bunch > already and it's better to do that later separately :s Yeah.. I'd be trying to split your series up a little to make progress rather than add more things :( I was going to suggest that you post just the first 3 patches for instance. Should be an easy merge.