add prefix to cache line macros
[dpdk.git] / lib / librte_acl / acl_gen.c
index f65e397..b1f766b 100644 (file)
@@ -415,12 +415,12 @@ rte_acl_gen(struct rte_acl_ctx *ctx, struct rte_acl_trie *trie,
                node_bld_trie, num_tries, match_num);
 
        /* Allocate runtime memory (align to cache boundary) */
-       total_size = RTE_ALIGN(data_index_sz, CACHE_LINE_SIZE) +
+       total_size = RTE_ALIGN(data_index_sz, RTE_CACHE_LINE_SIZE) +
                indices.match_index * sizeof(uint64_t) +
                (match_num + 2) * sizeof(struct rte_acl_match_results) +
                XMM_SIZE;
 
-       mem = rte_zmalloc_socket(ctx->name, total_size, CACHE_LINE_SIZE,
+       mem = rte_zmalloc_socket(ctx->name, total_size, RTE_CACHE_LINE_SIZE,
                        ctx->socket_id);
        if (mem == NULL) {
                RTE_LOG(ERR, ACL,
@@ -432,7 +432,7 @@ rte_acl_gen(struct rte_acl_ctx *ctx, struct rte_acl_trie *trie,
        /* Fill the runtime structure */
        match_index = indices.match_index;
        node_array = (uint64_t *)((uintptr_t)mem +
-               RTE_ALIGN(data_index_sz, CACHE_LINE_SIZE));
+               RTE_ALIGN(data_index_sz, RTE_CACHE_LINE_SIZE));
 
        /*
         * Setup the NOMATCH node (a SINGLE at the