[dpdk-dev] [PATCH v2 09/13] mbuf: introduce new checksum API

2014-11-18 Thread Olivier MATZ
Hi Konstantin, On 11/17/2014 07:15 PM, Ananyev, Konstantin wrote: > Just 2 nits from me: > > 1) >> +static inline uint16_t >> +rte_raw_cksum(const char *buf, size_t len) >> +{ > ... >> +while (len >= 8) { >> +sum += u16[0]; sum += u16[1]; sum += u16[2]; sum += u16[3]; > > Can you p

[dpdk-dev] [PATCH v2 09/13] mbuf: introduce new checksum API

2014-11-17 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Friday, November 14, 2014 5:03 PM > To: dev at dpdk.org > Cc: jigsaw at gmail.com > Subject: [dpdk-dev] [PATCH v2 09/13] mbuf: introduce new checksum API > > In

[dpdk-dev] [PATCH v2 09/13] mbuf: introduce new checksum API

2014-11-14 Thread Olivier Matz
Introduce new functions to calculate checksums. These new functions are derivated from the ones provided csumonly.c but slightly reworked. There is still some room for future optimization of these functions (maybe SSE/AVX, ...). This API will be modified in tbe next commits by the introduction of