From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0073.outbound.protection.outlook.com [207.46.100.73]) by dpdk.org (Postfix) with ESMTP id C5F3F2A1A for ; Tue, 24 May 2016 16:51:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rr2JDa0PKqgRxd9f2pr2/S6rtJw+aLWO2x6l9atjsgE=; b=IB8jqFoT6hFsdkbqh8xCNEKV6wN4fXOeYHlrplnuvFErmbDENoPFsOUECETy2AYCAfxdXQrDCJ7AT2YJ/JrFlKRiIi5yMnRtBxoaERu3AhDcj1PJC8V+lQU6l3LZAxa4+BfebtuVyPpvQgfjZiMjKohFzzconprCYgd05u9OpPg= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) with Microsoft SMTP Server (TLS) id 15.1.497.12; Tue, 24 May 2016 14:51:19 +0000 From: Jerin Jacob To: CC: , , , Jerin Jacob Date: Tue, 24 May 2016 20:20:42 +0530 Message-ID: <1464101442-10501-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0069.INDPRD01.PROD.OUTLOOK.COM (10.164.116.169) To BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) X-MS-Office365-Filtering-Correlation-Id: 8cd25fac-d7f0-4e7d-5ec6-08d383e2df08 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 2:Qi6jXK0DMDfri6n8uZCf1EJdbk74h9r/okUc4HTPFPjJZXleo13ILw474CqG6fJvTy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+s5H7GDlYd8YSU9iz1EPTDbxu80JVM4sIf4c7p11/FL6UCfeiHc1TUTXXaZKNGkAtVu76cCvPy/j9qLUj6gnlw64eOML9Y5RwmscLR2QW6FN+L+r3I94x7FDRfEi1qhp3nV7FjUqorbpKEK2UuFqcpZU9WVCB9+AOyi6IpTN/Pu2di4qOOfwSNAOjbr5NLfQZnKflfhZHIFBxMTE7YaCUeqj9u1593SqSs9xgvXJNyiACODFAcY9n18Wdp0LKiIDgwh/XahB+Dttv1CLN7dLJzCkhY/Q634+LuufcQZ8zUcxegiZKtDbPgDgIBu3Oi/5F7Ve1Q= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BLUPR0701MB1713; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 4:qHRmav+lrA1QAznF87eNbll5qbLFpo89jCkIqVOh4j6wxszFd3kldhrRdHmeVGkIZiadFjJfrLqHmlV6h5N6Etv0Rdvg9rNBFA819GvKqpUlyGZ5sYyF7l9BeO/CcmwS5bGCvGVk4cxRHOiyhaJu7yUqnMzPOtUsKEsX5leOpxMsWDJ1nAI1UCZ4/WlLtHWS0e/e98VaLiFyDPoXzqQXzpuIqbP9qnX8W3dmeh1SeuDMdPkqkXeRWermS3+rJbf5LrE752+MOicEi05uI09wIVxv1Q6GOE5qIK49UitfwV/WRS324KiRjQm7tWcFCpWMvBFuCrMZ2k3zCKBRhWkl+QdY3ppxw2+tr2zDIAZ9/RTzo/qT8fX7WRm5OVMPE26j X-Forefront-PRVS: 09525C61DB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(4001430100002)(5009440100003)(77096005)(19580395003)(19580405001)(53416004)(66066001)(36756003)(76506005)(5004730100002)(50986999)(5003940100001)(47776003)(42186005)(586003)(6116002)(3846002)(110136002)(50466002)(229853001)(2351001)(48376002)(81166006)(107886002)(8676002)(4326007)(33646002)(189998001)(2906002)(5008740100001)(92566002)(50226002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1713; H:localhost.caveonetworks.com; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1713; 23:aRKO/VhjkXldGIUzSDzWwz2IPud4DtAB4Tel46B?= =?us-ascii?Q?OMy0Ac4bftHO0Ffz8TDiBp5YFs3O6MYpFqgUkj2J3jx0aMBZH9LpFn/19hwV?= =?us-ascii?Q?Kogaug7knotMLOXYh3Q/a1zH1cR1Z+rCaPYhvydlCw8ZwHp4gjK00Aj9Ss6X?= =?us-ascii?Q?tM32y+vhVKhfHM5kaqPLKrdowxcTOQ5RiQIfBNZD8oKNyj3IzxeMw/bP0FK8?= =?us-ascii?Q?WnXlYeNQHQ280Xr7nG06FiUDwkY9llfsl9DvM93sra69w16+fDzG5jvJ14uG?= =?us-ascii?Q?DT1ORYQl01/692Yf8VIb7B/m2ymZQXgPFeAS0NLP8UQb/DcLp8UN8b5cZ4uK?= =?us-ascii?Q?KUZCf2U81dj8uyjOj9gsMaPWoJOWInAZSI0eR8uuXh3vmzzt97b8Jp64NwP9?= =?us-ascii?Q?OPCdDyZRFU5ruWbwrWQYIIu8Gd5TlKDTzqiNDfID4+ablJkK36G5WAb0dSiE?= =?us-ascii?Q?DuGHx7S5NwTeb0Olg2ckuDPoS30VmOeV6TZQVyB5IiFU6NMDcmDKGSTmsn4o?= =?us-ascii?Q?EsKKC4/yvI9dLrTXzwr25RHqge2zEvduq8jTDTvB9Szr+5r7+KAW6cTaZU0W?= =?us-ascii?Q?MbI0WJougGqNYs8I/UoYEK2K39XXawQN+BucCUCxD9xB5MybWyqRPoXsnBUq?= =?us-ascii?Q?2m9P2OJASBFP01EYcgeAvj4jLfneli0R0lBrCHvSPXcSA7pPprPzkfQUUvlt?= =?us-ascii?Q?isjjs2roWIq9jW7w8oS060Wjry0U457K+QVXoClmVq5pt1RvyV1iFfse2vRu?= =?us-ascii?Q?HVdJND6iT0Nnvpc6mPZYWQp4tG4+PjUdCHqcc9dNtB5fLxJ8cXX+KesbcPxu?= =?us-ascii?Q?/6dlWI+WuS5oNZSCnn0vuZrOZpQBz2uOc3okk4MCyJzlUKZaGWdmSd4BmOKH?= =?us-ascii?Q?08uQG6UXXzkBGwkZmXlrCoGyhjWizAwCXk6qhIaLMsVKgToZt45+sjpE6MT4?= =?us-ascii?Q?/qzuqFujHALuIFo5CzJgLIPIjTgfumG7BqQ358a+7uWTPFPiIcKMybm+kHCm?= =?us-ascii?Q?scyI=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 5:mXZ5DHVgtus3FK1/I9U6MAdRjMzc61g/nhZ/VY9d8dnZH9zCmMQVsJVz5jphRKB4ETaWH0FYYjwHAxYhVgcp7zbwpuCEHWbCa+eLoStRSs/gOz/hi3FSOIBDSQdbrtOhk9AmyHJ++pT4aR8VN0Og3A==; 24:AMXdwPWWQbdhimRMRXC6b+OrVSpn4GEZ33yON2FPjbB6HnMfsb8lRLLoInKI4kaGKtGAXygI3Hdnj1m8M1aHjzuo0aw4awQmboY1i8nWaeo=; 7:lbSoOFdJbSpOPKhA3uHWRZB4Rzg1fXSgPh7BRSLpOBJ/Xtck4gs8U2aFRkfyrmOnlaFOD3tX81ewxiw5yN6gf4R9BWYTZFAWIgth8Del2xtGhXB6/SKwHeTdOXhlfjqurIdk9j2WdMyP6K3zrGCCIXyYcOoj9vdQestiJa9UpqlUUMD6ilmT/1+K+FUIdRKp SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2016 14:51:19.8805 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1713 Subject: [dpdk-dev] [PATCH] mbuf: replace c memcpy code semantics with optimized rte_memcpy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2016 14:51:24 -0000 Signed-off-by: Jerin Jacob --- lib/librte_mempool/rte_mempool.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index ed2c110..ebe399a 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -74,6 +74,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { @@ -917,7 +918,6 @@ __mempool_put_bulk(struct rte_mempool *mp, void * const *obj_table, unsigned n, __rte_unused int is_mp) { struct rte_mempool_cache *cache; - uint32_t index; void **cache_objs; unsigned lcore_id = rte_lcore_id(); uint32_t cache_size = mp->cache_size; @@ -946,8 +946,7 @@ __mempool_put_bulk(struct rte_mempool *mp, void * const *obj_table, */ /* Add elements back into the cache */ - for (index = 0; index < n; ++index, obj_table++) - cache_objs[index] = *obj_table; + rte_memcpy(&cache_objs[0], obj_table, sizeof(void *) * n); cache->len += n; -- 2.5.5