git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal/linux: enable uio_pci_generic support
[dpdk.git]
/
lib
/
librte_port
/
rte_port_ethdev.c
diff --git
a/lib/librte_port/rte_port_ethdev.c
b/lib/librte_port/rte_port_ethdev.c
index
2d6f279
..
d014913
100644
(file)
--- 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),
/* 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;
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),
/* 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;
if (port == NULL) {
RTE_LOG(ERR, PORT, "%s: Failed to allocate port\n", __func__);
return NULL;