Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the number of elements in mempool
the second parameter of function rte_mempool_create should be "n modulo cache_size == 0" but not (2^q - 1). The issue is some elements will always stay in the pool and will never be used if "n modulo cache_size != 0". Change-Id: I34555faffb09efb744dc34a384eaff152dc675b8 Closes-Bug: #1786767 Signed-off-by: Yi Yang <yi.y.yang@intel.com>
- Loading branch information
Showing
2 changed files
with
1 addition
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters