- 21 Nov, 2018 1 commit
-
-
Jean-Claude BAU authored
- This structure is changed in order to be able to use SIGNALING messages with non-fowardable MAC address. This have an impact on many places as we have to distinguish two kind of signaling messages
-
- 07 Aug, 2017 1 commit
-
-
Sven Meier authored
The UTC leap flags are propagated to the system (unix) so the leap second is correctly handled at midnight so the UTC time is always correct.
-
- 03 Aug, 2017 1 commit
-
-
Sven Meier authored
The clock class is now decreased and increased based on the servo state, this only has an effect for wrs and wrpc since the contain a servo loop.
-
- 20 Jul, 2017 2 commits
-
-
Sven Meier authored
Leap seconds are now also fetched from the system in case we are a grandmaster A reset of the locking procedure was added so a locked switch can get master again
-
Sven Meier authored
The audit portings changed the timely behaviour of the ppsi which cause wrong behaviours, the timeout scheme was changed to only reset timeouts where needed and in all non PTP states. UTC offset is now fetched from the system where supported, link up/down is now considered in the BMC, also some state changes where cleaned up to be out of the BMC, e.g. state changes based on timeouts between PreMaster and Master or between Uncalibrated and Slave.
-
- 31 Jan, 2017 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Conflicts: time-bare/bare-socket.c
-
- 12 Dec, 2016 1 commit
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 04 Nov, 2016 1 commit
-
-
Alessandro Rubini authored
Most arguments of net->send are redundant, as the ppi includes all info. In particular, chtype and "is_pdelay_addr" derive from the message type. And the timestamp is always internal. I chose not to remove message, len and msgtype because the message being sent includes the header (ppi->tx_offset), so there's some calculation to extract them. This may happen in a later commit, if I find that is a size improvement. Bugs fixed as a side effect: - the "if" for "is_pelay" missed PDELAY_RESP_F_UP (now it's in msgtype.c) - wrpc pdelay was always using the e2e mac address This commit decreases the size of all archs by 60 bytes, but increases wrpc by 20 bytes because of the fix above Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 16 May, 2016 2 commits
-
-
Alessandro Rubini authored
We don't zero timer any more (see preceding commit), no need to special case anything. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit ensures all architectures do the proper things to work with either end-to-end and peer-to-peer, and all frames use the proper addresses * we avoid ifdef by using HAS_PTP and HAS_E2E * no need to -D config items in Makefile * wrpc now correctly sets ppg->delay_mech at startup * the simulator now correctly sets ppg->delay_mech at startup * bare archs correctly set ppg->delay_mech at startup * bare archs properly use one or the other multicast address * pp_instance_cfg->delay_mech is removed as not yet used Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 01 Sep, 2015 1 commit
-
-
Alessandro Rubini authored
This adds -Wstrict-prototypes -Wmissing-prototypes and takes actions accordingly. Some of the solutions are ugly, especially in the bare architectures, but I prefer to be warned if I take dangerous paths wrt prototypes while writing further code. I'm upset by those two not being included in -Wall, as they used to. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 06 Jul, 2015 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 07 Nov, 2014 3 commits
-
-
Alessandro Rubini authored
This paves the way to the addition of a third protocol. Besides the code is slightly smaller (around 50 bytes on all archs). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Bitfields are bad, so this turns them into flags and constants. There should be no change at all in behaviour (although the code is a little smaller). The next commit does a change for real. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
I'm going to introduce a "flags" field in pp_instance, so diagnostic flags are better called d_flags. The same applies, for consistency, to the global variable. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 22 Sep, 2014 1 commit
-
-
Alessandro Rubini authored
All adjustments are passed as part-per-billion, so after getting mad in understanding what freq_ppm was, I renamed all of them to freq_ppb. While making changes I verified this is what it is. Thus I fixed the comment in ppsi.h (that was wrong by a factor of 64) and the adjustment code in bare-time.c that made the same error (I admit I don't test arch-bare often). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 21 Jul, 2014 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 15 Nov, 2013 1 commit
-
-
Alessandro Rubini authored
This simplifies the build system, by relying in weak symbols instead of the link order. We need weak symbols anyways for configuration, so we can get rid of the libraries. The size of binaries returned at build time is increased, because arch/ and lib/ stuff is not part of ppsi.o (as it actually should). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 05 Oct, 2013 2 commits
-
-
Alessandro Rubini authored
This patch adds support for modifying the utc/tai offset. The "set" time operation, when called with a NULL pointer to the time structure, will do the operation in its own arch-specific way. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This adds support for the utc/tai offset. Unix, bare and wrs use UTC in system time and TAI in PTP frames. WR time is TAI as well, and wrpc-sw passes 0 as offset value when run as master. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 31 Jul, 2013 1 commit
-
-
Alessandro Rubini authored
This changes all "Name Surname for CERN" to "Copyright CERN, author Name Surname". This is trivial and makes no change, with a few expections: - all trivial Makefiles that had "for CERN" lines have now no attributions, as they are trivial anyways. - a few unrepresented files have not the copyright notice (especially ptpdump, that I wrote in 2012). - a few "for CERN" remain in subprojects, where I didn't touch anyrhing Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 23 May, 2013 1 commit
-
-
Alessandro Rubini authored
This commit separates to its own directory the timing code specific to bere linux implementations. If you build with ARCH=bare-i386 or ARCH=bare-i386-64, TIME=bare is automatically selected. Please note how bare builds don't allow externally-set TIME=, as the architecture Makefile forces "TIME := bare" (not "TIME ?= bare"). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-