New upstream version 17.11.1
[deb_dpdk.git] / lib / librte_hash / rte_hash_crc.h
index ea6be52..93188c2 100644 (file)
@@ -45,6 +45,7 @@ extern "C" {
 #endif
 
 #include <stdint.h>
+#include <rte_config.h>
 #include <rte_cpuflags.h>
 #include <rte_branch_prediction.h>
 #include <rte_common.h>
@@ -480,8 +481,7 @@ rte_hash_crc_set_alg(uint8_t alg)
 }
 
 /* Setting the best available algorithm */
-static inline void __attribute__((constructor))
-rte_hash_crc_init_alg(void)
+RTE_INIT(rte_hash_crc_init_alg)
 {
        rte_hash_crc_set_alg(CRC32_SSE42_x64);
 }