Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp312103pxb; Wed, 22 Sep 2021 02:46:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYisMVHafmK4bfbCk1qTSa2vyM/7TBN7QIp0YZodg6DLHP/T5UKtdNUb3lykA70Q8G4EQF X-Received: by 2002:a50:ee82:: with SMTP id f2mr40502082edr.15.1632303998422; Wed, 22 Sep 2021 02:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632303998; cv=none; d=google.com; s=arc-20160816; b=F9H7ivLfbUQKI1YKkFX4d4t+d6L48j+lL1OQXGh9HjI4zpislGKYiKGCsalak7LUce G4BqxUnQBvG+Ym0E+b2gUXs6D8urCbOe+67ZtouavDHtz47uc8niD61TjtO9oeetd6is vD4Sardqx0UmLqRWa7X/+J5tyXYA46B66YoQ8/1IVQA9ykVoRwpSP7VAsGob8JUhzOh0 iKvQqvQBk9qiB1xKT04tT/gbaHae3ooaqV6jqZa5cwaZFDBiqAYTjKzYDe7KMEguulmC 1bKiJ7triPP9G7nhfcEc2ImFnzmnB75W5aBdDB6jv4msMuuZjuGJVXZrBvO2mzF8VKmX Ojuw== 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 :message-id:date:subject:cc:to:from; bh=st+qDPeYkpMJT4WKpvqJMNEwitQXbvVF0Yttlmjiuec=; b=XhlAk5IAMP/O9yXosTB0o9Lvzt0TFMJDF7BxUCHbwbYfuAAaERcu1uyl4STMLXVeFr 9HR4+8Vg8+Wmorwi3vMwtQ/2L6VkeMndXoLW1eKv1PYTeRyzovRfw75LM/XIu0zxUJPk T7Ca/bCDDm3i/QTzveORE4gcS/9qWSgcU9B7MGt0FJWH/62XykJPYPGMCSfK/f4D3LOc j5nELTGXXqn+iH58rAOHBbcKIq+E45SyC5jGztb7r72/9QIFirjuWhJQYHXEHResbh+P MNm0UVIeEgwrkKrMCMZboz5KRfdEC0bsD45ZLlLaECTIm6UFzTOh8vm9S3P9iZJnP59s NNYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si2661955ejt.376.2021.09.22.02.46.06; Wed, 22 Sep 2021 02:46:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234421AbhIVJod (ORCPT + 99 others); Wed, 22 Sep 2021 05:44:33 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:9902 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbhIVJoc (ORCPT ); Wed, 22 Sep 2021 05:44:32 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HDtX46CQtz8yh9; Wed, 22 Sep 2021 17:38:28 +0800 (CST) Received: from dggpemm500005.china.huawei.com (7.185.36.74) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 22 Sep 2021 17:43:01 +0800 Received: from localhost.localdomain (10.69.192.56) by dggpemm500005.china.huawei.com (7.185.36.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 22 Sep 2021 17:43:01 +0800 From: Yunsheng Lin To: , CC: , , , , , , , , , , , , , , , , Subject: [PATCH net-next 0/7] some optimization for page pool Date: Wed, 22 Sep 2021 17:41:24 +0800 Message-ID: <20210922094131.15625-1-linyunsheng@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500005.china.huawei.com (7.185.36.74) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch 1: disable dma mapping support for 32-bit arch with 64-bit DMA. Patch 2: support non-split page when PP_FLAG_PAGE_FRAG is set. patch 3: avoid calling compound_head() for skb frag page Patch 4-7: use pp_magic to identify pp page uniquely. V3: 1. add patch 1/4/6/7. 2. use pp_magic to identify pp page uniquely too. 3. avoid unnecessary compound_head() calling. V2: add patch 2, adjust the commit log accroding to the discussion in V1, and fix a compiler error reported by kernel test robot. Yunsheng Lin (7): page_pool: disable dma mapping support for 32-bit arch with 64-bit DMA page_pool: support non-split page with PP_FLAG_PAGE_FRAG pool_pool: avoid calling compound_head() for skb frag page page_pool: change BIAS_MAX to support incrementing skbuff: keep track of pp page when __skb_frag_ref() is called skbuff: only use pp_magic identifier for a skb' head page skbuff: remove unused skb->pp_recycle .../net/ethernet/hisilicon/hns3/hns3_enet.c | 6 --- drivers/net/ethernet/marvell/mvneta.c | 2 - .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 4 +- drivers/net/ethernet/marvell/sky2.c | 2 +- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 2 +- drivers/net/ethernet/ti/cpsw.c | 2 - drivers/net/ethernet/ti/cpsw_new.c | 2 - include/linux/mm_types.h | 13 +----- include/linux/skbuff.h | 39 ++++++++---------- include/net/page_pool.h | 31 ++++++++------ net/core/page_pool.c | 40 +++++++------------ net/core/skbuff.c | 36 ++++++----------- net/tls/tls_device.c | 2 +- 13 files changed, 67 insertions(+), 114 deletions(-) -- 2.33.0