Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d8402ae
)
svm: avoid heap push/pop on fifo free
87/17987/2
author
Florin Coras
<
[email protected]
>
Mon, 4 Mar 2019 00:08:51 +0000
(16:08 -0800)
committer
Damjan Marion
<
[email protected]
>
Mon, 4 Mar 2019 11:15:59 +0000
(11:15 +0000)
Change-Id: Id6a7698da0c7b43313554d736c4df60b820beb80
Signed-off-by: Florin Coras <
[email protected]
>
src/svm/svm_fifo_segment.c
patch
|
blob
|
history
diff --git
a/src/svm/svm_fifo_segment.c
b/src/svm/svm_fifo_segment.c
index
6897e0c
..
fcf6b66
100644
(file)
--- a/
src/svm/svm_fifo_segment.c
+++ b/
src/svm/svm_fifo_segment.c
@@
-437,7
+437,6
@@
svm_fifo_segment_free_fifo (svm_fifo_segment_private_t * s, svm_fifo_t * f,
{
ssvm_shared_header_t *sh;
svm_fifo_segment_header_t *fsh;
- void *oldheap;
int freelist_index;
ASSERT (f->refcnt > 0);
@@
-453,7
+452,6
@@
svm_fifo_segment_free_fifo (svm_fifo_segment_private_t * s, svm_fifo_t * f,
ASSERT (freelist_index < vec_len (fsh->free_fifos));
ssvm_lock_non_recursive (sh, 2);
- oldheap = ssvm_push_heap (sh);
switch (list_index)
{
@@
-487,7
+485,6
@@
svm_fifo_segment_free_fifo (svm_fifo_segment_private_t * s, svm_fifo_t * f,
}
fsh->n_active_fifos--;
- ssvm_pop_heap (oldheap);
ssvm_unlock_non_recursive (sh);
}