summaryrefslogtreecommitdiffstats
path: root/lib/librte_net/rte_net_crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_net/rte_net_crc.c')
-rw-r--r--lib/librte_net/rte_net_crc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/librte_net/rte_net_crc.c b/lib/librte_net/rte_net_crc.c
index 661fe322..0c1bf51a 100644
--- a/lib/librte_net/rte_net_crc.c
+++ b/lib/librte_net/rte_net_crc.c
@@ -205,8 +205,7 @@ rte_net_crc_calc(const void *data,
}
/* Select highest available crc algorithm as default one */
-static inline void __attribute__((constructor))
-rte_net_crc_init(void)
+RTE_INIT(rte_net_crc_init)
{
enum rte_net_crc_alg alg = RTE_NET_CRC_SCALAR;