/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Intel Corporation
+ * Copyright(c) 2017-2020 Intel Corporation
*/
#include "test.h"
#define CRC32_VEC_LEN2 348
#define CRC16_VEC_LEN1 12
#define CRC16_VEC_LEN2 2
-#define LINE_LEN 75
/* CRC test vector */
static const uint8_t crc_vec[CRC_VEC_LEN] = {
return ret;
}
+ /* set CRC avx512 mode */
+ rte_net_crc_set_alg(RTE_NET_CRC_AVX512);
+
+ ret = test_crc_calc();
+ if (ret < 0) {
+ printf("test crc (x86_64 AVX512): failed (%d)\n", ret);
+ return ret;
+ }
+
/* set CRC neon mode */
rte_net_crc_set_alg(RTE_NET_CRC_NEON);