Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppinfra: correct fixed pool header size calculation
[vpp.git]
/
src
/
vppinfra
/
pool.c
diff --git
a/src/vppinfra/pool.c
b/src/vppinfra/pool.c
index
ed04eb6
..
30848d5
100644
(file)
--- a/
src/vppinfra/pool.c
+++ b/
src/vppinfra/pool.c
@@
-55,9
+55,7
@@
_pool_init_fixed (void **pool_ptr, u32 elt_size, u32 max_elts)
ASSERT (elt_size);
ASSERT (max_elts);
ASSERT (elt_size);
ASSERT (max_elts);
- vector_size = pool_aligned_header_bytes + vec_header_bytes (0)
- + (u64) elt_size *max_elts;
-
+ vector_size = pool_aligned_header_bytes + (u64) elt_size *max_elts;
free_index_size = vec_header_bytes (0) + sizeof (u32) * max_elts;
/* Round up to a cache line boundary */
free_index_size = vec_header_bytes (0) + sizeof (u32) * max_elts;
/* Round up to a cache line boundary */