diff options
author | Damjan Marion <damarion@cisco.com> | 2020-09-28 19:03:37 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2020-09-28 20:34:07 +0200 |
commit | 4537c30925050ffa34c33e6a481f07f1ec0a01ff (patch) | |
tree | 0516dba983516dd12027cd59d18e514dcebe24de /src/svm/fifo_segment.c | |
parent | a8af7cf253c4e8ab9ba1a2cfed50f6236fea3a62 (diff) |
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 <damarion@cisco.com>
Diffstat (limited to 'src/svm/fifo_segment.c')
-rw-r--r-- | src/svm/fifo_segment.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/svm/fifo_segment.c b/src/svm/fifo_segment.c index 3fd7d9d6ede..5fb2758606e 100644 --- a/src/svm/fifo_segment.c +++ b/src/svm/fifo_segment.c @@ -40,10 +40,7 @@ static char *fifo_segment_mem_status_strings[] = { static uword fsh_free_space (fifo_segment_header_t * fsh) { - struct dlmallinfo dlminfo; - - dlminfo = mspace_mallinfo (fsh->ssvm_sh->heap); - return dlminfo.fordblks; + return clib_mem_get_heap_free_space (fsh->ssvm_sh->heap); } static inline void |