aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2018-12-05 13:00:07 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-12-13 12:30:20 +0300
commitcd8dce5edfcb5c776c146a4d5f6d3b03e6e9c03a (patch)
treef25c3e38cbb3fe4a8be6b9b4aed99c4a7fabb425 /config
parent0b32d484baf7c91bc3f7ae96976873d834687513 (diff)
linux-dpdk: queue: fix usage of too small queue ring
A ring which is used to implement a queue must be larger than the queue. Optimal memory usage when queue size is power of two minus one. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'config')
-rw-r--r--config/odp-linux-dpdk.conf10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/odp-linux-dpdk.conf b/config/odp-linux-dpdk.conf
index 824dd57c2..65e0e3efd 100644
--- a/config/odp-linux-dpdk.conf
+++ b/config/odp-linux-dpdk.conf
@@ -42,11 +42,13 @@ pktio_dpdk: {
}
queue_basic: {
- # Maximum queue size. Value must be a power of two.
- max_queue_size = 8192
+ # Maximum queue size. Power of two minus one results optimal memory
+ # usage (e.g. (8 * 1024) - 1).
+ max_queue_size = 8191
- # Default queue size. Value must be a power of two.
- default_queue_size = 4096
+ # Default queue size. Power of two minus one results optimal memory
+ # usage (e.g. (4 * 1024) - 1).
+ default_queue_size = 4095
}
sched_basic: {