[Linuxptp-devel] [PATCH RFC v3 17/69] config: convert 'logging_level' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 10 +- config.h | 2 -- ptp4l.c | 9 - 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/config.c b/config.c index 08508be..143d9db 100644 --- a/config.c +++ b/config.c @@ -94,6 +94,7 @@ struct

[Linuxptp-devel] [PATCH RFC v3 24/69] config: convert 'pi_proportional_norm_max' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 7 +-- config.h | 1 - pi.c | 8 pi.h | 7 --- ptp4l.c | 1 - 5 files changed, 5 insertions(+), 19 deletions(-) diff --git a/config.c b/config.c index 43f96fe..5775272 100644 --- a/config.c +++

[Linuxptp-devel] [PATCH RFC v3 04/69] transport: store the configuration in the transport data structure.

2015-08-16 Thread Richard Cochran
This will allow modules to read out various user options. Signed-off-by: Richard Cochran richardcoch...@gmail.com --- pmc_common.c| 2 +- port.c | 3 ++- transport.c | 7 +-- transport.h | 6 +- transport_private.h | 1 + 5 files changed, 14

[Linuxptp-devel] [PATCH RFC v3 23/69] config: convert 'pi_proportional_exponent' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 7 +-- config.h | 1 - pi.c | 6 +++--- pi.h | 7 --- ptp4l.c | 1 - 5 files changed, 4 insertions(+), 18 deletions(-) diff --git a/config.c b/config.c index 07cb016..43f96fe 100644 --- a/config.c +++

[Linuxptp-devel] [PATCH RFC v3 27/69] config: convert 'pi_integral_norm_max' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 8 +--- config.h | 1 - pi.c | 10 -- pi.h | 7 --- ptp4l.c | 1 - 5 files changed, 5 insertions(+), 22 deletions(-) diff --git a/config.c b/config.c index 2f184dd..1ae564f 100644 --- a/config.c

[Linuxptp-devel] [PATCH RFC v3 43/69] config: port: convert 'egressLatency' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 9 ++--- ds.h | 1 - port.c | 6 -- ptp4l.c | 1 - 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/config.c b/config.c index a4282f8..20a0d89 100644 --- a/config.c +++ b/config.c @@ -95,6 +95,7

[Linuxptp-devel] [PATCH RFC v3 15/69] config: convert the 'first_step_threshold' option to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 7 +-- config.h | 1 - phc2sys.c | 5 +++-- ptp4l.c | 1 - servo.c | 5 - servo.h | 9 - 6 files changed, 8 insertions(+), 20 deletions(-) diff --git a/config.c b/config.c index 6732b23..d539a5b 100644

[Linuxptp-devel] [PATCH RFC v3 41/69] config: port: convert 'neighborPropDelayThresh' to new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 11 ++- ds.h | 1 - port.c | 2 +- ptp4l.c | 3 --- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/config.c b/config.c index 4c5182e..d8ce1e2 100644 --- a/config.c +++ b/config.c @@ -104,6

[Linuxptp-devel] [PATCH RFC v3 36/69] config: prot: convert 'transportSpecific' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 9 ++--- ds.h | 1 - port.c | 3 ++- ptp4l.c | 1 - 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index c17ab73..2c97002 100644 --- a/config.c +++ b/config.c @@ -113,6 +113,7 @@

[Linuxptp-devel] [PATCH RFC v3 32/69] config: port: convert 'logMinDelayReqInterval' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 9 ++--- ds.h | 1 - port.c | 2 +- ptp4l.c | 1 - 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index 0cd26e2..56a86e9 100644 --- a/config.c +++ b/config.c @@ -96,6 +96,7 @@

[Linuxptp-devel] [PATCH RFC v3 37/69] port: change 'announce_span' into a macro.

2015-08-16 Thread Richard Cochran
This probably should not have been a variable in the first place. Signed-off-by: Richard Cochran richardcoch...@gmail.com --- ds.h| 1 - port.c | 3 ++- ptp4l.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ds.h b/ds.h index f9a5d7b..d30c418 100644 --- a/ds.h +++

[Linuxptp-devel] [PATCH RFC v3 31/69] config: port: convert 'logSyncInterval' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 9 ++--- ds.h | 1 - port.c | 2 +- ptp4l.c | 1 - 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index 4ebe1b8..0cd26e2 100644 --- a/config.c +++ b/config.c @@ -96,6 +96,7 @@

[Linuxptp-devel] [PATCH RFC v3 19/69] config: convert 'verbose' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 8 +--- config.h | 3 --- ptp4l.c | 7 ++- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/config.c b/config.c index 90d7659..b649cf0 100644 --- a/config.c +++ b/config.c @@ -100,6 +100,7 @@ struct

[Linuxptp-devel] [PATCH RFC v3 00/69] New configuration implementation

2015-08-16 Thread Richard Cochran
Changes in V3: - Reduced interface to two types, double and int (enums are accessed like ints) - Converted almost everything Changes in V2: - API is much simpler to use - numerous details in the implementation have been improved - half dozen legacy options converted The diffstat over the

[Linuxptp-devel] [PATCH RFC v3 30/69] config: port: convert 'logAnnounceInterval' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 9 ++--- ds.h | 1 - port.c | 3 ++- ptp4l.c | 1 - 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index 678471a..4ebe1b8 100644 --- a/config.c +++ b/config.c @@ -95,6 +95,7 @@

[Linuxptp-devel] [PATCH RFC v3 21/69] config: convert 'pi_integral_const' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 7 +-- config.h | 1 - phc2sys.c | 7 --- pi.c | 7 --- pi.h | 6 -- ptp4l.c | 1 - 6 files changed, 9 insertions(+), 20 deletions(-) diff --git a/config.c b/config.c index 3bd98da..2437ec0

[Linuxptp-devel] [PATCH RFC v3 46/69] config: clock, port: convert 'boundary_clock_jbod' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 15 +-- config.h | 1 - ds.h | 1 - port.c | 4 ++-- ptp4l.c | 1 - 5 files changed, 3 insertions(+), 19 deletions(-) diff --git a/config.c b/config.c index f9d5777..d0451e3 100644 --- a/config.c +++

[Linuxptp-devel] [PATCH RFC v3 22/69] config: convert 'pi_proportional_scale' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 7 +-- config.h | 1 - pi.c | 13 +++-- pi.h | 8 ptp4l.c | 1 - 5 files changed, 8 insertions(+), 22 deletions(-) diff --git a/config.c b/config.c index 2437ec0..07cb016 100644 ---

[Linuxptp-devel] [PATCH RFC v3 35/69] config: port: convert 'syncReceiptTimeout' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 9 ++--- ds.h | 1 - port.c | 2 +- ptp4l.c | 1 - 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index 6401e44..c17ab73 100644 --- a/config.c +++ b/config.c @@ -112,6 +112,7 @@

[Linuxptp-devel] [PATCH RFC v3 49/69] config: convert 'summary_interval' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 2 +- config.c | 7 +-- ds.h | 1 - ptp4l.c | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/clock.c b/clock.c index f31ae42..c64fdaa 100644 --- a/clock.c +++ b/clock.c @@ -882,7 +882,7 @@ struct

[Linuxptp-devel] [PATCH RFC v3 40/69] config: clock, port: convert 'freq_est_interval' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 2 +- config.c | 8 +--- ds.h | 2 -- port.c | 4 +++- ptp4l.c | 2 -- 5 files changed, 5 insertions(+), 13 deletions(-) diff --git a/clock.c b/clock.c index 8a5ef05..0856f81 100644 --- a/clock.c +++ b/clock.c @@

[Linuxptp-devel] [PATCH RFC v3 13/69] config: add methods to set values taken from the command line.

2015-08-16 Thread Richard Cochran
This patch adds functions that will set and lock a certain value. The intended use of these methods is to give command line options priority over the configuration file. Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 50 ++

[Linuxptp-devel] [PATCH RFC v3 33/69] config: port: convert 'logMinPdelayReqInterval' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 9 ++--- ds.h | 1 - port.c | 2 +- ptp4l.c | 1 - 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index 56a86e9..833d894 100644 --- a/config.c +++ b/config.c @@ -97,6 +97,7 @@

[Linuxptp-devel] [PATCH RFC v3 29/69] config: port: convert 'delayAsymmetry' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 9 ++--- ds.h | 1 - port.c | 11 +++ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/config.c b/config.c index c1d5aeb..678471a 100644 --- a/config.c +++ b/config.c @@ -93,6 +93,7 @@ struct

[Linuxptp-devel] [PATCH RFC v3 18/69] config: convert 'use_syslog' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 8 +--- config.h | 2 -- ptp4l.c | 6 ++ 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/config.c b/config.c index 143d9db..90d7659 100644 --- a/config.c +++ b/config.c @@ -99,6 +99,7 @@ struct

[Linuxptp-devel] [PATCH RFC v3 65/69] config: convert 'tsproc_mode' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 3 ++- config.c | 35 ++- config.h | 1 - ds.h | 1 - port.c | 2 +- ptp4l.c | 1 - 6 files changed, 13 insertions(+), 30 deletions(-) diff --git a/clock.c b/clock.c index

[Linuxptp-devel] [PATCH RFC v3 10/69] config: convert 'tx_timestamp_timeout' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 7 +-- config.h | 1 - ptp4l.c | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c index 871e277..ad398c1 100644 --- a/config.c +++ b/config.c @@ -78,6 +78,7 @@ struct config_item {

[Linuxptp-devel] [PATCH RFC v3 52/69] config: convert 'timeSource' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 2 +- config.c | 7 +-- ds.h | 1 - ptp4l.c | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/clock.c b/clock.c index ee20a3c..ab048f5 100644 --- a/clock.c +++ b/clock.c @@ -830,7 +830,7 @@ struct

[Linuxptp-devel] [PATCH RFC v3 02/69] clock: add a method to obtain the configuration.

2015-08-16 Thread Richard Cochran
This function allows the ports to read configuration variables without changing the port method signatures. Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 5 + clock.h | 7 +++ 2 files changed, 12 insertions(+) diff --git a/clock.c b/clock.c index 1569108..a47e1e9

[Linuxptp-devel] [PATCH RFC v3 48/69] config: convert 'gmCapable' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 2 +- config.c | 7 +-- ds.h | 1 - ptp4l.c | 5 ++--- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/clock.c b/clock.c index 8c20d64..f31ae42 100644 --- a/clock.c +++ b/clock.c @@ -826,7 +826,7 @@

[Linuxptp-devel] [PATCH RFC v3 53/69] config: convert the fault interval options to the new scheme.

2015-08-16 Thread Richard Cochran
This conversion is not straightforward due to the fact that these options can take a value of ASAP or a number. We check for the special ASAP case in a helper function and leave the numbers to the generic code. Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 66

[Linuxptp-devel] [PATCH RFC v3 45/69] config: port: convert 'delay_filter_length' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 6 -- config.c | 14 +- config.h | 1 - ds.h | 1 - port.c | 2 +- ptp4l.c | 1 - 6 files changed, 6 insertions(+), 19 deletions(-) diff --git a/clock.c b/clock.c index 0856f81..73cf016 100644 ---

[Linuxptp-devel] [PATCH RFC v3 69/69] ptp4l: set print levels earlier.

2015-08-16 Thread Richard Cochran
Now we have debug messages in the configuration code. Therefore set up the print levels immediately after parsing the command line and the file, so that those messages have a chance to be seen. Signed-off-by: Richard Cochran richardcoch...@gmail.com --- ptp4l.c | 10 +- 1 file changed,

[Linuxptp-devel] [PATCH RFC v3 61/69] config: convert 'domainNumber' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 12 ++-- ptp4l.c | 5 ++--- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/config.c b/config.c index afb3879..3f4014c 100644 --- a/config.c +++ b/config.c @@ -99,6 +99,7 @@ struct config_item

[Linuxptp-devel] [PATCH RFC v3 64/69] config: convert 'delay_mechanism' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 33 + config.h | 4 port.c | 2 +- ptp4l.c | 14 ++ 4 files changed, 16 insertions(+), 37 deletions(-) diff --git a/config.c b/config.c index 66d6954..3fce7d2 100644 ---

[Linuxptp-devel] [PATCH RFC v3 54/69] config: remove the 'port_defaults' structure.

2015-08-16 Thread Richard Cochran
This definition is now empty and can serve no purpose any more. Signed-off-by: Richard Cochran richardcoch...@gmail.com --- config.c | 3 --- config.h | 2 -- ds.h | 3 --- port.c | 2 -- 4 files changed, 10 deletions(-) diff --git a/config.c b/config.c index ee91a40..e1eac73 100644 ---

[Linuxptp-devel] [PATCH RFC v3 68/69] config: convert 'clock_servo' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 3 ++- clock.h | 3 +-- config.c | 21 + config.h | 2 -- ptp4l.c | 7 ++- 5 files changed, 14 insertions(+), 22 deletions(-) diff --git a/clock.c b/clock.c index 112d0a2..320a84c 100644 ---

[Linuxptp-devel] [PATCH RFC v3 67/69] config: convert 'time_stamping' to the new scheme.

2015-08-16 Thread Richard Cochran
Signed-off-by: Richard Cochran richardcoch...@gmail.com --- clock.c | 3 ++- clock.h | 2 -- config.c | 22 +- config.h | 6 -- ptp4l.c | 29 + 5 files changed, 24 insertions(+), 38 deletions(-) diff --git a/clock.c b/clock.c index