aboutsummaryrefslogtreecommitdiffstats
path: root/examples/exception_path/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/exception_path/main.c')
-rw-r--r--examples/exception_path/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c
index bec98040..e5eedcc1 100644
--- a/examples/exception_path/main.c
+++ b/examples/exception_path/main.c
@@ -350,8 +350,7 @@ setup_port_lcore_affinities(void)
}
port_ids[i] = rx_port++;
- }
- else if (output_cores_mask & (1ULL << i)) {
+ } else if (output_cores_mask & (1ULL << (i & 0x3f))) {
/* Skip ports that are not enabled */
while ((ports_mask & (1 << tx_port)) == 0) {
tx_port++;