diff options
Diffstat (limited to 'platform/linux-dpdk/odp_linux.c')
-rw-r--r-- | platform/linux-dpdk/odp_linux.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/linux-dpdk/odp_linux.c b/platform/linux-dpdk/odp_linux.c index 067bd99..1f14c87 100644 --- a/platform/linux-dpdk/odp_linux.c +++ b/platform/linux-dpdk/odp_linux.c @@ -22,6 +22,11 @@ #include <rte_lcore.h> +#define NO_HZ_FULL_ISOL /* + * don't use odp cpuset. + * enable this for odp isolation mode + */ + typedef struct { int thr_id; void *(*start_routine) (void *); @@ -45,12 +50,16 @@ void odp_linux_pthread_create(odp_linux_pthread_t *thread_tbl, int num, int first_core, void *(*start_routine) (void *), void *arg) { int i; +#ifndef NO_HZ_FULL_ISOL cpu_set_t cpu_set; +#endif odp_start_args_t *start_args; int core_count; int cpu; +#ifndef NO_HZ_FULL_ISOL (void) cpu_set; +#endif (void) thread_tbl; core_count = odp_sys_core_count(); |