@@ -534,6 +534,6 @@ mac_learning_wait(struct mac_learning *ml)
poll_immediate_wake();
} else if (!ovs_list_is_empty(&ml->lrus)) {
struct mac_entry *e = mac_entry_from_lru_node(ml->lrus.next);
- poll_timer_wait_until(e->expires * 1000LL);
+ poll_timer_wait_until(e->expires * MSEC_PER_SEC);
}
}
@@ -916,12 +916,12 @@ mcast_snooping_wait__(struct mcast_snooping *ms)
if (!ovs_list_is_empty(&ms->group_lru)) {
grp = mcast_group_from_lru_node(ms->group_lru.next);
bundle = mcast_group_bundle_from_lru_node(grp->bundle_lru.next);
- msec = bundle->expires * 1000LL;
+ msec = bundle->expires * MSEC_PER_SEC;
}
if (!ovs_list_is_empty(&ms->mrouter_lru)) {
mrouter = mcast_mrouter_from_lru_node(ms->mrouter_lru.next);
- mrouter_msec = mrouter->expires * 1000LL;
+ mrouter_msec = mrouter->expires * MSEC_PER_SEC;
msec = msec ? MIN(msec, mrouter_msec) : mrouter_msec;
}
Replace 1000 value with MSEC_PER_SEC macro when converting seconds to ms. Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com> --- lib/mac-learning.c | 2 +- lib/mcast-snooping.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)