summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAshwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>2017-07-04 02:24:07 -0700
committerThomas Monjalon <thomas@monjalon.net>2017-07-04 15:58:45 +0200
commita566400e8b73ec646e0cc6dd0bc44def8535fb98 (patch)
treefdded86716ddabeb0d8d8528db41a304499e8fb1 /test
parent266451e4190eac8425c50de12b67b484da70c9bc (diff)
downloaddpdk-a566400e8b73ec646e0cc6dd0bc44def8535fb98.zip
dpdk-a566400e8b73ec646e0cc6dd0bc44def8535fb98.tar.gz
dpdk-a566400e8b73ec646e0cc6dd0bc44def8535fb98.tar.xz
net: implement CRC for ARM64 NEON
Added CRC compute APIs for arm64 utilizing the pmull capability. Added new file net_crc_neon.h to hold the arm64 pmull CRC implementation. Added wrappers in rte_vect.h for those neon intrinsics which are not supported in GCC version < 7. Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.com> Acked-by: Jianbo Liu <jianbo.liu@linaro.org>
Diffstat (limited to 'test')
-rw-r--r--test/test/test_crc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test/test_crc.c b/test/test/test_crc.c
index cd5af69..9f2a17d 100644
--- a/test/test/test_crc.c
+++ b/test/test/test_crc.c
@@ -178,6 +178,15 @@ test_crc(void)
return ret;
}
+ /* set CRC neon mode */
+ rte_net_crc_set_alg(RTE_NET_CRC_NEON);
+
+ ret = test_crc_calc();
+ if (ret < 0) {
+ printf("test crc (arm64 neon pmull): failed (%d)\n", ret);
+ return ret;
+ }
+
return 0;
}