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

port: Treat ingressLatency and egressLatency as corrections

The function ts_add() currently performs open-coded manipulation of a
struct timespec instead of...

cdceec59faace75e13f719181cc36e9e39b1a20d authored almost 7 years ago
msg: Represent hw_timestamp "sw" field as tmv_t

Convert a software timestamp to the internal tmv_t representation at
the earliest possible oppor...

7f59858d082acfcfe944350d6411c959efaad0e5 authored almost 7 years ago
msg: Represent hw_timestamp "ts" field as tmv_t

Convert a hardware timestamp to the internal tmv_t representation at
the earliest possible oppor...

29a99ad5134836ea6e304f2371529461f154cf79 authored almost 7 years ago
clock: Remove open-coded conversion of struct timespec

The function clock_check_ts() performs open-coded manipulation of a
struct timespec instead of u...

c9f3fad780b9d916de880baddef48b0a7132cc76 authored almost 7 years ago
port: Match calling convention for tmv_to_Timestamp()

The function ts_to_timestamp() currently performs open-coded
manipulation of a struct timespec a...

5a23ccddf614a32cf7675c16499e496f3f8eadf3 authored almost 7 years ago
tmv: Add a method to convert to a struct Timestamp.

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
util: Relocate utility functions from pmc.c.

The file, pmc.c, contains utility functions for printing out a port address
structure. We will ...

0483bf49729f9fcc3be0527c3e924c950b7e3734 authored almost 7 years ago
Add a configuration file option to enable the NetSync Monitor protocol.

Signed-off-by: Richard Cochran <[email protected]>

d89d26d618c614e7f991e636cbf140d204b4f5b8 authored almost 7 years ago
tlv: Introduce the NetSync Monitor TLVs.

This patch adds support for packing and unpacking the NSM TLVs. In
addition, it introduces macr...

3a264e6eec27d5dd1458aa4fbb205cf5a8a71cb2 authored almost 7 years ago
port: Introduce unicast sync messages.

The port will need to send unicast Sync messages in order to support
the NSM protocol. Besides ...

b0d9c9600a02ddf6805cfe9c804d2c8a09ef0d1e authored almost 7 years ago
port: Implement the NetSync Monitor protocol.

When NSM is enabled on a given port, that port always replies to a NSM
delay request with a dela...

61e57e9fca62e4699f14728ab02614b53a83980c authored almost 7 years ago
nsm: Implement the NetSync Monitor query.

This patch adds a new "NSM" program. The new code handles only one
outstanding NSM command at a...

ab8dc20cf793e29f16f44287caf5654904d15336 authored almost 7 years ago
clock: Introduce a method to obtain the last synchronization time.

The NetSync Monitor protocol will require us to report the time stamp of
the last synchronizatio...

36550e415cbfdbb23b25e65fba35a9074c80ec0d authored almost 7 years ago
pmc: Convert to the API for appending TLVs on the transmit path.

Signed-off-by: Richard Cochran <[email protected]>

b6fa8e20eea7a1366d8f3e991c062ac101c7e44e authored almost 7 years ago
msg: Remove the 'last_tlv' field.

All users have been converted to the TLV list, so remove the field.

Signed-off-by: Richard Coch...

ecb5fa8ffbc13ea8bddc055d6c37c203f3504ba8 authored almost 7 years ago
msg: Allow tacking a TLV onto a delay request message.

This will be needed in order to support the NetSync Monitor protocol.

Signed-off-by: Richard Co...

9d48046e95231abe65362de10d014543d4bbcb71 authored almost 7 years ago
clock: Introduce a method to get the current dataset.

As part of the NetSync Monitor protocol, the port will need to have
access to the current data s...

fb2c979182d8370ecc4d3232ab05e5560df9e8c2 authored almost 7 years ago
port: Accept multiple TLVs on receive.

Path trace TLVs and Follow-Up info TLVs might be mixed in among other
random TLVs. This patch f...

a003b4c36e8ae80d7ff9576dc7b17f8f47793f91 authored almost 7 years ago
pmc: Remove unused parameter.

The third parameter of the function, pmc_send(), is never used. This patch
removes it.

Signed-...

e09d3a4aea86ee2905e0384e6c04b1b6c10194ae authored almost 7 years ago
msg: Use the TLV list on transmit.

Now that the list is in place and is used on all transmit paths, simply
iterate through the list...

a061256bbda768e73d96b6c178d7da1e3f10ad15 authored almost 7 years ago
port: Convert to the API for appending TLVs on the transmit path.

The current code uses an ad hoc method of appending TLVs. When
constructing a message, the code...

e0005dac945cf012b2ccb7549aee9684f073d9ce authored almost 7 years ago
msg: Introduce method for appending multiple TLVs on transmit.

In order to support multiple TLVs, the transmit code must be able to
append one TLV after anothe...

4a8877f9046210291e83d2a939527b2505808c8c authored almost 7 years ago
msg: Populate the TLV list on receive.

This patch changes the receive message parsing code to place each TLV
into the list. A method i...

7fe69e7ba0c3bdce88d3a89d5ed43d0b382ef022 authored almost 7 years ago
msg: Allow zero length TLVs.

The NetSync Monitor protocol features a TLV with a length of zero.
Our input message parsing ass...

613f0059965239e5452a0507f06d92482bdf55b4 authored almost 7 years ago
msg: Introduce a TLV list.

In order to support multiple TLVs per message, a list is needed.
This patch adds the list to the...

22b894b687760a24c8705749753c411a5d6fb4a5 authored almost 7 years ago
tlv: Implement a memory pool for TLV descriptors.

Signed-off-by: Richard Cochran <[email protected]>

c8d9d05e7a3b7b30dae6dd4bea0925162c8d8e33 authored almost 7 years ago
tmv: Convert tmv_t to a non-scalar type

Enforce the use of the tmv_t wrapper functions by converting tmv_t
from an int64_t to a struct c...

d432cdc52afd81c24b8e107afd6e14f8f34daf32 authored almost 7 years ago
clock: Pass floating point values to stats_add_value()

Use tmv_dbl() to obtain the floating point value passed to
stats_add_value() rather than relying...

759f3f40191f404834c81dcc4d47b29f2e92fc06 authored almost 7 years ago
tmv: Add tmv_sign()

The sign of time values is tested in tsproc.c. Add an abstraction
tmv_sign() to return the sign...

ffc5b93f95850bd753c33009f0457aa11197f498 authored almost 7 years ago
tmv: Add missing uses of tmv_zero()

Signed-off-by: Michael Brown <[email protected]>

288810bb3679dc1b4775024b2a2b0b22e79ca0d6 authored almost 7 years ago
tmv: Add missing uses of tmv_dbl()

Signed-off-by: Michael Brown <[email protected]>

12c9805eaba640e523ab0d7258d45a461f048bfe authored almost 7 years ago
tmv: Add missing uses of tmv_is_zero()

Signed-off-by: Michael Brown <[email protected]>

5df2779ef00d009a18381434c6c46e3af245486f authored almost 7 years ago
tmv: Generalise tmv_eq() to tmv_cmp()

Time values are compared using an inequality test in mmedian.c
Generalise tmv_eq() to tmv_cmp() ...

1b7ff890beefad3fa0fce345b79e2183fcf6176c authored almost 7 years ago
tmv: Add missing uses of tmv_to_nanoseconds()

Signed-off-by: Michael Brown <[email protected]>

ea82ae6c284f2aa7848029958768e694cdefe8d4 authored almost 7 years ago
port: Fix coding style.

We always but braces around 'if' blocks.

Signed-off-by: Richard Cochran <[email protected]>

d34d253fb47e30a97b920a67739c1877be33760c authored almost 7 years ago
pmc: Add missing break in switch/case.

Signed-off-by: Richard Cochran <[email protected]>

8ecdedaa69bd4045a3fe6ee82e3f097670e19487 authored almost 7 years ago
tlv: Fix coding style.

We are programming C, not Java, and so opening braces of a function
belong on a line all by them...

8982ef9c4076c314db487f65210332e010938f3a authored almost 7 years ago
clock: Simplify management response logic.

The code uses a local variable for program flow control in a silly way.
This patch simplifies th...

4a39103c74fc938af66a905127c69e274d1660aa authored almost 7 years ago
pmc: Fix white space errors.

We indent with tabs, not spaces.

Signed-off-by: Richard Cochran <[email protected]>

201abc9b95f0342ab94790a750bdfe82930eae33 authored almost 7 years ago
clock: Fix coding style.

3870bc1c5bac318c32908d4f25056c3f9bc7346f authored almost 7 years ago
port: Simplify management response logic.

The code uses a local variable for program flow control in a silly way.
This patch simplifies th...

2d25209993b878bf2e82a199b7d5fd0766454b41 authored almost 7 years ago
raw: Fix valgrind setsockopt warning.

Valgrind is nagging us, saying we pass uninitialized data through a
setsockopt() call. This pat...

b01e84af986920d34199a68eb10b878d5f85d424 authored almost 7 years ago
msg: Share a static global more globally.

Any code that wants to call one_step() needs to link with the static
global 'assume_two_step'. ...

ae28894814fd84d97e2c04acacb8c0e1f7642891 authored almost 7 years ago
port: Clean up coding style.

Re-arrange local variables into a more legible reverse Christmas tree.

Signed-off-by: Richard C...

0a726b4390b030db2b22fa533c815588a0374dbb authored almost 7 years ago
Introduce an option to ignore the transport specific field.

Up until now the transportSpecific field has been treated according to
802.1AS, namely as a fiel...

99fd08425371b3112413c4baa4bc9542fbc02d0d authored almost 7 years ago
sk: turn warnings about unexpected RX filter into debug messages.

When a network interface doesn't support the most specific PTP filter
(e.g. it can timestamp eit...

bd5f3d09e77139193b04afd2fbf1744f80d79993 authored almost 7 years ago
clock: add option to specify initial path delay.

This option allows the clock to be updated before the path delay is
measured in order to speed u...

4b957cf566d7119e2634fa6a4b90fa06dc5ff5f3 authored almost 7 years ago
port: update timeout after changing logMinDelayReqInterval.

When the minimum delay request interval is changed after processing a
delay response, update the...

16e9abceee3d2b4ca8f20c8172dc7b3a9797340f authored almost 7 years ago
clock: Don't forward management requests to UDS port.

The UDS port is not expected to be used by PTP clocks and forwarding of
management messages to t...

303b08cbf55096aba55bd08a314e0701e5c33482 authored about 7 years ago
Add an acknowledgment in the readme for Meinberg.

Signed-off-by: Richard Cochran <[email protected]>

dacf9dcd240e3e357ea7d26e710dc7c80de09de7 authored about 7 years ago
phc2sys: update '-s' option

Add description about bond interface.

Signed-off-by: Hangbin Liu <[email protected]>

5ce04f9bf366c6d62db5344a6553f87a99ea52ff authored over 7 years ago
sk: don't leak socket when reading of IB GUID fails.

Signed-off-by: Miroslav Lichvar <[email protected]>

18daeb6b263b90cf1a3ebb790df4ca60d930799c authored over 7 years ago
Add compile time sanity check for interface name lengths.

Because our interfaces include UNIX domain sockets, we are using
UNIX_PATH_MAX of 108 bytes for ...

20a229e16837578c113b95cbb204a6223fe11431 authored over 7 years ago
phc_ctl: fix adj command to accept negative offset.

When parsing the argument, the minimum value should be -DBL_MAX instead
of DBL_MIN, which is the...

d513ecac9c239c3a2c84f87db23f884cda6b6a2d authored over 7 years ago
phc2sys: re-create clock clkid and servo when phc index changed

When the clock device or phc index changed, the new phc device may have
different maximum adjust...

8a349e557c653d24b04b0545e2f179080e10731f authored over 7 years ago
rtnl: update rtgenmsg to ifinfomsg when request link info

The previous function use general message and will dump all interfaces'
information. Now update ...

05bba46198cfc4ccfe0aff2e67e76d78898bbd96 authored over 7 years ago
phc2sys: split servo_add from function clock_add

We also need this part in clock_reinit() later. So split it out of
function clock_add().

Signed...

cb53238d5d1a1b9319536b4df1edf237e428d931 authored over 7 years ago
ptp4l: use ts label to get ts info

Now the ts label will be either the bond active slave or the interface
name, which is the exactl...

536a71031d5c7689fd186ff550dc11cf743e02cb authored over 7 years ago
rtnl: update function rtnl_link_status to get bond slave info

Update function rtnl_link_status to get bond slave info. Pass the slave index
to call back funct...

80bc4d4c2f4d1c3c246091aa6f103bb7943202ec authored over 7 years ago
port: return timestamping iface in port properties

Signed-off-by: Hangbin Liu <[email protected]>

7092db303028d84574138c8199375dfde0b4e232 authored over 7 years ago
clock: add clock_required_modes to obtain the required time stamping mode

Separate required_modes setting from clock_create so we can obtain the
required time stamping fl...

1440f093847a79d0e80ea6b4bca011ddd87090d0 authored over 7 years ago
port: update port link_status to enum

Besides link up and down, we may also receive other rtnl messages, like
bond slave changed info,...

b65b1d5f3b5d8e85e47e9cf19c2e5aa6dc2ebd77 authored over 7 years ago
rtnl: add function rtnl_get_ts_label to get interface ts_label info

Signed-off-by: Hangbin Liu <[email protected]>

6d1e2a62bdb4f6353e3a9006f2d603031f4648e6 authored over 7 years ago
port: track interface info in port

Signed-off-by: Hangbin Liu <[email protected]>

7e294a4d047654f746c3fcdff7bce512be149e37 authored over 7 years ago
transport: pass struct interface to transport_open

Pass struct interface so we can use ts_iface in HW filter.

Signed-off-by: Hangbin Liu <liuhangb...

8923bcdf64c0c95bac7af977b867393bae69e7a1 authored over 7 years ago
config: add new element ts_label in struct interface

Add new element ts_label in struct interface to track real ts interface.

Signed-off-by: Hangbin...

9e744d9e8a2dab6ec0ea5ece5ac25e7384264575 authored over 7 years ago
phc2sys: fix handling of multiple state changes.

When the master clock changed its state and then changed it back to the
original state before ph...

17c9787b1d6891636b5be9e4e5a08278b44e9a7a authored over 7 years ago
Latch the UTC offset.

When acting as a slave, we accept the foreign master's advertised
TAI-UTC offset for as long as ...

fa575b60f6a9757bca8f2828e23633560d57bac3 authored over 7 years ago
Remove redundant test on the UTC flags.

Now that we test the UTC flags in clock_update_slave(), the similar
code in clock_utc_correct() ...

14a97dc5da47bd532f14109d7d381d5f33a77b0b authored over 7 years ago
Simplify UTC tracking.

The clock code uses two different variables to store the TAI-UTC
offset. One variable represent...

97e424236178e509e2b2cbe6a54534849fe4d77b authored over 7 years ago
ptp4l: Add IPoIB interface support for ptp4l

The current implementation of ptp4l always assumes 6 octets MAC
address, which is correct for Et...

7546434030d456b13b2eda6138f183ac3bf29751 authored over 7 years ago
rtnl: replace obsolete RTMGRP_LINK with RTNLGRP_LINK for nl groups

Signed-off-by: Hangbin Liu <[email protected]>

17aa750a49ebaecfc7b063c770aa8d36f5078b2c authored over 7 years ago
port: add FD_RTNL event to track per-port status

With rtnl socket we can track link status per port(except UDS port).

We can make sure we get th...

c149a3dbc1b38e833de783ae863038562baca0fe authored over 7 years ago
clock: remove hash table index2port

Remove index2port since we don't need it now.

Signed-off-by: Hangbin Liu <[email protected]>

7c3f9579f0c230ee798644a26d664ebd3efc612f authored over 7 years ago
clock: remove rtnl fd on clock

Remove rtnl fd on clock since we track the link status per port now.

Signed-off-by: Hangbin Liu...

25ec8a3b4e2222b394794ff830bd3583e9cf6c71 authored over 7 years ago
phc2sys: free clock device when exit

Since we called strdup() for clock device, we need free the memory
before exit.

Signed-off-by: ...

46cc187e82874423f3a0940d8b12c191f7455a1a authored over 7 years ago
phc2sys: Add described device to stats output

When phc2sys synced more than one ethernet interface, such as in a JBOD
boundary clock arrangeme...

6b18e12b9ba5d5409c6dbbbdcccc43124413fe58 authored over 7 years ago
added workaround for ticks being returned as zero from 2.6.32 kernel.

Signed-off-by: Brian Olson <[email protected]>

7c6a9862fd7c6e49350aaf527194603930b10ca2 authored over 7 years ago
fixed include order to work around issue on RHEL 6.6

[ RC: Added comment explaining the ordering requirements. ]

Signed-off-by: Brian Olson <brian@a...

ae28f5295fc22ff5f65533d1cbbf8d2e29e48ebc authored over 7 years ago
Fix build when using uClinux.

Unfortunately uClinux is rather inconsistent with respect to
clock_nanosleep(). Older versions ...

97c351cafd7327fd28047580c9e2528a6f7e742b authored over 7 years ago
pmc: goto out when get unknown management tlv

If handle unknown management tlv. The management message id and format are
also unknown, thus we...

95b5a13cb2787b6a436ad395bb4931d1661e59a7 authored over 7 years ago
pmc: optimize duplicated code in do_set_action()

TLV_PRIORITY1 and TLV_PRIORITY2 cases in do_set_action() use the same repeated
piece of generic ...

a216b11ce51a199ef48b2a44983a1cc8eca5be2e authored over 7 years ago
clock: Fix poor snprintf() handling.

The calls to snprintf() to format /dev/phc%d use the wrong pattern.
That function always properl...

78d2a32a94ec50de04bf7ccbbe32e92ecccdc415 authored over 7 years ago
Merge 'tsproc' branch allowing clock synch. after jump.

Signed-off-by: Richard Cochran <[email protected]>

6558bade7c4a6bd57392d75256240f3dc08301cc authored over 7 years ago
Fix detection of clock_adjtime

On some platforms clock_adjtime is defined in timex.h instead of time.h
Due to this fact the det...

0efc3a97f551b91eddefa1ded68afc6857809620 authored over 7 years ago
Remove conflicting netinet/ether.h

On some platforms like br-arm-cortex-a9-musl struct ethhdr was defined twice
due to including of...

c7837b9a298ba40b776242b090d6a1415d414488 authored over 7 years ago
util: Fix unknown time_t types with musl-libc builds

Fixes the following build errors seen with musl-libc:

In file included from print.h:25:0,
...

159eb5ff116816287ad81e4db0fbf47f4a7b5f33 authored over 7 years ago
msg: use last_tlv if there is not enough room for another tlv

If the len is not enought for another tlv process. e.g. one more bytes
padding at the end of mes...

43b2f5d1207a010f1df67e101b129b09502371e2 authored over 7 years ago
udp: Avoid including netdb.h

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
tsproc: Clarify the internal mode handling.

The time stamp processor features four modes resulting from the
combination of two independent B...

a0cbeb736750105b630ae54b599adac9b21f0e56 authored almost 8 years ago
tsproc: Allow clock synchronization immediately after jump.

After a servo jump, the call to tsproc_reset() clears tsp->t3. This
causes the next call to tsp...

2d5d8a039518ec5901148f7c2d186f48af542079 authored almost 8 years ago
tsproc: Track the validity of the filtered delay explicitly.

We will want to test whether a valid filtered delay value has been
calculated or not. However, ...

74ab3b3728d9d261f9e86dfdf43c5cbff0abcd58 authored almost 8 years ago
port: sequence of nrate and peer_delay calculation

The sequence of port_nrate_calculate() and tsproc_update_delay()
in port_peer_delay() is mixed u...

d1bb9ecbd5a77cdb8d93accfa8c1bbf705002de0 authored almost 8 years ago
servo: NULL pointer check for servo constructors

The servo constructors might return a NULL pointer.
The function servo_create() uses servo witho...

7e1ccac8f8fbd6e6df5c96aae64ee8dea954b5aa authored almost 8 years ago
phc2sys: don't synchronize clock to itself.

When ptp4l is using multiple interfaces sharing the same clock, phc2sys
in the automatic mode sh...

ac92a711614c413b75a4963eab95cd1aa2de8293 authored almost 8 years ago
Fix leaks of sockets on errors.

Signed-off-by: Miroslav Lichvar <[email protected]>

8deb52a849cb1b7479ddda1065cbba7c83fd13c4 authored almost 8 years ago
clock: Force a BMC election when a port link goes down.

Having one fewer port may affect the result of the BMCA. This patch
changes the main loop so th...

73318c5b99571c8da01474ad665e2e2e06ab12bb authored almost 8 years ago
port: Change port_dispatch() into a void function.

This global function used to return an error code, but now it always
returns zero. This patch c...

6b471d45edfdfa835a9115ce4be96d92f100e2ac authored almost 8 years ago
timemaster: tag ptp4l and phc2sys messages.

Use the new options of ptp4l and phc2sys to tag their log messages with
the PTP domain number an...

e54158195b1eadfdb6275646bc3dfb7611dba5b6 authored almost 8 years ago
timemaster: check support for SW time stamping.

When an interface doesn't support HW time stamping, before falling back
to SW time stamping, che...

117ed5c2d0f865894dd930d877f0ec28bc23d951 authored almost 8 years ago