From 4537c30925050ffa34c33e6a481f07f1ec0a01ff Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 28 Sep 2020 19:03:37 +0200 Subject: vppinfra: don't call dlmalloc API directly from the code - it is confusing from end consumer perspective that some thing is somewhere called heap and somewhere mspace - this is base for additional work where heap pointer is not the same thing like mspace Type: improvement Change-Id: I644d5a0de17690d65d164d8cec3c5654571629ef Signed-off-by: Damjan Marion --- src/vnet/classify/vnet_classify.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/classify/vnet_classify.h') diff --git a/src/vnet/classify/vnet_classify.h b/src/vnet/classify/vnet_classify.h index db3821b7c77..f0c81241584 100644 --- a/src/vnet/classify/vnet_classify.h +++ b/src/vnet/classify/vnet_classify.h @@ -303,7 +303,7 @@ vnet_classify_prefetch_bucket (vnet_classify_table_t * t, u64 hash) static inline vnet_classify_entry_t * vnet_classify_get_entry (vnet_classify_table_t * t, uword offset) { - u8 *hp = t->mheap; + u8 *hp = clib_mem_get_heap_base (t->mheap); u8 *vp = hp + offset; return (void *) vp; @@ -315,7 +315,7 @@ vnet_classify_get_offset (vnet_classify_table_t * t, { u8 *hp, *vp; - hp = (u8 *) t->mheap; + hp = (u8 *) clib_mem_get_heap_base (t->mheap); vp = (u8 *) v; ASSERT ((vp - hp) < 0x100000000ULL); -- cgit 1.2.3-korg