summaryrefslogtreecommitdiffstats
path: root/lib/librte_hash/rte_hash_crc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_hash/rte_hash_crc.h')
-rw-r--r--lib/librte_hash/rte_hash_crc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/librte_hash/rte_hash_crc.h b/lib/librte_hash/rte_hash_crc.h
index ea6be522..4f815aea 100644
--- a/lib/librte_hash/rte_hash_crc.h
+++ b/lib/librte_hash/rte_hash_crc.h
@@ -480,8 +480,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);
}