add prefix to cache line macros
[dpdk.git] / examples / netmap_compat / lib / compat_netmap.c
index 2348366..6a4737a 100644 (file)
@@ -643,12 +643,12 @@ rte_netmap_init(const struct rte_netmap_conf *conf)
        nmif_sz = NETMAP_IF_RING_OFS(port_rings, port_rings, port_slots);
        sz = nmif_sz * port_num;
 
-       buf_ofs = RTE_ALIGN_CEIL(sz, CACHE_LINE_SIZE);
+       buf_ofs = RTE_ALIGN_CEIL(sz, RTE_CACHE_LINE_SIZE);
        sz = buf_ofs + port_bufs * conf->max_bufsz * port_num;
 
        if (sz > UINT32_MAX ||
                        (netmap.mem = rte_zmalloc_socket(__func__, sz,
-                       CACHE_LINE_SIZE, conf->socket_id)) == NULL) {
+                       RTE_CACHE_LINE_SIZE, conf->socket_id)) == NULL) {
                RTE_LOG(ERR, USER1, "%s: failed to allocate %zu bytes\n",
                        __func__, sz);
                return (-ENOMEM);