summaryrefslogtreecommitdiff
path: root/lib/librte_acl
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2017-11-02 23:06:38 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-11-06 21:56:07 +0100
commit17715a53395c7bf27124e625d6598b28d8a1cc00 (patch)
treead3789ccd83caa84bc74b352a0e233cd2fb0d131 /lib/librte_acl
parent6c986e1bdb10131975acaee7e94a757be8117e02 (diff)
downloaddpdk-17715a53395c7bf27124e625d6598b28d8a1cc00.zip
dpdk-17715a53395c7bf27124e625d6598b28d8a1cc00.tar.gz
dpdk-17715a53395c7bf27124e625d6598b28d8a1cc00.tar.xz
use macro to declare constructor functions
It is easier to find all constructor functions when they use the same macros RTE_INIT or RTE_INIT_PRIO. The macro definitions are moved from rte_eal.h to rte_common.h. Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Diffstat (limited to 'lib/librte_acl')
-rw-r--r--lib/librte_acl/rte_acl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/librte_acl/rte_acl.c b/lib/librte_acl/rte_acl.c
index d1f40be..67f41f3 100644
--- a/lib/librte_acl/rte_acl.c
+++ b/lib/librte_acl/rte_acl.c
@@ -120,8 +120,7 @@ rte_acl_set_ctx_classify(struct rte_acl_ctx *ctx, enum rte_acl_classify_alg alg)
* if both conditions are met:
* at build time compiler supports AVX2 and target cpu supports AVX2.
*/
-static void __attribute__((constructor))
-rte_acl_init(void)
+RTE_INIT(rte_acl_init)
{
enum rte_acl_classify_alg alg = RTE_ACL_CLASSIFY_DEFAULT;