Skip to content

Commit

Permalink
Replace macro defined by DPDK
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaibrodschi committed Aug 22, 2024
1 parent 56b636a commit 7275bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements/ip/iprewriterbase.hh
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ IPRewriterBase::search_migrate_entry(const IPFlowID &flowid, per_thread<T> &vsta
{
//If the flow does not exist, it may be in other thread's stack if there was a migration
if (vstate->rebalance > 0 &&
click_jiffies() - vstate->rebalance < (uint64_t) THREAD_MIGRATION_TIMEOUT * CLICK_HZ / MS_PER_S) {
click_jiffies() - vstate->rebalance < (uint64_t) THREAD_MIGRATION_TIMEOUT * CLICK_HZ / 1000) {
//Search in other thread's stacks for the flow
for (int i = 0; i < vstate.weight(); i++) {
if (vstate.get_mapping(i) == click_current_cpu_id())
Expand Down

0 comments on commit 7275bb7

Please sign in to comment.