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

2015-10-22 Thread Savolainen, Petri (Nokia - FI/Espoo)
ists.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 optim

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

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

2015-10-18 Thread Jacob, Jerin
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, an implementation can use whatever special instructions, vector engin

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

2015-10-18 Thread Bill Fischofer
FI/Espoo) <petri.savolai...@nokia.com> > *Sent:* Friday, October 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 ca

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

2015-10-16 Thread Bill Fischofer
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 implementation

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

[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 +

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 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

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 O

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

2015-10-16 Thread Maxim Uvarov
en, 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 implementation of these stdlib functions itself? GCC, in

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

2015-10-16 Thread Mike Holmes
HW it has to speed up these calls. 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...@lina