net: add CRC computation API
authorJasvinder Singh <jasvinder.singh@intel.com>
Wed, 5 Apr 2017 20:49:49 +0000 (21:49 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Apr 2017 21:03:23 +0000 (23:03 +0200)
commit986ff526fb843a6dc77dc5a2556ff1b235f73895
treedf022c721bf4a92c063b9e82b8d2aebea9958ebb
parent7d89b26103537c833beae2fd3212770c5c6ecce3
net: add CRC computation API

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 version uses carry-less multiplication for
fast CRC computation.

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
MAINTAINERS
lib/Makefile
lib/librte_net/Makefile
lib/librte_net/net_crc_sse.h [new file with mode: 0644]
lib/librte_net/rte_net_crc.c [new file with mode: 0644]
lib/librte_net/rte_net_crc.h [new file with mode: 0644]
lib/librte_net/rte_net_version.map