From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0061.outbound.protection.outlook.com [104.47.40.61]) by dpdk.org (Postfix) with ESMTP id 3D3682B9B for ; Mon, 3 Apr 2017 11:12:20 +0200 (CEST) Received: from BN3PR0301CA0032.namprd03.prod.outlook.com (10.160.180.170) by BN1PR03MB283.namprd03.prod.outlook.com (10.255.200.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Mon, 3 Apr 2017 09:12:19 +0000 Received: from BL2FFO11FD025.protection.gbl (2a01:111:f400:7c09::142) by BN3PR0301CA0032.outlook.office365.com (2a01:111:e400:4000::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Mon, 3 Apr 2017 09:12:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD025.mail.protection.outlook.com (10.173.161.104) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Mon, 3 Apr 2017 09:12:19 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v339CGTV010521; Mon, 3 Apr 2017 02:12:17 -0700 From: Hemant Agrawal To: CC: , Date: Mon, 3 Apr 2017 14:42:09 +0530 Message-ID: <1491210729-9755-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131356843394085902; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39840400002)(39400400002)(39410400002)(39860400002)(39450400003)(39850400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(2906002)(85426001)(77096006)(36756003)(356003)(54906002)(8656002)(104016004)(48376002)(53936002)(47776003)(189998001)(5660300001)(50466002)(2351001)(50226002)(38730400002)(110136004)(8676002)(8936002)(106466001)(105606002)(4326008)(81166006)(33646002)(305945005)(5003940100001)(86362001)(6916009)(6666003)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB283; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD025; 1:S+KfqYvJ/qzsGDO303L1Yyk3hlPzpt2wmVALKpv5U4tWGe56bmoop8h7Qg8nNiSEYeRx9J/u8TxFFFcjWvBbR7zOTosdBM9linrdJOGBH5FZs3qixUit7mlojZV2MqtSidHmy76wVTUViLyu1S9D7rOIhfJFDFPGskauw52+y48KXRrR2QnpnfTBd31ky+WMm1EIcOwzoq8qAqLmzeH7UuyD4d4WBafY/o8zPLBJLzCUjIjC0WuaOIzVcyw+/ztWGex6OFk3e2yOw7/eweM7LMBvNTSdP3A57H/ph79jPtwe27weGpgKjhvvROjwfaGavOMQRjCvjI3VPMw3Yf8Mmw7k+iRwcs198DbUl+cpAuv5u2PTOhPO1EQO4jDK+jCTu3+WwWIXoGGFkfUgy1YNWSXk8w092SgJwQdUGpACaCUJeJUyCQsuHdzefL2h5hin1gUYVLC41aR1uCPnwDv9R98DoFTR+/XWSVboyx/lTChqPWrokb3809yAgRlecOlolUt2J0qwAKMsUYrnBKQxGxiiclLINuWojtj3fZOUNaHFxa36wZUhWbf/JqlSR01pqEpLaAyF/nDWqvwAKgdy2PJoOfSP/gaGLnuuYCCI95pDDoD3KRmlHcMExoy7QAobWSAAph7CJuFVycZ5kQ0DYxq2MVVzXhsJyPkN2Qun32Y0+07GuTlRux418+8hmF/yiS9S/oHv8X8WFVlPyaXwia+58sdx2kK7SjjajyGWS4w= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 4f39ced1-3bac-487f-290e-08d47a7187b6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255075)(201703131430075)(201703131517081); SRVR:BN1PR03MB283; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 3:G3Xkhs9IVeWj9MuXqlEsnEpKBvFJgCqQall2ln2JVofhvImQ/S0St1gjINbCeT3177GJ+o27nHFgN304SyC9oOhZOpC5ir1UtzulbUMlLqPK2Ih0xUqv64gh7SlxL+Dyfr5Tj5oPgx5fqpeL5Ja/8ZMdM5vjVwcLAfnsO3UCK2V+z/XSB/wuXK9wVxQaq+6WbBJ7SVBJhrUPzRHQnqmxnZ68XkOVeMzGepbDzaPdyYsoDVzIfhdKqv5WH5Mr+I7T6XW7gjOixLClD5On3mesCGfZ2GuiN0ZMWbOZL+uZZR4omUmTwAeZ4W/eO5YxKr+ySTCJwwyWEx1otwUrO3axukykeFvX9Ga1Em1dxmmquF1ZyCU7BQoN90Vw7g48F9DLauT44sHhu8CKhEDGrlDpzFqdVqItlY7gbFhL8RAATAHjx0tlf92dTNN+1upjMCyPv9N60j5woFNOXimnm2G6dg==; 25:5v1BHstX6ZIGz3LpUzNDHfdXPklPP/4H6+ONmKkA0qkRaW6FliZ2Z1folRXpzqpI4CJvaOOp8/a7tbbmpLVFJtFs9H514oNUNID2spRT7H1tMw6iY4+4XgLqEFPLII195BGHjCWdRMOMOyww5cvkYxttbEELMm+jOpaqOC7cetBtrMMGPY1tYJrjXclwmsjtK3aXy+4Zre3NsAWJW1qWnk8xgbPF9P9tupEL/D3epfceA0gUkWmOyk1m0ltZAUw65ntyfe1JywVf9go7SXlY3Y9Fjk/YPeek0Bhp6LaikgvXblZ1llMMOCrSTl9tMlAAW/inH1ScbXwIZllG+3HyLJoiq2WrzZkbLfTOYB57yQMBysG7MYnm60iFzc4y3SiOHc/8CR57aXb1pDpGxgMFsq3t/EAru4eKwMx9X0DALkPkCOUbxOvus8JdtrH/8vsKni+GGiENn86Jh2lG9z6jYA== X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 31:CJJN9/OSMV35Wk3GVlyjjzgYESk/a7TDCk6TKTEeYbUMRBQcLA5TvygnRls6DcttUXeRZMaXgWHsWxIj19LHJlx/nU7ZI1PxPYTCl04MthY4ia5qFWOqmkAAVhmRQ7CwQAjIZuKHVuEoXyliFAbdMbzRpJ3+W9XiGdElsjaz3uie5PLpxzGC4UZRXMlDyTDJPJbK9Lv670+/JZZ05cdHv2bVGXp2eeiY3/VtevNRnluPPqBNJvROWvu99pY0nZtceLZ8gDLRXH04jPP6CHezSP0WM2dITr19d4aQvLiN+KI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(8121501046)(13015025)(13017025)(5005006)(13024025)(13018025)(13023025)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703161259075)(20161123565025); SRVR:BN1PR03MB283; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR03MB283; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 4:g34uMjGrxL8MAwzFDhG3Jurj32qPoP4nsCPqqYWZ07Wg8k6AMC1/rRu3jP2SpOKD/XmPaYdcnxnKOQU2US9tSJCTPb6pPpnM0KiISqXboge1O8ZmkHqQ5T5euopQuI53YmB+1ajm2n1QmX4ioh5Iftg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ascii?Q?94N2wVi0VlxVDGhF0Dh51QxMXdFrzFIDb0sjNbMmvglO7Xn81Va1HMlxMo/D?= =?us-ascii?Q?KrMNkI/ZNhIRkCCMxVoIHaAObvTl8L?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 6:75r7X2aJGuMc6cLIC37vmLit2waW9dQnxw3i3U32kdR/a8cVPAl0iKQ75KT6PNTcND95+hH+/SMAt6BL1OdpzwIXeQDErwgCTlUPHci+H9b2tF6PyDl4Dsy3JLGekodzXZZ/enpzvxra9EjUgCqeV1yohvvxcYQNsm9YZQPLi2VNDYd6PIUkQAMFv96rlZJBNEQ1/JJzYrMXqPEBRiOrIVi7DH6zwSh+BOn7d3TRNjZbPN7AEahNBYnApy/69jqgPSmDLjJZhUGnPXoTh+Odke91pyrw3KCiL4gg7GnjyG8y33bpLSuLDgWZBp/s6RqT3KDHMfJKpkFw8waBfwJRKrXXvtticXzhVGtwSqR6aQC59fspsP+YHvxUn4bLYlc7AWXbl6i0N+2tF2tBbPI5AA==; 5:hc8N/91qoYYpVpB8iDVqALarFwMU6lyTccyu6h7iQgO6OErpNM4G+87FdohE/4nwUQ5Z60i6cN9P8MXI0xUylqqRZTTJFIgkkBhwmTNXPaHsLEGRjxo4SwH80Qo85LwfNJ3AiOmnf/xlM8d8rm4XHW1RyF+bHBah6bV3uWjXOXtc37J6KvZPuu7bo3MMRx2z; 24:oiCVTe3iJkQIE2K7qTkalSFo0RUBYHIry2050earBA+n76mRmtmQFMwhDKNVNlPMd5qf9CQFRVa+QzGfwrCfXTczoTulttXElNNAjwVmtTg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 7:9eYraGRa3huQ7HcFEcjEdNXNbhU6XY/VeAWXmKFudohJVYq3FCepzXxMdZB/ODUsO1yVLPCQRSMC8RfJFFqa6SDOwrOyzHjOmJgQG4RV9Q3obn9L77IkxF5zGEabrPN1cZTyCeAhOuMfLTyyuozQJMNtE+0CH5Ym+UT8CAyBUDb0vb8NYqzmP9Gax1GJHzMrdCxeKyMAeeMUZcgoHavVU5dEDAcN9Mhr57s2qaAXQ78XmTJ8oS2qKYgrsrlFlfrvSK+4Ujq0EBzSn5bYLQlzwV2sCu3avBQhdLU8xlD5eI+vzrj8ou1BTiqz9Y+YG/a55tHAie5bgU/asAIMtlR5kw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 09:12:19.1121 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB283 Subject: [dpdk-dev] [PATCH] mempool: introduce flag to indicate hw mempool X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2017 09:12:22 -0000 Hardware pools need to distinguish between buffers allocated using software or hardware backed pools. Some HW NICs may choose to autonomously free the pickets during transmit if the packet is from HW pool. While they should not do it for software backed pools. Such flag would also help when multiple pools are being handled by a PMD, saving costly compare operations for any internal marker. Signed-off-by: Hemant Agrawal --- lib/librte_mempool/rte_mempool.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index 991feaa..91dbd21 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -263,6 +263,11 @@ 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_PHYS_CONTIG 0x0020 /**< Don't need physically contiguous objs. */ +#define MEMPOOL_F_HW_POOL (1 << ((sizeof(int) * 8) - 1)) /**< Internal: + * Hardware offloaded pool. This information may be used by the + * NIC or other hw. Some NICs autonomously free the HW backed pool packets. */ + +/**< Don't need physically contiguous objs. */ /** * @internal When debug is enabled, store some statistics. -- 1.9.1