From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EC596A0C47; Wed, 18 Aug 2021 11:08:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D43E7411EA; Wed, 18 Aug 2021 11:08:28 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2046.outbound.protection.outlook.com [40.107.236.46]) by mails.dpdk.org (Postfix) with ESMTP id 470A1411C3 for ; Wed, 18 Aug 2021 11:08:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SIrl//kzkJ0UyZpp+zXExVccXsryE1Zt8nB5Mlc5iSHuf0UDBM8ecOomMIPZr0LzKqrK+T+UywdEsFWjYEgaYdROqBz31XlMe/0U0Ty7s8MQZPTYft3ebRZwRhB7+oX8NPZG1MRlmu4U/W6UXAg709fbVUlVv7tBVN22c4THxPPn6DMBtNWpoQ3kfxaIRW592Fi5uU8PMie94TBiEOywCT1Lknp+d6TillGLJCkOdq9j+Qq5WHn82PcL41Gdaw4Ogl1j8LAYUWzASIHUanYI38JWhk+/EYk2ZahBokvRkNhWWX7LctAtCzZO3HH+2Uz20E89zZA/yZi/99j5rvMkXQ== 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-SenderADCheck; bh=eeOaclJOGwtVdlf+PrTzqtqwiye0j16kyU1I5IvRFu8=; b=Dhc3K9XZ6BdYXQ2p8ME/3ZMKZiu9ZBCSVBT9ltgVWunVLYyY2Z7NA3w0n+XTx2c8g8QPQXXOMRJKoX9CdPwuJA/Zv3hy4PYdFYvqLQ3uDMrl73q5nLtQnsCCrm/Paneb4rTMhg6CuirReChKm+8zzSnVJiWDsEE2QQW8aV8KuUQANZxUR6FdN0vt8WiGMZM1jwwBMSVS7njmPs/MpFdReLTsHTHlOq+lqqd/4RnVzYVJRoo6lkyxAOSubyt5NTcu7IfHPNCdjxB3C86n+dxtnxOiaM9JG3Hkqe+m9tvwNAXsclKGDF6SvzWWnx8cMY0ySeYHwind2pIofVjn6bE1zw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.32) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eeOaclJOGwtVdlf+PrTzqtqwiye0j16kyU1I5IvRFu8=; b=RjR+ugfjXwR5y/2hFHgaBpMA8RACrLB2x9S5bGKJ8AiqJlHaiXnlULFWLarTx/upc+cgS+Ym9xxVgEuYYflPhUeSVynUwkiZWwNnRI/DMv/Z+hCGe0B7XZFaGPbvi3hP339w+phHJc5CYz7cDoiRc7A7YuUShRuik1JDK/o0clvhRJCkXeQIKD/bSyFTik1gLLb4gmZ9S3pVQqWgO3/O11X8llsx40Nkx+gITCPKZ7tBL0sbvXwpyyx2c3cfWBhXcuuYFCBdIzNNJ1ztNpkEaHkc0XxIn6uRB5I6yExRCxE6X4etOSQ3vlGWCxrpUgLlOKuLpcHHr7ppUkF+aqYmeA== Received: from DM6PR04CA0001.namprd04.prod.outlook.com (2603:10b6:5:334::6) by BN8PR12MB3281.namprd12.prod.outlook.com (2603:10b6:408:6e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.15; Wed, 18 Aug 2021 09:08:20 +0000 Received: from DM6NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:5:334:cafe::a3) by DM6PR04CA0001.outlook.office365.com (2603:10b6:5:334::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Wed, 18 Aug 2021 09:08:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.32) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.32 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.32; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.32) by DM6NAM11FT036.mail.protection.outlook.com (10.13.172.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4415.16 via Frontend Transport; Wed, 18 Aug 2021 09:08:19 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 18 Aug 2021 02:08:18 -0700 Received: from nvidia.com (172.20.187.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 18 Aug 2021 09:08:16 +0000 From: Dmitry Kozlyuk To: CC: Matan Azrad , Olivier Matz , Andrew Rybchenko Date: Wed, 18 Aug 2021 12:07:53 +0300 Message-ID: <20210818090755.2419483-3-dkozlyuk@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210818090755.2419483-1-dkozlyuk@nvidia.com> References: <20210818090755.2419483-1-dkozlyuk@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d91fad1d-c827-4f56-3801-08d96227b91e X-MS-TrafficTypeDiagnostic: BN8PR12MB3281: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YJxdG94gUxgikz64TcPLzHd5S5kghrDWa3rRNx8ONcEYWnvmqgW3SsQRwNsic4PIyPEdSiEiqJLDSxtPE+8vE0RvIZ85zb7VgwkgejasAaOfYbmLAdCY0KCpNenIk1ufCIrvKUVtJcqo1xAwEwRUJAo51Dn2NWwwz2jMMTvHYBXhUCG3nZdLAMA4sSiYxkXoQYkBk57kXa7bPlsegMM3jkfK6TtwVMBECPrHb8SsT09Qs3PK9ECgygyXjzqN5Wr+RpmGMmbJobtqGkfxbkcOD7CQCCNQ0YvGpwMETJvq50Qk4rsiASdySlubCLMktbbtGB78dN3yk42B1YsNc/sd0Tyr225hE6qTrNa7GGv8CnIu9bSJdrod/sZULUjL9ONa8oxuIshweDrTVQMW60k4rqZofHL+KLvixzNJckaXM90es29Yg3WsZsvCauUfaZ15erlYuKIhwZ7NBt8exvttc95PyMVZQGeJgEClcGvsfXnLUt7TxYxughEscq/4HpKQAOqmTmRtF/rLJKsfeIZT55r8AhGbzeTA2Op/YdYs2ttb4TWPE8GgjLQJRebdafXIKmN1HG0oT5+B9NBI9IBkWB6NVls/Etv/y8S6v34GTsMimnxvYzt5BBlMathivFUWXDty0Cd7M5s3OBCIHTpTXnS0MS0qqsQdsGVxIzMbYKiUFwQGVtl1uaXnfWisgVvxt8JTo8cPDLfEw/t5fRxW5g== X-Forefront-Antispam-Report: CIP:216.228.112.32; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid01.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(376002)(136003)(39860400002)(346002)(36840700001)(46966006)(36756003)(316002)(5660300002)(82740400003)(36860700001)(1076003)(26005)(86362001)(16526019)(186003)(2616005)(8676002)(478600001)(47076005)(54906003)(70586007)(8936002)(55016002)(2906002)(7696005)(336012)(426003)(6666004)(70206006)(356005)(6916009)(6286002)(4326008)(7636003)(82310400003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2021 09:08:19.5879 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d91fad1d-c827-4f56-3801-08d96227b91e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.32]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3281 Subject: [dpdk-dev] [PATCH 2/4] mempool: add non-IO flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Mempool is a generic allocator that is not necessarily used for device IO operations and its memory for DMA. Add MEMPOOL_F_NON_IO flag to mark such mempools. Signed-off-by: Dmitry Kozlyuk Acked-by: Matan Azrad --- doc/guides/rel_notes/release_21_11.rst | 3 +++ lib/mempool/rte_mempool.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index d707a554ef..dc9b98b862 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -84,6 +84,9 @@ API Changes Also, make sure to start the actual text at the margin. ======================================================= +* mempool: Added ``MEMPOOL_F_NON_IO`` flag to give a hint to DPDK components + that objects from this pool will not be used for device IO (e.g. DMA). + ABI Changes ----------- diff --git a/lib/mempool/rte_mempool.h b/lib/mempool/rte_mempool.h index 1e9b8f0229..7f0657ab16 100644 --- a/lib/mempool/rte_mempool.h +++ b/lib/mempool/rte_mempool.h @@ -263,6 +263,7 @@ struct rte_mempool { #define MEMPOOL_F_SC_GET 0x0008 /**< Default get is "single-consumer".*/ #define MEMPOOL_F_POOL_CREATED 0x0010 /**< Internal: pool is created. */ #define MEMPOOL_F_NO_IOVA_CONTIG 0x0020 /**< Don't need IOVA contiguous objs. */ +#define MEMPOOL_F_NON_IO 0x0040 /**< Not used for device IO (DMA). */ /** * @internal When debug is enabled, store some statistics. @@ -992,6 +993,9 @@ typedef void (rte_mempool_ctor_t)(struct rte_mempool *, void *); * "single-consumer". Otherwise, it is "multi-consumers". * - MEMPOOL_F_NO_IOVA_CONTIG: If set, allocated objects won't * necessarily be contiguous in IO memory. + * - MEMPOOL_F_NO_IO: If set, the mempool is considered to be + * never used for device IO, i.e. DMA operations, + * which may affect some PMD behavior. * @return * The pointer to the new allocated mempool, on success. NULL on error * with rte_errno set appropriately. Possible rte_errno values include: -- 2.25.1