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
table: remove deprecated variable size key lru hash tables
[dpdk.git]
/
lib
/
librte_eal
/
common
/
malloc_elem.h
diff --git
a/lib/librte_eal/common/malloc_elem.h
b/lib/librte_eal/common/malloc_elem.h
index
e05d2ea
..
ce39129
100644
(file)
--- a/
lib/librte_eal/common/malloc_elem.h
+++ b/
lib/librte_eal/common/malloc_elem.h
@@
-53,13
+53,13
@@
struct malloc_elem {
volatile enum elem_state state;
uint32_t pad;
size_t size;
volatile enum elem_state state;
uint32_t pad;
size_t size;
-#ifdef RTE_
LIBRTE_
MALLOC_DEBUG
+#ifdef RTE_MALLOC_DEBUG
uint64_t header_cookie; /* Cookie marking start of data */
/* trailer cookie at start + size */
#endif
} __rte_cache_aligned;
uint64_t header_cookie; /* Cookie marking start of data */
/* trailer cookie at start + size */
#endif
} __rte_cache_aligned;
-#ifndef RTE_
LIBRTE_
MALLOC_DEBUG
+#ifndef RTE_MALLOC_DEBUG
static const unsigned MALLOC_ELEM_TRAILER_LEN = 0;
/* dummy function - just check if pointer is non-null */
static const unsigned MALLOC_ELEM_TRAILER_LEN = 0;
/* dummy function - just check if pointer is non-null */
@@
-104,9
+104,9
@@
set_trailer(struct malloc_elem *elem)
static inline int
malloc_elem_cookies_ok(const struct malloc_elem *elem)
{
static inline int
malloc_elem_cookies_ok(const struct malloc_elem *elem)
{
- return
(
elem != NULL &&
+ return elem != NULL &&
MALLOC_ELEM_HEADER(elem) == MALLOC_HEADER_COOKIE &&
MALLOC_ELEM_HEADER(elem) == MALLOC_HEADER_COOKIE &&
- MALLOC_ELEM_TRAILER(elem) == MALLOC_TRAILER_COOKIE
)
;
+ MALLOC_ELEM_TRAILER(elem) == MALLOC_TRAILER_COOKIE;
}
#endif
}
#endif