From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0065.outbound.protection.outlook.com [65.55.169.65]) by dpdk.org (Postfix) with ESMTP id 502AC95B5 for ; Fri, 13 May 2016 11:13:14 +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=zZXcUPs3OJEBlt4AkBCWDW8yyyJvgZrRt8h8BPuERhc=; b=iFGDwC3xwXz83UbIte0hFdj19Zxn/hwxXDDOHf8YyUMrpsuk799FajP8OBIpblqhWpA8KVZ23Qr2sRrC5jWRV0afIyE+NfWUYtasIVspGVLEyEJISQdXZyEYB4dVADRpe1/e9lV49Nr5bwE8n0RdXHGaqxZNtLLFU278HzYe0bo= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.92.123.202) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (TLS) id 15.1.497.12; Fri, 13 May 2016 09:13:11 +0000 Date: Fri, 13 May 2016 14:42:51 +0530 From: Jerin Jacob To: Jianbo Liu CC: Message-ID: <20160513091250.GA6040@localhost.localdomain> References: <1462869064-9423-1-git-send-email-jianbo.liu@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1462869064-9423-1-git-send-email-jianbo.liu@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [111.92.123.202] X-ClientProxiedBy: BM1PR01CA0044.INDPRD01.PROD.OUTLOOK.COM (10.163.199.16) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-Office365-Filtering-Correlation-Id: 85d2d81d-6855-40ff-2a60-08d37b0ecf74 X-Microsoft-Exchange-Diagnostics: 1; BN3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m22IeqZoN1XKegq4GIKAQnjk0AzwwA5MLQQyYGoyYp+JTjPer6uAdFSm1OzLjkrt4cKnby7ocGQygvoUfcjF46nZA42ovMoa+XO/AiL4CLT5Cw6n5jHgcx6nekfcZ1Bt3pZCuMrGeHY5xjIH0q6OGuqVjPWhisrUqgVSA/wlGGQ//QxytLGzWcabAa1+qL00f28Hf73t9dk9mx585J+OFFBKdIx3EQFdWrg3eLd8vtX/pxS7XDD/jNAsQmoWbuMVLfmjrGkWfyl9Uxqx49jHACW9FmH0pT5D3eu21QyDcxCZK4Ip8wJ0rsUv9d7CJF9Blcg3OjXmTfrYlobksRF+hth7x0LUUo5uU064Wl/1fsEX6T3bdfpoDMARRgRsR8hqcfvUsh6iJxbf9gG+biaGnxg4X4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:WxWmDiO5AJfmb98Lq/kIxqvcsX42x+DYVybaevKyGGoBzu4CxI1LWrTxrklYN41rtP++MXgsyJ56Omuq433NiORLQuAi/tNUyoyxDOeUUFBZH9kYHy4If4NJvwvjWJmA3G+W+oz7fI0TX5z77B1bfOnQA6yIti7Ry8NTFIqr0C2N4nK4yGlkf0AGNeb/sRiV2j8T21RHU6VKQ1YHI1+OOqcqfxsOQBwMFk5SG5VfZNjKBWxx8HAiFepJgLLXHvDLCzo+xLE7GZdvo1l6h7jBsqpGjhNn8PNCHN8yuLGNuxIgnTxy5b4l0OiA5YjBGan36dZjZWYfTjsQ7jI8HUTKyuiZHWnK0iZrkZj3b8s0aA3FP+cxcq9sGjp8AGeAh0JO X-Forefront-PRVS: 0941B96580 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(24454002)(33656002)(92566002)(47776003)(4326007)(23726003)(42186005)(61506002)(5009440100003)(2906002)(4001350100001)(19580405001)(5008740100001)(50466002)(66066001)(19580395003)(8676002)(97756001)(110136002)(77096005)(189998001)(586003)(81166006)(2950100001)(6116002)(9686002)(3846002)(5004730100002)(50986999)(76176999)(46406003)(54356999)(1076002)(83506001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1720; 23:94c7XLiDRPLCWY8EGK1uHTJdNHU/WwaMIEnaKma?= =?us-ascii?Q?QaNQS9SLn1ucNpQYxUgecNCGzarjEUewVG+uFQ9f1aptYWJYHAgkyOhIg7a7?= =?us-ascii?Q?bAltPyIg0K/pivJ6I0vTElLTKA9JnCFJligqMkbGb8Jo0Pf9FOWGqVWZNNmp?= =?us-ascii?Q?pIyWDg80sl5LiFmh3Q3FGRx68XerITV42helJPIYpxg4ivnINxEXEzQ26t9r?= =?us-ascii?Q?tJMqK+7++k2wjJK7IshL3Ffnh49bu2ldnKF0a3eA5oxFF3ne3EgHDIbAVB05?= =?us-ascii?Q?/fG/pgnHXc601Gztic4tDmuyiLBojR8axg6cM3wagzzNsASthS9KdXy7ICPm?= =?us-ascii?Q?lkg6KrSkhEWGEefE+FabP37NUyYrA51fLdppEl5Okgjmr9n++Eq3ooU9ItTQ?= =?us-ascii?Q?z2Fvao4kUAuAwHCPL8g/s634P6YolQXemNAWyWRzSh7jlsUb4q76LPOLEmbL?= =?us-ascii?Q?d7o0NunumB8WHfEs+Tna+yY5tEmGAe/JzadVw/eP6sqjd/osunopYH5PbqtA?= =?us-ascii?Q?XVHg0e/ph9IufpxGAucn0arCKf6aJNi0KkYHj3tR/yhPiPspOaw9jKqOeG/U?= =?us-ascii?Q?GvWBjNd8IlzE2DwhDBWV1PttnMl5KMvgXx7yvBw9qiAZqQEzwSsXTnu+Dg1J?= =?us-ascii?Q?OcTKkV6eIbg1sXB2JG3St2qzgZnMk7JarsMURD7YoPFvjD4e0/ROXTgbHCrT?= =?us-ascii?Q?35w+B58932OWLmWJx4sdrtVu4I1pPTn2Z2uaQ+sRhntG/e/fGHRcaHNQFZ6i?= =?us-ascii?Q?FvzWgOwDaIQP8zBti6zcaNnJnn5i0QyTyri9FMzonI6OeVsprNfYzcEfGpny?= =?us-ascii?Q?MzdR43X20BeoVsOYwKoqCgbjpUkTYWMRexQHRjthQ8oDsMMXz7cBMh0f0l6W?= =?us-ascii?Q?jtDmawfSTwrXZ8FNnz/sVDWTvRajavi3pFdQVcNUdsTknQZ3ErAybc+XDn3M?= =?us-ascii?Q?7endcoI0mr5XDQTrnbzL0qowswDFo9yQeD2LhTSGbFf88LZoQB8pJpf4L+w+?= =?us-ascii?Q?GJF9VDJlWDsAfG6BcLyzqVHhI?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 5:59xDe2TJMS78UIwjUx774wIj2k89zhgohfM5CkMHYjDg6mqYaCUEWnrtYva7yGScPfivsjIoFsHYj7yPAJeRfS401zmvjbMnX7P5PGz5HZlbThfH0HiOfLrv6csAPDPfFWrTjKHe48P/+kKrtMBkGw==; 24:ohoCpLiDyB8w3i0n37ihwOqcMG241tmf0vDspleRuie+hzLbroRh2Ym8Y06t19b+QlWyaWj885xTDbuuL1av0OnNXQ8fTeOLtDStrKAAwMw=; 7:nxmaWKWCcU6WNQONhMB17XYaFqUgcH1ZDa+xR+y3OW1KFd3SHDQScxPVubA6ErIK3iEMQ9RWt8yhkIQxegMxW0gTc2BeWT8zamRG3YelbKJBayC4hFDq4qUSwbSaUcvwPYX0+PytHW13B08YAo++1O0Ou6R6/EKpcDFTIrF1JVWSozP3tFaJNhaz+IrZpt2U SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2016 09:13:11.4001 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Subject: Re: [dpdk-dev] [PATCH] arm64: change rte_memcpy to inline function 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: Fri, 13 May 2016 09:13:14 -0000 On Tue, May 10, 2016 at 02:01:04PM +0530, Jianbo Liu wrote: > Other APP may call rte_memcpy by function pointer, Instead of "Other APP" may be better to use DPDK application > so change it to an inline function. > > Signed-off-by: Jianbo Liu Acked-by: Jerin Jacob > --- > lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h b/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h > index 917cdc1..3abe7cd 100644 > --- a/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h > +++ b/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h > @@ -78,7 +78,11 @@ rte_mov256(uint8_t *dst, const uint8_t *src) > memcpy(dst, src, 256); > } > > -#define rte_memcpy(d, s, n) memcpy((d), (s), (n)) > +static inline void * > +rte_memcpy(void *dst, const void *src, size_t n) > +{ > + return memcpy(dst, src, n); > +} > > static inline void * > rte_memcpy_func(void *dst, const void *src, size_t n) > -- > 2.4.11 >