Richard Cochran
2016-04-09 19:31:31 UTC
This is the second (and last) series in preparation for a Transparent
Clock implementation.
Patches 1-3 and 5 make minor changes in the clock interface.
Patches 4 and 7 move blocks of clock initialization logic out of
ptp4l.c:main() and into clock.c:clock_create().
Patch 6 follows up on patch 2 and lets the caller of clock_create
specify the desired type of clock. Currently we have only OC and BC,
but later on, we will add TC support.
Review and comments are welcome.
Thanks,
Richard
Richard Cochran (7):
Move the clock type enumeration into the clock header.
clock: offer a method to get the type rather than the number of ports.
clock: offer a method to get the first port in the list.
Perform the time stamping mode check in the clock module.
config: count the interfaces as they are added.
clock: specify type at creation time.
Let the clock code figure the PHC index.
clock.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
clock.h | 29 ++++++++++++++++++-----
config.c | 2 ++
config.h | 1 +
port.c | 7 +-----
ptp4l.c | 64 +++-----------------------------------------------
tlv.h | 8 -------
7 files changed, 106 insertions(+), 86 deletions(-)
Clock implementation.
Patches 1-3 and 5 make minor changes in the clock interface.
Patches 4 and 7 move blocks of clock initialization logic out of
ptp4l.c:main() and into clock.c:clock_create().
Patch 6 follows up on patch 2 and lets the caller of clock_create
specify the desired type of clock. Currently we have only OC and BC,
but later on, we will add TC support.
Review and comments are welcome.
Thanks,
Richard
Richard Cochran (7):
Move the clock type enumeration into the clock header.
clock: offer a method to get the type rather than the number of ports.
clock: offer a method to get the first port in the list.
Perform the time stamping mode check in the clock module.
config: count the interfaces as they are added.
clock: specify type at creation time.
Let the clock code figure the PHC index.
clock.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
clock.h | 29 ++++++++++++++++++-----
config.c | 2 ++
config.h | 1 +
port.c | 7 +-----
ptp4l.c | 64 +++-----------------------------------------------
tlv.h | 8 -------
7 files changed, 106 insertions(+), 86 deletions(-)
--
2.1.4
2.1.4