summaryrefslogtreecommitdiff
path: root/lib/librte_ip_frag
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2014-11-19 12:26:06 +0000
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-11-27 16:21:11 +0100
commitfdf20fa7bee9df9037116318a87080e1eb7e757e (patch)
tree555c742ef267d7d6b1b60aeaad00f9f1407a62f2 /lib/librte_ip_frag
parentbe04c7072745e0471fc185c31c2a2df835ee4e06 (diff)
downloaddpdk-fdf20fa7bee9df9037116318a87080e1eb7e757e.zip
dpdk-fdf20fa7bee9df9037116318a87080e1eb7e757e.tar.gz
dpdk-fdf20fa7bee9df9037116318a87080e1eb7e757e.tar.xz
add prefix to cache line macros
CACHE_LINE_SIZE is a macro defined in machine/param.h in FreeBSD and conflicts with DPDK macro version. Adding RTE_ prefix to avoid conflicts. CACHE_LINE_MASK and CACHE_LINE_ROUNDUP are also prefixed. Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> [Thomas: updated on HEAD, including PPC]
Diffstat (limited to 'lib/librte_ip_frag')
-rw-r--r--lib/librte_ip_frag/rte_ip_frag_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_ip_frag/rte_ip_frag_common.c b/lib/librte_ip_frag/rte_ip_frag_common.c
index e4d16d0..c982d8c 100644
--- a/lib/librte_ip_frag/rte_ip_frag_common.c
+++ b/lib/librte_ip_frag/rte_ip_frag_common.c
@@ -87,7 +87,7 @@ rte_ip_frag_table_create(uint32_t bucket_num, uint32_t bucket_entries,
}
sz = sizeof (*tbl) + nb_entries * sizeof (tbl->pkt[0]);
- if ((tbl = rte_zmalloc_socket(__func__, sz, CACHE_LINE_SIZE,
+ if ((tbl = rte_zmalloc_socket(__func__, sz, RTE_CACHE_LINE_SIZE,
socket_id)) == NULL) {
RTE_LOG(ERR, USER1,
"%s: allocation of %zu bytes at socket %d failed do\n",