aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2019-11-15 15:39:32 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2019-11-26 15:26:38 +0200
commit10a0418039d3d8770e80766d33bd3224d1bd88a3 (patch)
tree153827f2445c1282ca77531c417ab1cfa1043341 /config
parentab5574db4e04e097170dff2d30a77281ebc85278 (diff)
linux-gen: pool: add data align config file options
Added packet and buffer data alignment options into the config file. For packets, this is the segment base address alignment. For buffers, this is minimum data alignment, application alignment requirements are rounded up to this value. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'config')
-rw-r--r--config/odp-linux-generic.conf13
1 files changed, 12 insertions, 1 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf
index b35089944..4b19c102d 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.10"
+config_file_version = "0.1.11"
# Shared memory options
shm: {
@@ -60,6 +60,17 @@ pool: {
# Maximum number of packets per pool. Power of two minus one
# results optimal memory usage (e.g. (256 * 1024) - 1).
max_num = 262143
+
+ # Base alignment for segment data. When set to zero,
+ # cache line size is used. Use power of two values.
+ base_align = 0
+ }
+
+ buf: {
+ # Minimum data alignment. The alignment request in pool
+ # parameters is rounded up to this value. When set to zero,
+ # cache line size is used. Use power of two values.
+ min_align = 0
}
}