Commit 6f34537d authored by Jean-Claude BAU's avatar Jean-Claude BAU

Add l1SyncOptParamsTimestampsCorrectedTx parameter in the configuration

This new parameter is used to control the configurable parameter
L1SyncOptParamsPortDS.timestampsCorrectedTx when
L1SyncBasicPortDS.optParamsEnabled is set to true.
parent dd417ad8
......@@ -323,6 +323,9 @@ int main(int argc, char **argv)
L1E_DSPOR_BS(ppi)->txCoherentIsRequired =ppi->cfg.l1SyncTxCoherencyIsRequired;
L1E_DSPOR_BS(ppi)->congruentIsRequired =ppi->cfg.l1SyncCongruencyIsRequired;
L1E_DSPOR_BS(ppi)->optParamsEnabled=ppi->cfg.l1SyncOptParamsEnabled;
if ( L1E_DSPOR_BS(ppi)->optParamsEnabled ) {
L1E_DSPOR_OP(ppi)->timestampsCorrectedTx=ppi->cfg.l1SyncOptParamsTimestampsCorrectedTx;
}
}
#endif
enable_asymmetryCorrection(ppi,ppi->cfg.asymmetryCorrectionEnable);
......
......@@ -150,11 +150,13 @@ struct pp_instance_cfg {
Boolean l1SyncOptParamsEnabled; /* L1SYNC: Optional parameters enabled */
int l1syncInterval; /* L1SYNC: l1sync messages interval */
int l1syncReceiptTimeout; /* L1SYNC: l1sync messages receipt timeout */
Boolean l1SyncOptParamsTimestampsCorrectedTx; /* L1SYNC: correction of the transmitted egress timestamps */
#endif
int64_t egressLatency_ps; /* egressLatency in picos */
int64_t ingressLatency_ps; /* ingressLatency in picos */
int64_t constantAsymmetry_ps; /* constantAsymmetry in picos */
double delayCoefficient; /* fiber delay coefficient as a double */
int64_t scaledDelayCoefficient; /* fiber delay coefficient as RelativeDifference type */
int desiredState; /* externalPortConfigurationPortDS.desiredState */
Boolean masterOnly; /* masterOnly */
Boolean asymmetryCorrectionEnable; /* asymmetryCorrectionPortDS.enable */
......
......@@ -331,6 +331,7 @@ static struct pp_argline pp_global_arglines[] = {
INST_OPTION_BOOL("l1SyncTxCoherencyIsRequired", cfg.l1SyncTxCoherencyIsRequired),
INST_OPTION_BOOL("l1SyncCongruencyIsRequired", cfg.l1SyncCongruencyIsRequired),
INST_OPTION_BOOL("l1SyncOptParamsEnabled", cfg.l1SyncOptParamsEnabled),
INST_OPTION_BOOL("l1SyncTimestampsCorrectedTxEnabled", cfg.l1SyncOptParamsTimestampsCorrectedTx),
#endif
INST_OPTION_BOOL("asymmetryCorrectionEnable", cfg.asymmetryCorrectionEnable),
......
......@@ -44,6 +44,7 @@ struct pp_instance_cfg __pp_default_instance_cfg = {
.l1SyncTxCoherencyIsRequired=FALSE,
.l1SyncCongruencyIsRequired=FALSE,
.l1SyncOptParamsEnabled=FALSE,
.l1SyncOptParamsTimestampsCorrectedTx=FALSE,
.l1syncInterval=L1E_DEFAULT_L1SYNC_INTERVAL,
.l1syncReceiptTimeout=L1E_DEFAULT_L1SYNC_RECEIPT_TIMEOUT,
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment