aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-08-20 22:47:46 +0200
committerLuca Deri <deri@ntop.org>2021-08-20 22:47:46 +0200
commit88040f04492d9ae4966b7387aafc20fb779fcb09 (patch)
tree47d19887d3f537e27226f7d6a5a07ddc2502b7d9 /example
parent9e0f0ce3df69023bc2acca5536efca134363380e (diff)
Compilation fix
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index ab6e0f391..4015f9b8d 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1053,12 +1053,14 @@ static void parseOptions(int argc, char **argv) {
}
#ifdef linux
+#ifndef USE_DPDK
for(thread_id = 0; thread_id < num_threads; thread_id++)
core_affinity[thread_id] = -1;
if(num_cores > 1 && bind_mask != NULL) {
char *core_id = strtok(bind_mask, ":");
thread_id = 0;
+
while(core_id != NULL && thread_id < num_threads) {
core_affinity[thread_id++] = atoi(core_id) % num_cores;
core_id = strtok(NULL, ":");
@@ -1066,6 +1068,7 @@ static void parseOptions(int argc, char **argv) {
}
#endif
#endif
+#endif
}
/* ********************************** */