]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_port/rte_port_ring.c
add prefix to cache line macros
[dpdk.git] / lib / librte_port / rte_port_ring.c
index 85bab63e3887ce77a2dada0aeb064ef7c7b8cc87..fa3d77b49bd913081b796c1f302af14c2269ca5f 100644 (file)
@@ -60,7 +60,7 @@ rte_port_ring_reader_create(void *params, int socket_id)
 
        /* Memory allocation */
        port = rte_zmalloc_socket("PORT", sizeof(*port),
-                       CACHE_LINE_SIZE, socket_id);
+                       RTE_CACHE_LINE_SIZE, socket_id);
        if (port == NULL) {
                RTE_LOG(ERR, PORT, "%s: Failed to allocate port\n", __func__);
                return NULL;
@@ -120,7 +120,7 @@ rte_port_ring_writer_create(void *params, int socket_id)
 
        /* Memory allocation */
        port = rte_zmalloc_socket("PORT", sizeof(*port),
-                       CACHE_LINE_SIZE, socket_id);
+                       RTE_CACHE_LINE_SIZE, socket_id);
        if (port == NULL) {
                RTE_LOG(ERR, PORT, "%s: Failed to allocate port\n", __func__);
                return NULL;