replace zero-length arrays with flexible ones
[dpdk.git] / app / test / test_crc.c
index f8a74e0..0ed080e 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Intel Corporation
+ * Copyright(c) 2017-2020 Intel Corporation
  */
 
 #include "test.h"
@@ -14,7 +14,6 @@
 #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] = {
@@ -149,6 +148,15 @@ test_crc(void)
                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);