- 09 Apr, 2019 1 commit
-
-
baujc authored
- It has now its own state table - The servo is shared with L1Sync extension. It means that servo calculation is now following the new standard IEEE 1588 - It stay compatible with older versions of the switch. The correction field value in the exchange messages are still not compliant with the standard to keep the compatibility.
-
- 29 Mar, 2019 1 commit
-
-
baujc authored
- For WR extension, we keep the old way to stay compliant with previous version of WR - The changes are applied to HA extension and compliant now with the IEEE standard (delayAsymmetry sent in the CField of [P]DelayReq msg, ...)
-
- 05 Mar, 2019 1 commit
-
-
baujc authored
After reviewing the code with Maciej, this time-out does not seem to be used in a very coherent way. We decided then to remove it.
-
- 01 Mar, 2019 1 commit
-
-
baujc authored
- Make externalPortConfiguration compliant with the PTP specifications - Optimize code for externalPortConfiguration - Optimize code for slaveOnly - Replace "CONFIG_HAS_P2P && ppi->delayMechanism==P2P" by an inline function
-
- 26 Feb, 2019 1 commit
-
-
baujc authored
-
- 25 Feb, 2019 1 commit
-
-
baujc authored
. Better integrate of code optimization with PPSi Kconfig . PPSi Kconfig changes to simplify the code in PPSi and avoid #ifdef .. . Improve code optimization . Move some declaration in ppsi.h in other files to ligthen ppsi.h . Improvement of timers: global or instance dependent, dyn. allocation, renaming for better diagnostics, disabling allowed, ... . New behaviour for the PPS output generation (configurable,...) . Move control of the timing mode from HAL to PPSi . Optimization of code when a Protocol extension is not available . BMCA: Calculate the ebest,... only one time and then trigger all instances to execute the bmca state descision . Fix bug in the calculation of the clockIdentity to bring it into compliance with PTP spec 2008 document . Fix a bug related to Announce message received in SLAVE/UNCALIB . WR ext: use dynamic timer and adapt to new PPS generation . HA ext: Fix bug in fault injection mechanism
-
- 06 Feb, 2019 1 commit
-
-
baujc authored
Risk of overflow in some cases.
-
- 01 Feb, 2019 1 commit
-
-
baujc authored
offsetFromMaster and meanDelay are updated in currentDS only when a PPSi instance is SLAVE.
-
- 29 Jan, 2019 3 commits
-
-
baujc authored
- New L1Sync and PTP servo calculation (delayAsym,...) - Make function calls more uniforms between extensions - refactoring - Add a new state machine to enable/disable an extension and provide only PTP support: New timer, new hooks, ... - Fix bug in time format conversion - Code removed when an extension is not required (#ifdef XXX ) - Align the PTP and L1Sync servo calculation (shared fct, same calculation,...) - Force only one servo running at a given time for a given instance - New servo reset hook : called by main loop - Add function to converte a time into a string - Force to stay in FAULTY state during 60s - Optimise function wrs_enable_timing_output()
-
baujc authored
The custom profile is usefull for the White Rabbit switch integration tests. It is now possible to remove it for other targets where the memory space is critical (nodes)
-
baujc authored
When /etc/init.d/ppsi.sh is called with the parameter 'restart', it happens sometimes that the restarted PPSI process detects that another one is running but it is not really the case. To sove this problem, the PPSI process is now checking few times with a delay in between before to decide to exit.
-
- 28 Jan, 2019 1 commit
-
-
baujc authored
When a jitter greater than 20ms is observed with peer, the seconds are never adjusted. The solution is then to adjust first the seconds.
-
- 25 Jan, 2019 1 commit
-
-
baujc authored
Instead of restarting a timer on each retry, the timer is initialized only once when we enter in the state. It helps to respect the time spent in a given state before to skip it due to the time-out.
-
- 24 Jan, 2019 5 commits
-
-
baujc authored
For a WR slave, it will force the recetion of a new ANNOUNCE message before to jump from SLAVE to WR_PRESENT state.
-
Maciej Lipinski authored
per Veryx request, they cannot do less than 100ms
-
Maciej Lipinski authored
the names correspond to the info provide to Veryx for testing
-
Maciej Lipinski authored
-
Maciej Lipinski authored
Conflicts: include/ppsi/constants.h
-
- 10 Jan, 2019 1 commit
-
-
baujc authored
As we can get know the WR time (IRPC call) we use it instead of using the T4 time aproximation. Making some tests, the difference between Unix time and WR time is around 30us (was 20ms before with T4)
-
- 03 Dec, 2018 2 commits
-
-
Jean-Claude BAU authored
- Update of portDs.meanLinkDelay for P2P mechanism - Fix issue updating currentDS.meanDelay
-
Jean-Claude BAU authored
- In order to increase the code readibility, the p2p and e2e functions has been splitted into differents files. - Protect P2P from multiple answers coming from different hosts.
-
- 30 Nov, 2018 1 commit
-
-
Jean-Claude BAU authored
According to the clause 9.3.2.3, the qualification is now not evaluated for the EBest foreign master. EBest is always considered qualified.
-
- 29 Nov, 2018 2 commits
-
-
Jean-Claude BAU authored
This new parameter is used to control the configurable parameter L1SyncOptParamsPortDS.timestampsCorrectedTx when L1SyncBasicPortDS.optParamsEnabled is set to true.
-
Jean-Claude BAU authored
The delayCoefficient can be set in ppsi.conf file either with the delayCoefficient (double) parameter or the scaledDelayCoefficient (RelativeDifference) parameter. In ppsi, the priority is given to the scaledDelayCoefficient.
-
- 28 Nov, 2018 2 commits
-
-
Jean-Claude BAU authored
When the extension L1SYNC is not available (no data), the value of L1SyncEnable and L1SyncState are emulated and displayed. Some VERYX tests need these information also when L1SYNC is disabled.
-
Jean-Claude BAU authored
Due to changes in the standard (Clause 17.6.5), the slaveOnly parameter must be forced to FALSE when externalPortConfiguration is enabled.
-
- 27 Nov, 2018 5 commits
-
-
Jean-Claude BAU authored
- When optParamsEnabled is set, the TLV send need to be extended with extra values. Fix here the length of the TLV and the whole message. - Fix print issue of the signaling TLV
-
Jean-Claude BAU authored
- Add DelayAsymmetty calculation for HA - Avoid using pow() math function call. Use directly a constant value. Done for HA and WR.
-
Jean-Claude BAU authored
- The ntohx() is now used to unpack messages and htohx() to pack them. Most of the time only htohx() was used for paking and unpacking messages. - Code optimization
-
Jean-Claude BAU authored
On little indian architecture, the calculation of the correction field was wrong in the PDelay_Resp_FollowUp message. This was introducing a big random offset (few us) of the PPS.
-
Jean-Claude BAU authored
-
- 21 Nov, 2018 9 commits
-
-
Adam Wujek authored
Fix warning introduced in the commit: Implement one-step clock for HA & WR profiles Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Jean-Claude BAU authored
- Many information were store in a common static structure (to_config). However depending on the PPSI instance configuration these information need to be stored per instance. Mainly it concerns the rand value (which_rand and the counter reset value). Only the timer name stay now in a common arrea.
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Jean-Claude BAU authored
According to the clause 9.3.2.3, the qualification is now not evaluated for the ErBest foreign master. On ANN_RECEIPT timout, the ErBest is removed from the list of foreign master to avoid to jump immediately to SLAVE state
-
Jean-Claude BAU authored
- Add new config parameters (l1SyncRxCoherencyIsRequired,...) - Add new profile: CUSTOM. It will be mostly used for testing - Fix issue on state name: "pre_master" instead of "pre-master"
-
Jean-Claude BAU authored
- Add new config parameters (l1SyncRxCoherencyIsRequired,...) - Add new profile: CUSTOM. It will be mostly used for testing - Fix issue on state name: "pre_master" instead of "pre-master"
-
Jean-Claude BAU authored
According to the clause 9.3.2.3, the quualification is now not evaluated for the ErBest foreign master.
-
Jean-Claude BAU authored
-
Jean-Claude BAU authored
The one-step clock didn't work for HA & WR profiles. This new implementation is based on a new hook "handle_sync" called in case of one-step clock mode.
-