X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_port%2Frte_port_ethdev.c;h=d0149133e4508efeb8abd0dd610a1bbddee60104;hb=4a499c64959074ba6fa6a5a2b3a2a6aa10627fa1;hp=2d6f2793a8a2168152ae4ac91e125aba5854ea38;hpb=4d97e8b565cc5cad3dfd4f67c308a19f2db68ca2;p=dpdk.git diff --git a/lib/librte_port/rte_port_ethdev.c b/lib/librte_port/rte_port_ethdev.c index 2d6f2793a8..d0149133e4 100644 --- a/lib/librte_port/rte_port_ethdev.c +++ b/lib/librte_port/rte_port_ethdev.c @@ -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;