aboutsummaryrefslogtreecommitdiff
path: root/config/odp-linux-generic.conf
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@linaro.org>2018-10-17 16:41:52 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-11-06 19:00:44 +0300
commit168d7168447b99097f3bbe397ca76b6cb87d34da (patch)
treedf65f18f8326c675670d1270956710b4424d7a7a /config/odp-linux-generic.conf
parentebff1c15f1a0ccad57d26720ba7357a6b194d7fe (diff)
linux-gen: pool: add max num packets in config file
This config is used to for maximum capability. The default capability needs to be modest so that system memory limit is not exceeded. User may increase maximum number of packets when system memory size allows (and SHM single VA is not used). Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'config/odp-linux-generic.conf')
-rw-r--r--config/odp-linux-generic.conf12
1 files changed, 11 insertions, 1 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf
index 4db9ed489..af651d7f6 100644
--- a/config/odp-linux-generic.conf
+++ b/config/odp-linux-generic.conf
@@ -16,7 +16,7 @@
# Mandatory fields
odp_implementation = "linux-generic"
-config_file_version = "0.1.0"
+config_file_version = "0.1.1"
# Shared memory options
shm: {
@@ -39,6 +39,16 @@ shm: {
single_va = 0
}
+# Pool options
+pool: {
+ # Packet pool options
+ pkt: {
+ # Maximum number of packets per pool. Power of two minus one
+ # results optimal memory usage (e.g. (256 * 1024) - 1).
+ max_num = 262143
+ }
+}
+
# DPDK pktio options
pktio_dpdk: {
# Default options