Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-27 Thread Maxim Uvarov
Merged, Maxim. On 10/19/2015 13:35, Jerin Jacob wrote: On Fri, Oct 16, 2015 at 03:13:48PM +0300, Petri Savolainen wrote: Some C library calls are often used in data plane code. This API enables possibility to HW optimized implementation of those. Added first memcpy and memset. Signed-off-by: P

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-22 Thread Maxim Uvarov
Jacob [mailto:jerin.ja...@caviumnetworks.com] Sent: Monday, October 19, 2015 1:35 PM To: Savolainen, Petri (Nokia - FI/Espoo) Cc: lng-odp@lists.linaro.org Subject: Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api On Fri, Oct 16, 2015 at 03:13:48PM +0300, Petri Savolainen wrote: S

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-22 Thread Savolainen, Petri (Nokia - FI/Espoo)
odp@lists.linaro.org > Subject: Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library > api > > On Fri, Oct 16, 2015 at 03:13:48PM +0300, Petri Savolainen wrote: > > Some C library calls are often used in data plane code. This > > API enables possibility to HW

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-19 Thread Jerin Jacob
On Fri, Oct 16, 2015 at 03:13:48PM +0300, Petri Savolainen wrote: > Some C library calls are often used in data plane code. This > API enables possibility to HW optimized implementation of those. > Added first memcpy and memset. > > Signed-off-by: Petri Savolainen Reviewed-by: Jerin Jacob > --

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-18 Thread Bill Fischofer
er 16, 2015 5:52 PM > *To:* EXT Bill Fischofer > > *Cc:* LNG ODP Mailman List > *Subject:* Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c > library api > > > If that’s the case an platform can implement these without extra effort. > But when that’s not the case,

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-18 Thread Jacob, Jerin
-NEXT PATCH] api: clib: added standard c library api If that’s the case an platform can implement these without extra effort. But when that’s not the case, an implementation can use whatever special instructions, vector engines or DMA HW it has to speed up these calls. See e.g. rte_memcpy in

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-16 Thread Mike Holmes
. See e.g. rte_memcpy in DPDK >> - it’s not just plain memcpy wrapper (they must have had a >> reason for optimizing it). >> >> -Petri >> >> *From:*EXT Bill Fischofer [mailto:bill.fischo...@linaro.org >>

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-16 Thread Maxim Uvarov
ilman List *Subject:* Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api Why would you not expect a platform to provide an optimized implementation of these stdlib functions itself? GCC, in particular, seems to do a good job of this for

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-16 Thread Bill Fischofer
>> have had a reason for optimizing it). >> >> >> >> -Petri >> >> >> >> *From:* EXT Bill Fischofer [mailto:bill.fischo...@linaro.org] >> *Sent:* Friday, October 16, 2015 3:17 PM >> *To:* Savolainen, Petri (Nokia - FI/Espoo) >> *Cc:* LNG ODP Ma

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-16 Thread Bill Fischofer
> *Sent:* Friday, October 16, 2015 3:17 PM > *To:* Savolainen, Petri (Nokia - FI/Espoo) > *Cc:* LNG ODP Mailman List > *Subject:* Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c > library api > > > > Why would you not expect a platform to provide an optimized im

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-16 Thread Savolainen, Petri (Nokia - FI/Espoo)
have had a reason for optimizing it). -Petri From: EXT Bill Fischofer [mailto:bill.fischo...@linaro.org] Sent: Friday, October 16, 2015 3:17 PM To: Savolainen, Petri (Nokia - FI/Espoo) Cc: LNG ODP Mailman List Subject: Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api Why

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-16 Thread HePeng
> 在 2015年10月16日,下午8:16,Bill Fischofer 写道: > > Why would you not expect a platform to provide an optimized implementation of > these stdlib functions itself? GCC, in particular, seems to do a good job of > this for most platforms. Hi Bill, DPDK has its own impl for memcpy (rte_memcpy

Re: [lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-16 Thread Bill Fischofer
Why would you not expect a platform to provide an optimized implementation of these stdlib functions itself? GCC, in particular, seems to do a good job of this for most platforms. On Fri, Oct 16, 2015 at 7:13 AM, Petri Savolainen < petri.savolai...@nokia.com> wrote: > Some C library calls are of

[lng-odp] [API-NEXT PATCH] api: clib: added standard c library api

2015-10-16 Thread Petri Savolainen
Some C library calls are often used in data plane code. This API enables possibility to HW optimized implementation of those. Added first memcpy and memset. Signed-off-by: Petri Savolainen --- include/odp.h | 1 + include/odp/api/std_clib.h| 6