Skip to content

Commit

Permalink
Fixed -m 4/5/6 with multiple applications and more than 32 queues
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Dec 26, 2018
1 parent 1ed1984 commit 907badd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions userland/examples_zc/zbalance_ipc.c
Expand Up @@ -623,7 +623,7 @@ int64_t fo_multiapp_gtp_distribution_func(pfring_zc_pkt_buff *pkt_handle, pfring

for (i = 0; i < num_apps; i++) {
app_instance = hash % instances_per_app[i];
consumers_mask |= (1 << (offset + app_instance));
consumers_mask |= ((int64_t) 1 << (offset + app_instance));
offset += instances_per_app[i];
}

Expand All @@ -647,7 +647,7 @@ int64_t fo_multiapp_gre_distribution_func(pfring_zc_pkt_buff *pkt_handle, pfring

for (i = 0; i < num_apps; i++) {
app_instance = hash % instances_per_app[i];
consumers_mask |= (1 << (offset + app_instance));
consumers_mask |= ((int64_t) 1 << (offset + app_instance));
offset += instances_per_app[i];
}

Expand All @@ -672,7 +672,7 @@ int64_t fo_multiapp_direct_distribution_func(pfring_zc_pkt_buff *pkt_handle, pfr

for (i = 0; i < num_apps; i++) {
app_instance = ingress_id % instances_per_app[i];
consumers_mask |= (1 << (offset + app_instance));
consumers_mask |= ((int64_t) 1 << (offset + app_instance));
offset += instances_per_app[i];
}

Expand Down

0 comments on commit 907badd

Please sign in to comment.