diff --git a/src/vma/dev/time_converter_ib_ctx.cpp b/src/vma/dev/time_converter_ib_ctx.cpp index c7ace8d4d..5eb780fc8 100644 --- a/src/vma/dev/time_converter_ib_ctx.cpp +++ b/src/vma/dev/time_converter_ib_ctx.cpp @@ -52,7 +52,7 @@ #define IB_CTX_TC_DEVIATION_THRESHOLD 10 -time_converter_ib_ctx::time_converter_ib_ctx(struct ibv_context* ctx, ts_conversion_mode_t ctx_time_converter_mode, uint64_t hca_core_clock) : +time_converter_ib_ctx::time_converter_ib_ctx(struct ibv_context* ctx, ts_conversion_mode_t ctx_time_converter_mode, uint64_t hca_core_clock_khz) : m_p_ibv_context(ctx), m_ctx_parmeters_id(0) { #ifdef DEFINED_IBV_CQ_TIMESTAMP @@ -60,7 +60,7 @@ time_converter_ib_ctx::time_converter_ib_ctx(struct ibv_context* ctx, ts_convers ctx_timestamping_params_t* current_parameters_set = &m_ctx_convert_parmeters[m_ctx_parmeters_id]; m_converter_status = TS_CONVERSION_MODE_RAW; - current_parameters_set->hca_core_clock = hca_core_clock * USEC_PER_SEC; + current_parameters_set->hca_core_clock = hca_core_clock_khz * MSEC_PER_SEC; if (ctx_time_converter_mode != TS_CONVERSION_MODE_RAW) { if (sync_clocks(¤t_parameters_set->sync_systime, ¤t_parameters_set->sync_hw_clock)) { @@ -73,7 +73,7 @@ time_converter_ib_ctx::time_converter_ib_ctx(struct ibv_context* ctx, ts_convers } } #else - NOT_IN_USE(hca_core_clock); + NOT_IN_USE(hca_core_clock_khz); #endif if (ctx_time_converter_mode != m_converter_status) { ibchtc_logwarn("converter status different then expected (ibv context %p, value = %d , expected = %d)" diff --git a/src/vma/dev/time_converter_ib_ctx.h b/src/vma/dev/time_converter_ib_ctx.h index e06695cdc..152803bd4 100644 --- a/src/vma/dev/time_converter_ib_ctx.h +++ b/src/vma/dev/time_converter_ib_ctx.h @@ -42,7 +42,7 @@ class time_converter_ib_ctx : public time_converter { public: - time_converter_ib_ctx(struct ibv_context* ctx, ts_conversion_mode_t ctx_time_converter_mode, uint64_t hca_core_clock); + time_converter_ib_ctx(struct ibv_context* ctx, ts_conversion_mode_t ctx_time_converter_mode, uint64_t hca_core_clock_khz); virtual ~time_converter_ib_ctx() {};