Re: [dpdk-dev] [PATCH v9 1/3] librte_net: add crc compute APIs

2017-04-04 Thread Thomas Monjalon
2017-03-30 17:15, Jasvinder Singh: > +/** > + * CRC compute API > + * > + * @param data > + * Pointer to the packet data for CRC computation > + * @param data_len > + * Data length for CRC computation > + * @param type > + * CRC type (enum rte_net_crc_type) > + * > + * @return > + * CRC val

[dpdk-dev] [PATCH v9 1/3] librte_net: add crc compute APIs

2017-03-30 Thread Jasvinder Singh
APIs for selecting the architecure specific implementation and computing the crc (16-bit and 32-bit CRCs) are added. For CRCs calculation, scalar as well as x86 intrinsic(sse4.2) versions are implemented. The scalar version is based on generic Look-Up Table(LUT) algorithm, while x86 intrinsic vers