]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_port/rte_port_sched.c
add prefix to cache line macros
[dpdk.git] / lib / librte_port / rte_port_sched.c
index 0e71494db36a3f8d3d11af606bcf4d0438f95c5d..2107f4c8c8c38147bee94fb0421d0d194a643717 100644 (file)
@@ -60,7 +60,7 @@ rte_port_sched_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;
@@ -123,7 +123,7 @@ rte_port_sched_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;