From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0044.outbound.protection.outlook.com [104.47.32.44]) by dpdk.org (Postfix) with ESMTP id 283525A3E for ; Thu, 13 Jul 2017 11:34:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mQAIThCBgOILlB7yWuHHT57wpaC99ASF/4NtOR7tvUk=; b=NJENS7WHxnQgrOdc6ixQ+0XsiPRiehUzCIlpULKrS+QK3+Hfp+dtjEgwLshD+u9J6s0n25sPb1JQqgMtaZ21cxkA7LJOuE+TtwgHtAG8wLxdCp8I2XkDBgkGslTKA0E1KMdilvr2Ixk+Tk0B3zmhC5tFGMfXjYBZadQ1lb2qn1k= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3095.namprd07.prod.outlook.com (10.172.115.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Thu, 13 Jul 2017 09:34:00 +0000 From: Santosh Shukla To: thomas@monjalon.net, dev@dpdk.org, olivier.matz@6wind.com Cc: jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, Santosh Shukla Date: Thu, 13 Jul 2017 09:32:52 +0000 Message-Id: <20170713093255.13986-4-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170713093255.13986-1-santosh.shukla@caviumnetworks.com> References: <20170621173248.1313-1-santosh.shukla@caviumnetworks.com> <20170713093255.13986-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0016.INDPRD01.PROD.OUTLOOK.COM (10.174.214.154) To CY4PR07MB3095.namprd07.prod.outlook.com (10.172.115.9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98f785e5-800c-427f-b4bc-08d4c9d24c5b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3095; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 3:W0ZTh//4rVEU9ss4H7xTFtofDXtmteXUMRXXdn6TvlRhAdQ48iwKMUvKNn9BCQwitBVZCCd2vrAKx+E26JPainOxgMYNOz1aAu0t1Z+XRx1TJxQwC1UkB6YGsI3D0DpEb+Dl9zoR1z2ET+igdvTM0Ke3Lm/kX6EfZxemwpsU/uQTkRZOmbMqHmxNJJ/sEHiAYxh7mW91xfcxyO+miu9yRNNEkSGR8r/uN3bV1H7BXxwgwelOYcqZcVs8g0/gd5NJ0owSFMEBQ1Fb8P7KDuqS/eaxz1fgS0Rrz7CwLA2VzSRJ5tNE0AFBPRKwes+vTWiV7Ce59EdwJB5G/x/KbLqtLAndjx+oVeExHG1VwR50pClrUw7hGh2QjqWxt4wahKbGfsMJHJlicJn3HLvT+cThFFJ1W/prRNmpydvwHkUcfi+Pfnn9nG7ccAhTJy0T4+M5QUMTa/6NlC0mgFg35oM1avsZfe1usDsT8oCvwRpit9XAAMKtcdiGbebXB8X9HOetOislRfJzpZv+mitEAWjodX0QDABNCCU79fGnSQL9I+Ud9Jf1nEBFz3rboKy/IRFkM3EcPxJj99ZiO7SbwwwIsUB3jZ7TwgwZmbXRUR26OhktydWVvit/pFehI1JVKsjKhR3sdSYXiuSwqorx026bx/hWrXr2OUPuoQyCFER13m2CSyINA4C3BjEZF/VQ5MWEpwZcMFjCicGIXUDXlqIdFFahf84eaQNgx3C0qIPmaxM= X-MS-TrafficTypeDiagnostic: CY4PR07MB3095: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 25:aEUp2QIhjJBP13A6VLhjPyGU4XDnx58xzibETxhnikrxNkL/lNgsPywz/tsf2FFJuVTnbs7lMeer4d41UZZIikjDb0InLKub5PPMUSVfbtQ8Kkf6xHjhmWjV0NTQe6ng+ogUJf0p+wF+OF1vakWoowqUwhubMtbZJml2SAD/0o/ikIwSnyBzL8MhgE7G9LwOR5NHv/FVBD2Ay0LMfpYQU3kPSjiRDtYBQfNW9WKy0MtSZD2D+V7Pl489OaHTzwyVVWSYK4Xi49Oa+6344yjDHCawf5syPK/Z2qv2nwuOzLldsFL6zDhVfQxtPKRLLGhxfpTaKyzL+OslFIrufMvHuJxczSOsv/inHz0DKldryPzpTvLJ8TomWlBYxxzvub+pSBO9IfWyRZUlLvt4JRyjhYijiDfPMMuGFu9+qmg5uIdQ3srulBTH5zEBC5lvQRLRal0hH1AvYVDqyJx8F456/48o59R4eoYM1+W8Pcro5WkA2KxJ4nBK1YVGz/GM8hrUB8i6z7zY7or7iXP4R2GUcVXIxMCVEBI1s4D7lnphG6hW2AqldLR8Jolzj/3ZVTR3lcWH9e4GN9bRd0yVA5I59sLzwSy7rwuQ6CJetSYpQewE8GeijYt8GRw57R98rcfWwxxp9awNkcFVpYm8MJQdawP7H8bQGedHrSLMuSmXdGHJtpNnpkRMDVlcsX1TymdRku+/v+r1G4V/Ba186T56ZldubI6gwoOwUv372WAx+6ukjHk6jY1ilyKkXZVjY9TXxafRKYEzNppki7QfXbzaIS217UtRcrQEtbk2Q3n4wuqQxfWaBsayQHEWIm1YoHgPm1i2D+V64xI14FasNRpibzS88PZ29YYvjGFZbphN57ONTKqmPBW7Tw/UVRDlg+KXzJSpZ8ZFq3RsoN/fWn9mNKmdVO3yja/9Nh8zKUyMfMM= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 31:3cmo0BQo3STdvljgPv5yXfRjcMnyZ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/5ihW96SzAjvfK18MsiPN7Fo/Y7iKUO9ik0YoUBx9nxF7nsAAOMroq5dZ7tqnUJc1s2dT8UqTApfjCvBTfjQhZz/9LdxXFAa0j/jufDVDDFccN1WwYaF4O4W+cR0oyazEf0sAx4slLjPWtQHaM35Yh/Fh2Mbh/9vTjAf2yBlOHIfnefx0Ksxm5Ida69MrUOrTwycSU8rGJ4LzWusnS/WkgPn7U93g= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(131327999870524); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3095; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3095; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 4:sEaqptJPvMWtFsMI2kAfCqHRwYje6M9WKR3HJTxW/G?= =?us-ascii?Q?dMo7E5lg8e0l/u2TLAForRrWs5cMCMr4Krq7M97AIujHy+e45mgZlbl3GzPB?= =?us-ascii?Q?YFKfvonAysvZ6Ug92NlFB5xSMu66CdGnjglL2KwwU6EeyhOaqLYCsqPiAX7H?= =?us-ascii?Q?JPbT74wZUjd/sTX/j7XA7qs0J61ZRaFtHeCQwiAIoyYLTZpCBagekTIqqo07?= =?us-ascii?Q?8dHEgL18C7BP7VckPwMtH5bo6W8e1ZLgkfXMLhUBz1kXR9B1xr9Liaryi2Ro?= =?us-ascii?Q?M8aA4rtoTR4b0g2SlRGTr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-ascii?Q?iBDQSKAmFBHbWuybCmVZT74LS4ZrgtDBGLXe7N4cAk69mLezqY39LzoA=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 0367A50BB1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6069001)(6009001)(39840400002)(39400400002)(39410400002)(39450400003)(39850400002)(33646002)(305945005)(8656002)(47776003)(25786009)(4326008)(50466002)(8676002)(7350300001)(48376002)(5009440100003)(50226002)(81166006)(110136004)(72206003)(5003940100001)(53936002)(76176999)(107886003)(7736002)(1076002)(6306002)(42186005)(6486002)(66066001)(6116002)(2906002)(36756003)(5660300001)(38730400002)(189998001)(42882006)(53376002)(6666003)(50986999)(478600001)(966005)(6506006)(6512007)(2950100002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3095; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 23:IgwQ4GtY9psiGv12QJzkbctelV5za6m+d+2IiNitg?= =?us-ascii?Q?CPfVtmqrYBXakfzRVpEy4qMoR5HhG8A7uzIpoT+v8uEHvhdrAR2rbxIVclkr?= =?us-ascii?Q?qlsIT3rAkoKqx3ed3yc+9Zh+oF8gU5vcmVQVLrDADDEg6Es68uJaxpQq7yJQ?= =?us-ascii?Q?D16bDHpa/AqLRpGhRfYDO+9xFU0yNqE5DPqW+3vQQggVXVi5FgKia5IdubtF?= =?us-ascii?Q?y3nb3i51sZXVRyb86DAAwUe8H4M0HlfJ6pzIM585Kv6ZWB1XlB684VMWyDx7?= =?us-ascii?Q?c2NHNYWeCYVOSzcoMSpZTxN2oGPLl7tpRYtArGwm3ozoc5OLFI5TSgidFTEH?= =?us-ascii?Q?YThnSvhMe73JBAsfhgINlYAAnvwqegzU5sjE7OJtrHc7rfTfiwLWMR3hYIqq?= =?us-ascii?Q?oQbdN1UNDFJbhsDfmcqzysiw3wyUHUbeP94uXAmyZlXMRVgZnapU5/fazTEV?= =?us-ascii?Q?FyiEP9lWuRMdUYTBGmgFVnTSbzcn7461UcgUFwUO/S6zC5sVt6ICKS+L/J0j?= =?us-ascii?Q?PZuN3FS9DfqT7tuJxwaq9umzvNIQXpRqpVgV4DyWrohdZf50iuL43Bz6zp1c?= =?us-ascii?Q?cLoCj/F8eH8t1zju1IKkcWYP5Ge4gQogngPrW8CIs975fUsXON8S0T/VqHKo?= =?us-ascii?Q?Pjyj5BfZUhDbuNAz23yNgp1mMnEUxLn9GBuN41SeIOBzZcF4DVkmkKIBC00s?= =?us-ascii?Q?Q2yvQ7kv9vagsXVGE5fBhZZJOeDYVm+mTMqqyoHiqPV9dyXVjP8axQpVmGir?= =?us-ascii?Q?yImdXlxslRaKwYh0vb3D8pz98o1Va0vhD67NxF4447AIEyVEURR4sAgefzmX?= =?us-ascii?Q?iptrbvXxlRPgGnNRMulFmBhWrJ87qEENb9ox76EEGrBZxHvwSCeAB+vRTeud?= =?us-ascii?Q?fI6yKpsMMciJMhvU3Y2HbfnFRlqTa4SI1OLy7lgVGG1JdATOkaO2fRiWRuYZ?= =?us-ascii?Q?MnpB4S0wG28yGnMcEFrU1cYy11TGQSJz5s4/no35vlIrvNQxI7tvcz9qpg1D?= =?us-ascii?Q?fMWhwfQSgVHG/BLeJ9NDrfgu28virZOwg1poUuL2RVuwz6H77KdbhpiYuZQR?= =?us-ascii?Q?yFWIMKur2//xzs7W9EzJa4mnrAz2XeWeKqEZgkT9syo1Mv01EX+XWzRnVolq?= =?us-ascii?Q?b8BZMw4psWF2XYYz5gJSp6wlHMcBXgRbhXn+6noPUAMDpv+bng2jTpwoaO1p?= =?us-ascii?Q?AjoPmtJV2syKohOKYpZwxnQluqFOxbKYtT0k3BbdbVbsmol9oC8XihOpgs8o?= =?us-ascii?Q?LeU/f9Rh+P0zLBJQkQ=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 6:SMgSkB23NkT9Qv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A4DUO0sAHBexAImbUxVCfVoO6pmWbrA9tZAAwISylEvEpHrxk3e+vnYV7zi6?= =?us-ascii?Q?fqwH+fLrT1hoU61jUKRFZJDqU/CWICBF56ORDvReqWZQd1AF71Eg808xyeLc?= =?us-ascii?Q?A=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 5:1zsfshkvyEHS3EZRL77h2Cs83KMSd7+ry+8tlRnUcK/CYyqqm8MX9F93Zyc5Yi1lm6SCUUBMRwy7ePZqbFoAHNiSqYmXjRAtzaPP0z27AJgsXjMVw5kh2muoyXiN4ZGdqk13olyNyU/TPE4NDBReIhT5hNi7sG+3JHljJxi6EwyJaPWQFrCrkaqBgY2TdYSIcqp7I2g78KQaSSy7S+xilvTihMV2UpJJSX1dCgJdX4ZDC+HanaYZV4QmqqvdDBjg9yr5+Nuxh1g8TijqpAbBw2ZparRYZVFYIyTXFcjTGHrl4FRfCMtw8ya5ya+BAo9EbVkxZD6n+eqG5DBcPK6VGwroVw6xasp4UrlefdLkua5D15dqq2c3w9PAY7j9uEjH2lZU1dMNgd5+0lxBngX/RcTS0TH9S8wwqr4dEP3Ic7lYDTEo/61E5+nYwvmtUgz19KRhUMIsLfWNwDOvJQB/Y0BUht5lz+yq1nwL1vz08i16wvCmpbv2ME7v75LE0NZo; 24:giAPMMaqCrOeROLczsyT92KDy+5esCNWkiNrdvYLz8GLcqrAS/cFvbLVtJG2YCWoBNmmuT5/P/Qy3Y658BE2yE3x7U3ucEBQxb1H0ULJnqk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 7:nwS5pzyvE2+/9Bwz+D/CPs+UMgDIVfZPoJlIOPn/HlV09l3l6I3m3+BKfhc2SPagxDNQFddaXwsz5g5IppVpvRCgsuMXFVkvl8cYuOnjghCnvMrbUKu7kkdm2XBve2bI5Idfw7CQxb+gZbzbSA+BVvUacn3g9MxshryCLgFSn0bPUBtoYNzTJqxvbsSc2ri0hpCekqqLi5HWHMKnRIcP9wpXVcTJPyBowzYnqMdu4CSRdmimU70GPHIWzN/gra0PXI/rJ6hTAqWb2wQ0ltAi9ROiFYwbwpLXaNxuw9UwEFoxdOLW/WIXFI5sv7KvNs//pm36HNvsb6i3CSaImy0ang/5aLs384cYdxQlxKqqtGJtv6oEGLtHZRttnop2V34m39x/82ApoWmpD1xfGjtb1FsInOpL1RgQEB0dKNfEgqH4vZYvk7efAr0Z91ku7z2l624or+Xx99TAP4xjew9mrbRwx81k5sVVa1uURkzk3LOFl4GJhHQioBhMU4MkgJ3cCuBtKtRW0CEp3TU4ZKmUZLTJOK3iMPVQ3Lmo12yWfY9WVpzRA039Rcc5gWMG7wYCdYaYNLxem1VgSQ7HiZDVyRpl5a5xkGVzZ9/SJF5QKyF190K2Ik35pbKkSuRHOFXGkYeY4V4sSMwjMe/byvO5RjgT+Uit7RG13rsKHq3eoWKvgUxsF7la9kjfs/RsOPvWxapoeRXB0xqEh66lUo7toObWDlRJ4h+ks8KwPOzYdAQlXvBVAkfjTVK0sOVp7SRDyXT+pnpFRt4qLslH9mou9gjnev/2dMAqMOQTy5oswds= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2017 09:34:00.6382 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3095 Subject: [dpdk-dev] [PATCH v2 3/6] mempool: detect physical contiguous object in pool 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: Thu, 13 Jul 2017 09:34:05 -0000 The memory area containing all the objects must be physically contiguous. Introducing MEMPOOL_F_CAPA_PHYS_CONTIG flag for such use-case. The flag useful to detect whether pool area has sufficient space to fit all objects. If not then return -ENOSPC. This way, we make sure that all object within a pool is contiguous. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- v1 -- v2: - Renamed flag to MEMPOOL_F_CAPA_PHYS_CONTIG - Comment reworded. Refer [1]. [1] http://dpdk.org/dev/patchwork/patch/25604/ lib/librte_mempool/rte_mempool.c | 8 ++++++++ lib/librte_mempool/rte_mempool.h | 1 + 2 files changed, 9 insertions(+) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 34619aafd..65a98c046 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -368,6 +368,14 @@ rte_mempool_populate_phys(struct rte_mempool *mp, char *vaddr, total_elt_sz = mp->header_size + mp->elt_size + mp->trailer_size; + /* Detect pool area has sufficient space for elements */ + if (mp->flags & MEMPOOL_F_CAPA_PHYS_CONTIG) { + if (len < total_elt_sz * mp->size) { + RTE_LOG(ERR, MEMPOOL, "pool area %" PRIx64 " not enough\n", len); + return -ENOSPC; + } + } + memhdr = rte_zmalloc("MEMPOOL_MEMHDR", sizeof(*memhdr), 0); if (memhdr == NULL) return -ENOMEM; diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index 0fa571c72..ca5634eaf 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -265,6 +265,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_PHYS_CONTIG 0x0020 /**< Don't need physically contiguous objs. */ +#define MEMPOOL_F_CAPA_PHYS_CONTIG 0x0040 /**< Detect physcially contiguous objs */ /** * @internal When debug is enabled, store some statistics. -- 2.13.0