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:
75c48c1
)
svm: fix fifo max writeable chunk computation
57/21157/2
author
Florin Coras
<fcoras@cisco.com>
Thu, 8 Aug 2019 19:57:48 +0000
(12:57 -0700)
committer
Dave Barach
<openvpp@barachs.net>
Thu, 8 Aug 2019 22:03:06 +0000
(22:03 +0000)
Type:fix
Change-Id: I60fdd7651a3d3fac505e7aec7a41f9d096022895
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/svm/svm_fifo.h
patch
|
blob
|
history
diff --git
a/src/svm/svm_fifo.h
b/src/svm/svm_fifo.h
index
d5dfc9c
..
64ed53b
100644
(file)
--- a/
src/svm/svm_fifo.h
+++ b/
src/svm/svm_fifo.h
@@
-650,7
+650,7
@@
svm_fifo_max_write_chunk (svm_fifo_t * f)
{
u32 head, tail;
f_load_head_tail_prod (f, &head, &tail);
- return tail > head ? f->size - tail : f_free_count (f, head, tail);
+ return tail >
=
head ? f->size - tail : f_free_count (f, head, tail);
}
static inline u8 *