From 7275bb76c32c8f3e3eefea00584dd739815b535d Mon Sep 17 00:00:00 2001 From: Mihai Brodschi Date: Thu, 22 Aug 2024 09:39:56 +0300 Subject: [PATCH] Replace macro defined by DPDK --- elements/ip/iprewriterbase.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/ip/iprewriterbase.hh b/elements/ip/iprewriterbase.hh index b92d3e780..a4fc12142 100644 --- a/elements/ip/iprewriterbase.hh +++ b/elements/ip/iprewriterbase.hh @@ -429,7 +429,7 @@ IPRewriterBase::search_migrate_entry(const IPFlowID &flowid, per_thread &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())