aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJerin Jacob <jerinj@marvell.com>2020-07-29 22:26:31 +0530
committerPetri Savolainen <petri.savolainen@nokia.com>2020-08-25 10:55:49 +0300
commitaccc89eb28992d77d6ad46e65a3154b4221d0b0d (patch)
tree5ac5d44c9027ac22afe20192b5b020cfd8b1dc98 /example
parent1ac7d066f6c5b0687af771721c51da620a90230a (diff)
validation: pool: honor max_align capability
Honor the odp_pool_capability_t::buf.max_align attribute while creating the pool. Some implementation chooses to optimize odp_buffer_t handling in such a way that implementation-specific metadata and actual data can be in the same cache-line as a performance optimization while accessing the odp_buffer_t. As a fix, except helpers, let the application uses the default alignment from odp_pool_param_init(). Signed-off-by: Jerin Jacob <jerinj@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'example')
-rw-r--r--example/time/time_global_test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/example/time/time_global_test.c b/example/time/time_global_test.c
index 3c5d15b85..ad1bfead8 100644
--- a/example/time/time_global_test.c
+++ b/example/time/time_global_test.c
@@ -330,7 +330,6 @@ int main(int argc, char *argv[])
odp_pool_param_init(&pool_param);
pool_param.buf.size = sizeof(timestamp_event_t);
- pool_param.buf.align = ODP_CACHE_LINE_SIZE;
pool_param.buf.num = MAX_NUM_BUF;
pool_param.type = ODP_POOL_BUFFER;