examples/ip_pipeline: fix false cacheline sharing among threads
In ip_pipeline app, the structure app_thread_data needs to be aligned to the cache line boundary as threads on different cpu cores are accessing fields of the app->thread_data and having this structure not aligned on cacheline boundary leads to false cacheline sharing. Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
parent
5fdb6c3621
commit
5f0c5de435
@ -300,7 +300,7 @@ struct app_thread_data {
|
||||
uint64_t headroom_time;
|
||||
uint64_t headroom_cycles;
|
||||
double headroom_ratio;
|
||||
};
|
||||
} __rte_cache_aligned;
|
||||
|
||||
#ifndef APP_MAX_LINKS
|
||||
#define APP_MAX_LINKS 16
|
||||
|
Loading…
x
Reference in New Issue
Block a user