From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DA1215B984; Mon, 30 Dec 2024 09:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735550125; cv=none; b=JPRXE0O+Wrnj1SL8XJbtkOJVarKWhrvhgNMt85ClVCtcchsIfFTEYMfw/xmhPwFATpaF5O4k6hqkjeQLRyNnWNGTXFkhBvzXLaoxB56XtMSfRlO/WM7Miqtc2oTszrkgMecnOw3qcNBe1m/TRlJevTOInv4AAYjN79sAClicq6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735550125; c=relaxed/simple; bh=mW34OzIcEipYpv+1fB0287jMNmYeJfn2mFWjcuu4MOo=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=T4xPu9wJjcHS3JatKo3FyDsOrjtotusBS8VEhXlCS+GioRC3jJ0cGd7aPMaviPTyipbVQ6fGg8iuhR3whA4D619Kp0IoUug/lu5NKXyGvQEWl+9oPdZ7cO8lCaGtcqgXhrGjony2fgpCx5v8JY+rNQoCbA2eECeHdnCJM7JUI+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4YM9R84Z9Wz1JGfM; Mon, 30 Dec 2024 17:14:44 +0800 (CST) Received: from dggpemf200006.china.huawei.com (unknown [7.185.36.61]) by mail.maildlp.com (Postfix) with ESMTPS id 326781A0188; Mon, 30 Dec 2024 17:15:20 +0800 (CST) Received: from [10.67.120.129] (10.67.120.129) by dggpemf200006.china.huawei.com (7.185.36.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 30 Dec 2024 17:15:19 +0800 Message-ID: <354e423e-1111-43d5-accd-17a099690369@huawei.com> Date: Mon, 30 Dec 2024 17:15:19 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFCv5 1/8] page_pool: introduce page_pool_to_pp() API To: Ilias Apalodimas CC: , , , , , , , Wei Fang , Shenwei Wang , Clark Wang , Andrew Lunn , Eric Dumazet , Jeroen de Borst , Praveen Kaligineedi , Shailend Chand , Tony Nguyen , Przemek Kitszel , Alexander Lobakin , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Saeed Mahameed , Leon Romanovsky , Tariq Toukan , Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , Matthias Brugger , AngeloGioacchino Del Regno , Simon Horman , , , , , , , , , References: <20241213122739.4050137-1-linyunsheng@huawei.com> <20241213122739.4050137-2-linyunsheng@huawei.com> Content-Language: en-US From: Yunsheng Lin In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemf200006.china.huawei.com (7.185.36.61) On 2024/12/20 20:29, Ilias Apalodimas wrote: > Hi Yunsheng, > > On Fri, 13 Dec 2024 at 14:35, Yunsheng Lin wrote: >> >> introduce page_pool_to_pp() API to avoid caller accessing >> page->pp directly. >> > > I think we already have way too many abstractions, I'd say we need > less not more. I don't know what others think, but I don't see what we > gain from this I am not sure how it is related to 'abstraction' here. Either we don't allow drivers accessing the page->pp directly, otherwise it seems better to provide a proper API for that as my understanding as it seems better not to mess with internal detail of page_pool. > > Thanks > /Ilias