Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/nwtime/linuxptp
Linux PTP Project
https://github.com/nwtime/linuxptp
The function ts_add() currently performs open-coded manipulation of a
struct timespec instead of...
Convert a software timestamp to the internal tmv_t representation at
the earliest possible oppor...
Convert a hardware timestamp to the internal tmv_t representation at
the earliest possible oppor...
The function clock_check_ts() performs open-coded manipulation of a
struct timespec instead of u...
The function ts_to_timestamp() currently performs open-coded
manipulation of a struct timespec a...
This will be needed in order to generate a TLV for the NSM protocol.
Signed-off-by: Richard Coc...
7a2013360a72fddcceef26bee037ba57206f6eef authored almost 7 years ago
The file, pmc.c, contains utility functions for printing out a port address
structure. We will ...
Signed-off-by: Richard Cochran <[email protected]>
d89d26d618c614e7f991e636cbf140d204b4f5b8 authored almost 7 years ago
This patch adds support for packing and unpacking the NSM TLVs. In
addition, it introduces macr...
The port will need to send unicast Sync messages in order to support
the NSM protocol. Besides ...
When NSM is enabled on a given port, that port always replies to a NSM
delay request with a dela...
This patch adds a new "NSM" program. The new code handles only one
outstanding NSM command at a...
The NetSync Monitor protocol will require us to report the time stamp of
the last synchronizatio...
Signed-off-by: Richard Cochran <[email protected]>
b6fa8e20eea7a1366d8f3e991c062ac101c7e44e authored almost 7 years agoAll users have been converted to the TLV list, so remove the field.
Signed-off-by: Richard Coch...
ecb5fa8ffbc13ea8bddc055d6c37c203f3504ba8 authored almost 7 years agoThis will be needed in order to support the NetSync Monitor protocol.
Signed-off-by: Richard Co...
9d48046e95231abe65362de10d014543d4bbcb71 authored almost 7 years ago
As part of the NetSync Monitor protocol, the port will need to have
access to the current data s...
Path trace TLVs and Follow-Up info TLVs might be mixed in among other
random TLVs. This patch f...
The third parameter of the function, pmc_send(), is never used. This patch
removes it.
Signed-...
e09d3a4aea86ee2905e0384e6c04b1b6c10194ae authored almost 7 years ago
Now that the list is in place and is used on all transmit paths, simply
iterate through the list...
The current code uses an ad hoc method of appending TLVs. When
constructing a message, the code...
In order to support multiple TLVs, the transmit code must be able to
append one TLV after anothe...
This patch changes the receive message parsing code to place each TLV
into the list. A method i...
The NetSync Monitor protocol features a TLV with a length of zero.
Our input message parsing ass...
In order to support multiple TLVs per message, a list is needed.
This patch adds the list to the...
Signed-off-by: Richard Cochran <[email protected]>
c8d9d05e7a3b7b30dae6dd4bea0925162c8d8e33 authored almost 7 years ago
Enforce the use of the tmv_t wrapper functions by converting tmv_t
from an int64_t to a struct c...
Use tmv_dbl() to obtain the floating point value passed to
stats_add_value() rather than relying...
The sign of time values is tested in tsproc.c. Add an abstraction
tmv_sign() to return the sign...
Signed-off-by: Michael Brown <[email protected]>
288810bb3679dc1b4775024b2a2b0b22e79ca0d6 authored almost 7 years agoSigned-off-by: Michael Brown <[email protected]>
12c9805eaba640e523ab0d7258d45a461f048bfe authored almost 7 years agoSigned-off-by: Michael Brown <[email protected]>
5df2779ef00d009a18381434c6c46e3af245486f authored almost 7 years ago
Time values are compared using an inequality test in mmedian.c
Generalise tmv_eq() to tmv_cmp() ...
Signed-off-by: Michael Brown <[email protected]>
ea82ae6c284f2aa7848029958768e694cdefe8d4 authored almost 7 years agoWe always but braces around 'if' blocks.
Signed-off-by: Richard Cochran <[email protected]>
d34d253fb47e30a97b920a67739c1877be33760c authored almost 7 years agoSigned-off-by: Richard Cochran <[email protected]>
8ecdedaa69bd4045a3fe6ee82e3f097670e19487 authored almost 7 years ago
We are programming C, not Java, and so opening braces of a function
belong on a line all by them...
The code uses a local variable for program flow control in a silly way.
This patch simplifies th...
We indent with tabs, not spaces.
Signed-off-by: Richard Cochran <[email protected]>
201abc9b95f0342ab94790a750bdfe82930eae33 authored almost 7 years ago3870bc1c5bac318c32908d4f25056c3f9bc7346f authored almost 7 years ago
The code uses a local variable for program flow control in a silly way.
This patch simplifies th...
Valgrind is nagging us, saying we pass uninitialized data through a
setsockopt() call. This pat...
Any code that wants to call one_step() needs to link with the static
global 'assume_two_step'. ...
Re-arrange local variables into a more legible reverse Christmas tree.
Signed-off-by: Richard C...
0a726b4390b030db2b22fa533c815588a0374dbb authored almost 7 years ago
Up until now the transportSpecific field has been treated according to
802.1AS, namely as a fiel...
When a network interface doesn't support the most specific PTP filter
(e.g. it can timestamp eit...
This option allows the clock to be updated before the path delay is
measured in order to speed u...
When the minimum delay request interval is changed after processing a
delay response, update the...
The UDS port is not expected to be used by PTP clocks and forwarding of
management messages to t...
Signed-off-by: Richard Cochran <[email protected]>
dacf9dcd240e3e357ea7d26e710dc7c80de09de7 authored about 7 years agoAdd description about bond interface.
Signed-off-by: Hangbin Liu <[email protected]>
5ce04f9bf366c6d62db5344a6553f87a99ea52ff authored over 7 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
18daeb6b263b90cf1a3ebb790df4ca60d930799c authored over 7 years ago
Because our interfaces include UNIX domain sockets, we are using
UNIX_PATH_MAX of 108 bytes for ...
When parsing the argument, the minimum value should be -DBL_MAX instead
of DBL_MIN, which is the...
When the clock device or phc index changed, the new phc device may have
different maximum adjust...
The previous function use general message and will dump all interfaces'
information. Now update ...
We also need this part in clock_reinit() later. So split it out of
function clock_add().
Signed...
cb53238d5d1a1b9319536b4df1edf237e428d931 authored over 7 years ago
Now the ts label will be either the bond active slave or the interface
name, which is the exactl...
Update function rtnl_link_status to get bond slave info. Pass the slave index
to call back funct...
Signed-off-by: Hangbin Liu <[email protected]>
7092db303028d84574138c8199375dfde0b4e232 authored over 7 years ago
Separate required_modes setting from clock_create so we can obtain the
required time stamping fl...
Besides link up and down, we may also receive other rtnl messages, like
bond slave changed info,...
Signed-off-by: Hangbin Liu <[email protected]>
6d1e2a62bdb4f6353e3a9006f2d603031f4648e6 authored over 7 years agoSigned-off-by: Hangbin Liu <[email protected]>
7e294a4d047654f746c3fcdff7bce512be149e37 authored over 7 years agoPass struct interface so we can use ts_iface in HW filter.
Signed-off-by: Hangbin Liu <liuhangb...
8923bcdf64c0c95bac7af977b867393bae69e7a1 authored over 7 years agoAdd new element ts_label in struct interface to track real ts interface.
Signed-off-by: Hangbin...
9e744d9e8a2dab6ec0ea5ece5ac25e7384264575 authored over 7 years ago
When the master clock changed its state and then changed it back to the
original state before ph...
When acting as a slave, we accept the foreign master's advertised
TAI-UTC offset for as long as ...
Now that we test the UTC flags in clock_update_slave(), the similar
code in clock_utc_correct() ...
The clock code uses two different variables to store the TAI-UTC
offset. One variable represent...
The current implementation of ptp4l always assumes 6 octets MAC
address, which is correct for Et...
Signed-off-by: Hangbin Liu <[email protected]>
17aa750a49ebaecfc7b063c770aa8d36f5078b2c authored over 7 years agoWith rtnl socket we can track link status per port(except UDS port).
We can make sure we get th...
c149a3dbc1b38e833de783ae863038562baca0fe authored over 7 years agoRemove index2port since we don't need it now.
Signed-off-by: Hangbin Liu <[email protected]>
7c3f9579f0c230ee798644a26d664ebd3efc612f authored over 7 years agoRemove rtnl fd on clock since we track the link status per port now.
Signed-off-by: Hangbin Liu...
25ec8a3b4e2222b394794ff830bd3583e9cf6c71 authored over 7 years ago
Since we called strdup() for clock device, we need free the memory
before exit.
Signed-off-by: ...
46cc187e82874423f3a0940d8b12c191f7455a1a authored over 7 years ago
When phc2sys synced more than one ethernet interface, such as in a JBOD
boundary clock arrangeme...
Signed-off-by: Brian Olson <[email protected]>
7c6a9862fd7c6e49350aaf527194603930b10ca2 authored over 7 years ago[ RC: Added comment explaining the ordering requirements. ]
Signed-off-by: Brian Olson <brian@a...
ae28f5295fc22ff5f65533d1cbbf8d2e29e48ebc authored over 7 years ago
Unfortunately uClinux is rather inconsistent with respect to
clock_nanosleep(). Older versions ...
If handle unknown management tlv. The management message id and format are
also unknown, thus we...
TLV_PRIORITY1 and TLV_PRIORITY2 cases in do_set_action() use the same repeated
piece of generic ...
The calls to snprintf() to format /dev/phc%d use the wrong pattern.
That function always properl...
Signed-off-by: Richard Cochran <[email protected]>
6558bade7c4a6bd57392d75256240f3dc08301cc authored over 7 years ago
On some platforms clock_adjtime is defined in timex.h instead of time.h
Due to this fact the det...
On some platforms like br-arm-cortex-a9-musl struct ethhdr was defined twice
due to including of...
Fixes the following build errors seen with musl-libc:
In file included from print.h:25:0,
...
If the len is not enought for another tlv process. e.g. one more bytes
padding at the end of mes...
netdb.h pulls in a large chain of include files:
rpc/netdb.h
rpc/types.h
rpc/types.h re-defines...
8b61aa2c3f3103db1d4ca1d1e49bb4f8831c1abf authored over 7 years ago
The time stamp processor features four modes resulting from the
combination of two independent B...
After a servo jump, the call to tsproc_reset() clears tsp->t3. This
causes the next call to tsp...
We will want to test whether a valid filtered delay value has been
calculated or not. However, ...
The sequence of port_nrate_calculate() and tsproc_update_delay()
in port_peer_delay() is mixed u...
The servo constructors might return a NULL pointer.
The function servo_create() uses servo witho...
When ptp4l is using multiple interfaces sharing the same clock, phc2sys
in the automatic mode sh...
Signed-off-by: Miroslav Lichvar <[email protected]>
8deb52a849cb1b7479ddda1065cbba7c83fd13c4 authored almost 8 years ago
Having one fewer port may affect the result of the BMCA. This patch
changes the main loop so th...
This global function used to return an error code, but now it always
returns zero. This patch c...
Use the new options of ptp4l and phc2sys to tag their log messages with
the PTP domain number an...
When an interface doesn't support HW time stamping, before falling back
to SW time stamping, che...