]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_port/rte_port_ethdev.c
add prefix to cache line macros
[dpdk.git] / lib / librte_port / rte_port_ethdev.c
index 2d6f2793a8a2168152ae4ac91e125aba5854ea38..d0149133e4508efeb8abd0dd610a1bbddee60104 100644 (file)
@@ -61,7 +61,7 @@ rte_port_ethdev_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;
@@ -128,7 +128,7 @@ rte_port_ethdev_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;