[Linuxptp-devel] [PATCH RFC v4 56/69] config: convert 'slaveOnly' and 'twoStepFlag' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 29 + config.h | 1 - ptp4l.c | 14 +++--- 3 files changed, 16 insertions(+), 28 deletions(-) diff --git a/config.c b/config.c index 1c4421b..87d944f 100644 --- a/config.c +++ b/config.c @@ -126,11 +126,13

[Linuxptp-devel] [PATCH RFC v4 26/69] config: convert 'pi_integral_exponent' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - pi.c | 8 +--- pi.h | 7 --- ptp4l.c | 1 - 5 files changed, 6 insertions(+), 18 deletions(-) diff --git a/config.c b/config.c index fc7dd23..2f184dd 100644 --- a/config.c +++ b/config.c @@ -97,6 +97,7

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 config_tab

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

2015-08-20 Thread Richard Cochran
This will allow modules to read out various user options. Signed-off-by: Richard Cochran --- pmc_common.c| 2 +- port.c | 3 ++- transport.c | 7 +-- transport.h | 6 +- transport_private.h | 1 + 5 files changed, 14 insertions(+), 5 deletions

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 { struct config_item

[Linuxptp-devel] [PATCH RFC v4 16/69] config: convert the 'max_frequency' option to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 2 -- ptp4l.c | 2 -- servo.c | 4 ++-- servo.h | 6 -- 5 files changed, 3 insertions(+), 18 deletions(-) diff --git a/config.c b/config.c index d539a5b..08508be 100644 --- a/config.c +++ b/config.c @@ -94,6 +94,7

[Linuxptp-devel] [PATCH RFC v4 06/69] config: Add a hash table into the data structure.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 11 +++ config.h | 4 2 files changed, 15 insertions(+) diff --git a/config.c b/config.c index 934caa2..9ef8be1 100644 --- a/config.c +++ b/config.c @@ -24,6 +24,7 @@ #include #include "config.h" #include "eth

[Linuxptp-devel] [PATCH RFC v4 03/69] pmc: require a configuration for creating a PMC instance.

2015-08-20 Thread Richard Cochran
In the near future, the transports will need to consult the configuration database in order to obtain various options. This patch also introduces the idea of a configuration file into the phc2sys and pmc programs. Signed-off-by: Richard Cochran --- phc2sys.c| 10 ++ pmc.c

[Linuxptp-devel] [PATCH RFC v4 14/69] config: convert the 'step_threshold' option to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 21 +++-- config.h | 1 - phc2sys.c | 9 ++--- ptp4l.c | 1 - servo.c | 4 +++- servo.h | 9 - 6 files changed, 24 insertions(+), 21 deletions(-) diff --git a/config.c b/config.c index aa856ad..6732b23 100644

[Linuxptp-devel] [PATCH RFC v4 44/69] config: port: convert 'ingressLatency' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 9 ++--- ds.h | 1 - port.c | 4 +++- ptp4l.c | 4 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/config.c b/config.c index 20a0d89..b3ca2b9 100644 --- a/config.c +++ b/config.c @@ -99,6 +99,7 @@ struct config_item

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 config_item config_tab

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 100644 --- a/config.c +++ b

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

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

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct clock *clock_create

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 +104,7 @@ struct

[Linuxptp-devel] [PATCH RFC v4 34/69] config: port: convert 'announceReceiptTimeout' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 833d894..6401e44 100644 --- a/config.c +++ b/config.c @@ -91,6 +91,7 @@ struct config_item

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

[Linuxptp-devel] [PATCH RFC v4 09/69] config: convert the 'assume_two_step' option to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - ptp4l.c | 5 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c index d3c19e5..871e277 100644 --- a/config.c +++ b/config.c @@ -77,6 +77,7 @@ struct config_item

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 config_item config_tab

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

2015-08-20 Thread Richard Cochran
This definition is now empty and can serve no purpose any more. Signed-off-by: Richard Cochran --- 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 --- a/config.c +++ b/config.c

[Linuxptp-devel] [PATCH RFC v4 25/69] config: convert 'pi_integral_scale' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - pi.c | 14 -- pi.h | 8 ptp4l.c | 1 - 5 files changed, 9 insertions(+), 22 deletions(-) diff --git a/config.c b/config.c index 5775272..fc7dd23 100644 --- a/config.c +++ b/config.c

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

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

[Linuxptp-devel] [PATCH RFC v4 57/69] config: convert 'priority1' and 'priority2' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 16 +++- ptp4l.c | 4 ++-- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/config.c b/config.c index 87d944f..683eee5 100644 --- a/config.c +++ b/config.c @@ -125,6 +125,8 @@ struct config_item config_tab

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

2015-08-20 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 --- con

[Linuxptp-devel] [PATCH RFC v4 66/69] config: convert 'delay_filter' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- clock.c | 2 +- config.c | 29 - config.h | 1 - ds.h | 1 - port.c | 2 +- ptp4l.c | 1 - 6 files changed, 10 insertions(+), 26 deletions(-) diff --git a/clock.c b/clock.c index a923915..91ed78d 100644 --- a/clock.c

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 --- a/clock.c +++ b/clock.c

[Linuxptp-devel] [PATCH RFC v4 58/69] config: convert 'clockClass' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- ptp4l.c | 3 ++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/config.c b/config.c index 683eee5..516ce7a 100644 --- a/config.c +++ b/config.c @@ -95,6 +95,7 @@ struct config_item config_tab[] = { GLOB_ITEM_INT

[Linuxptp-devel] [PATCH RFC v4 50/69] config: convert 'kernel_leap' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- clock.c | 2 +- config.c | 7 +-- ds.h | 1 - ptp4l.c | 3 +-- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/clock.c b/clock.c index c64fdaa..1d5e2b6 100644 --- a/clock.c +++ b/clock.c @@ -827,7 +827,7 @@ struct clock *clock_create

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

2015-08-20 Thread Richard Cochran
This probably should not have been a variable in the first place. Signed-off-by: Richard Cochran --- 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 +++ b/ds.h @@ -125,7 +125,6

[Linuxptp-devel] [PATCH RFC v4 42/69] config: port: convert 'min_neighbor_prop_delay' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 9 ++--- ds.h | 1 - port.c | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/config.c b/config.c index d8ce1e2..a4282f8 100644 --- a/config.c +++ b/config.c @@ -104,6 +104,7 @@ struct config_item config_tab

[Linuxptp-devel] [PATCH RFC v4 51/69] config: convert 'sanity_freq_limit' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- clock.c | 6 -- config.c | 7 +-- ds.h | 1 - ptp4l.c | 3 +-- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/clock.c b/clock.c index 1d5e2b6..ee20a3c 100644 --- a/clock.c +++ b/clock.c @@ -810,6 +810,7 @@ struct clock

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

[Linuxptp-devel] [PATCH RFC v4 59/69] config: convert 'clockAccuracy' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- ptp4l.c | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/config.c b/config.c index 516ce7a..e14156b 100644 --- a/config.c +++ b/config.c @@ -95,6 +95,7 @@ struct config_item config_tab[] = { GLOB_ITEM_INT

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 d0298f4..a923915 100644 --- a

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 --- a/config.c +++ b/config.c

[Linuxptp-devel] [PATCH RFC v4 62/69] config: add support for enumerated types with string labels.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/config.c b/config.c index 3f4014c..2e975d5 100644 --- a/config.c +++ b/config.c @@ -37,6 +37,12 @@ enum config_section { enum config_type

[Linuxptp-devel] [PATCH RFC v4 55/69] config: convert 'udp6_scope' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - ptp4l.c | 1 - udp6.c | 5 ++--- udp6.h | 6 -- 5 files changed, 3 insertions(+), 17 deletions(-) diff --git a/config.c b/config.c index e1eac73..1c4421b 100644 --- a/config.c +++ b/config.c @@ -133,6 +133,7

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

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 91ed78d..112d0a2 100644 --- a

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

2015-08-20 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 --- ptp4l.c | 10 +- 1 file changed, 5 insertions(+), 5

[Linuxptp-devel] [PATCH RFC v4 60/69] config: convert 'offsetScaledLogVariance' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- ptp4l.c | 3 ++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/config.c b/config.c index e14156b..afb3879 100644 --- a/config.c +++ b/config.c @@ -118,6 +118,7 @@ struct config_item config_tab[] = { PORT_ITEM_INT

[Linuxptp-devel] [PATCH RFC v4 63/69] config: convert 'network_transport' to the new scheme.

2015-08-20 Thread Richard Cochran
Signed-off-by: Richard Cochran --- clock.c | 5 - config.c | 33 + config.h | 3 --- port.c | 6 -- ptp4l.c | 17 + 5 files changed, 26 insertions(+), 38 deletions(-) diff --git a/clock.c b/clock.c index ab048f5..d0298f4 100644

Re: [Linuxptp-devel] [PATCH RFC v4 07/69] config: introduce a new API for reading configuration settings.

2015-08-21 Thread Richard Cochran
On Thu, Aug 20, 2015 at 10:25:23PM +, Keller, Jacob E wrote: > If I understand this correctly, this means that a user passing a > configuration file missing any option the program reads we will > terminate the whole program instead of selecting the default? No, that is not how it works. The f

Re: [Linuxptp-devel] [PATCH RFC v4 07/69] config: introduce a new API for reading configuration settings.

2015-08-21 Thread Richard Cochran
On Fri, Aug 21, 2015 at 03:42:08PM +, Keller, Jacob E wrote: > So, what happens in the case of a configuration file that is missing a > field? ie: a user provides a configuration file which doesn't have the > item in it? Then the default value from the 'config_tab' table is used. Thanks, Rich

[Linuxptp-devel] [PATCH RFC v4 09/83] config: convert the 'assume_two_step' option to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - ptp4l.c | 5 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c index d3c19e5..871e277 100644 --- a/config.c +++ b/config.c @@ -77,6 +77,7 @@ struct config_item

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

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

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 --- a/config.c +++ b

[Linuxptp-devel] [PATCH RFC v4 06/83] config: Add a hash table into the data structure.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 11 +++ config.h | 4 2 files changed, 15 insertions(+) diff --git a/config.c b/config.c index 934caa2..9ef8be1 100644 --- a/config.c +++ b/config.c @@ -24,6 +24,7 @@ #include #include "config.h" #include "eth

[Linuxptp-devel] [PATCH RFC v4 12/83] servo: store the configuration in the servo data structure.

2015-08-23 Thread Richard Cochran
This will allow removing the code that passes configuration options via global variables. Signed-off-by: Richard Cochran --- clock.c | 4 ++-- phc2sys.c | 3 ++- servo.c | 3 ++- servo.h | 5 - 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/clock.c b/clock.c index

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

2015-08-23 Thread Richard Cochran
This will allow modules to read out various user options. Signed-off-by: Richard Cochran --- pmc_common.c| 2 +- port.c | 3 ++- transport.c | 7 +-- transport.h | 6 +- transport_private.h | 1 + 5 files changed, 14 insertions(+), 5 deletions

[Linuxptp-devel] [PATCH RFC v4 00/83] New configuration implementation

2015-08-23 Thread Richard Cochran
ch 62 adds enumerated types. Patch 69 tweaks ptp4l's logging configuration. Patches 71 and 76 add string parsing utilities. Patches 81 and 82 refactor config.c a bit. Patch 83 finally changes config_init() into config_create(). All the *other* patches convert individual options. Review and

[Linuxptp-devel] [PATCH RFC v4 07/83] config: introduce a new API for reading configuration settings.

2015-08-23 Thread Richard Cochran
include an option for specifying the UDP TTL. Users are required to call 'config_init', and so this patch add that into all three programs, ptp4l, phc2sys and pmc. Signed-off-by: Richard Cochran --- config.c | 245 -- config.h

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

2015-08-23 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 --- config.c | 50 ++ config.h | 11

[Linuxptp-devel] [PATCH RFC v4 14/83] config: convert the 'step_threshold' option to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 21 +++-- config.h | 1 - phc2sys.c | 9 ++--- ptp4l.c | 1 - servo.c | 4 +++- servo.h | 9 - 6 files changed, 24 insertions(+), 21 deletions(-) diff --git a/config.c b/config.c index aa856ad..6732b23 100644

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 { struct config_item

[Linuxptp-devel] [PATCH RFC v4 25/83] config: convert 'pi_integral_scale' to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - pi.c | 14 -- pi.h | 8 ptp4l.c | 1 - 5 files changed, 9 insertions(+), 22 deletions(-) diff --git a/config.c b/config.c index 5775272..fc7dd23 100644 --- a/config.c +++ b/config.c

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 config_item config_tab

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 --- a/config.c +++ b/config.c

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

[Linuxptp-devel] [PATCH RFC v4 20/83] config: convert 'pi_proportional_const' to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - phc2sys.c | 7 --- pi.c | 11 +++ pi.h | 8 +--- ptp4l.c | 1 - servo.c | 2 +- 7 files changed, 14 insertions(+), 23 deletions(-) diff --git a/config.c b/config.c index b649cf0

[Linuxptp-devel] [PATCH RFC v4 01/83] clock: store the configuration in the clock data structure.

2015-08-23 Thread Richard Cochran
This will help us to simplify the passing of parameters between the main program. clock, and ports. Signed-off-by: Richard Cochran --- clock.c | 9 ++--- clock.h | 8 +--- ptp4l.c | 3 ++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/clock.c b/clock.c index 9e9feba

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 config_item config_tab

[Linuxptp-devel] [PATCH RFC v4 03/83] pmc: require a configuration for creating a PMC instance.

2015-08-23 Thread Richard Cochran
In the near future, the transports will need to consult the configuration database in order to obtain various options. This patch also introduces the idea of a configuration file into the phc2sys and pmc programs. Signed-off-by: Richard Cochran --- phc2sys.c| 10 ++ pmc.c

[Linuxptp-devel] [PATCH RFC v4 16/83] config: convert the 'max_frequency' option to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 2 -- ptp4l.c | 2 -- servo.c | 4 ++-- servo.h | 6 -- 5 files changed, 3 insertions(+), 18 deletions(-) diff --git a/config.c b/config.c index d539a5b..08508be 100644 --- a/config.c +++ b/config.c @@ -94,6 +94,7

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

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

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 100644 --- a/config.c +++ b

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

[Linuxptp-devel] [PATCH RFC v4 08/83] udp: configure the socket with the TTL option.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- udp.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/udp.c b/udp.c index b100dbf..b8aa76a 100644 --- a/udp.c +++ b/udp.c @@ -30,6 +30,7 @@ #include #include "address.h" +#include "config.h"

[Linuxptp-devel] [PATCH RFC v4 05/83] Introduce a simple hash table implementation.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- hash.c | 113 +++ hash.h | 59 + makefile | 2 +- 3 files changed, 173 insertions(+), 1 deletion(-) create mode 100644 hash.c create mode 100644 hash.h diff

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 config_item config_tab

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ -823,7 +823,7 @@ struct

[Linuxptp-devel] [PATCH RFC v4 11/83] config: convert the 'check_fup_sync' option to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 2 -- ptp4l.c | 4 +--- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/config.c b/config.c index ad398c1..2cd2788 100644 --- a/config.c +++ b/config.c @@ -78,6 +78,7 @@ struct config_item { struct

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 config_item { struct

[Linuxptp-devel] [PATCH RFC v4 28/83] config: convert 'ntpshm_segment' to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 2 -- ntpshm.c | 9 +++-- ntpshm.h | 7 +-- phc2sys.c | 3 +++ ptp4l.c | 2 -- servo.c | 2 +- 7 files changed, 9 insertions(+), 23 deletions(-) diff --git a/config.c b/config.c index 1ae564f..c1d5aeb 100644

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 @@ struct config_item

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 +104,7 @@ struct

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

2015-08-23 Thread Richard Cochran
This probably should not have been a variable in the first place. Signed-off-by: Richard Cochran --- 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 +++ b/ds.h @@ -125,7 +125,6

[Linuxptp-devel] [PATCH RFC v4 26/83] config: convert 'pi_integral_exponent' to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - pi.c | 8 +--- pi.h | 7 --- ptp4l.c | 1 - 5 files changed, 6 insertions(+), 18 deletions(-) diff --git a/config.c b/config.c index fc7dd23..2f184dd 100644 --- a/config.c +++ b/config.c @@ -97,6 +97,7

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

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

[Linuxptp-devel] [PATCH RFC v4 39/83] config: port: convert 'follow_up_info' to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 9 ++--- ds.h | 1 - port.c | 10 ++ ptp4l.c | 1 - 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/config.c b/config.c index 2c10158..7cc3ca5 100644 --- a/config.c +++ b/config.c @@ -96,6 +96,7 @@ struct

[Linuxptp-devel] [PATCH RFC v4 38/83] config: port: convert 'path_trace_enabled' to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 9 ++--- ds.h | 1 - port.c | 8 +--- ptp4l.c | 1 - 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/config.c b/config.c index 2c97002..2c10158 100644 --- a/config.c +++ b/config.c @@ -103,6 +103,7 @@ struct config_item

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

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

[Linuxptp-devel] [PATCH RFC v4 34/83] config: port: convert 'announceReceiptTimeout' to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 833d894..6401e44 100644 --- a/config.c +++ b/config.c @@ -91,6 +91,7 @@ struct config_item

[Linuxptp-devel] BAD SUBJECT LINE!

2015-08-23 Thread Richard Cochran
I screwed up the subject line with V4 instead of V5. I'll resend the bunch. Sorry, Richard -- ___ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lis

[Linuxptp-devel] [PATCH RFC V5 01/83] clock: store the configuration in the clock data structure.

2015-08-23 Thread Richard Cochran
This will help us to simplify the passing of parameters between the main program. clock, and ports. Signed-off-by: Richard Cochran --- clock.c | 9 ++--- clock.h | 8 +--- ptp4l.c | 3 ++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/clock.c b/clock.c index 9e9feba

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

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

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

2015-08-23 Thread Richard Cochran
This will allow modules to read out various user options. Signed-off-by: Richard Cochran --- pmc_common.c| 2 +- port.c | 3 ++- transport.c | 7 +-- transport.h | 6 +- transport_private.h | 1 + 5 files changed, 14 insertions(+), 5 deletions

[Linuxptp-devel] [PATCH RFC V5 12/83] servo: store the configuration in the servo data structure.

2015-08-23 Thread Richard Cochran
This will allow removing the code that passes configuration options via global variables. Signed-off-by: Richard Cochran --- clock.c | 4 ++-- phc2sys.c | 3 ++- servo.c | 3 ++- servo.h | 5 - 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/clock.c b/clock.c index

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 --- a/config.c +++ b

[Linuxptp-devel] [PATCH RFC V5 08/83] udp: configure the socket with the TTL option.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- udp.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/udp.c b/udp.c index b100dbf..b8aa76a 100644 --- a/udp.c +++ b/udp.c @@ -30,6 +30,7 @@ #include #include "address.h" +#include "config.h"

[Linuxptp-devel] [PATCH RFC V5 14/83] config: convert the 'step_threshold' option to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 21 +++-- config.h | 1 - phc2sys.c | 9 ++--- ptp4l.c | 1 - servo.c | 4 +++- servo.h | 9 - 6 files changed, 24 insertions(+), 21 deletions(-) diff --git a/config.c b/config.c index aa856ad..6732b23 100644

[Linuxptp-devel] [PATCH RFC V5 03/83] pmc: require a configuration for creating a PMC instance.

2015-08-23 Thread Richard Cochran
In the near future, the transports will need to consult the configuration database in order to obtain various options. This patch also introduces the idea of a configuration file into the phc2sys and pmc programs. Signed-off-by: Richard Cochran --- phc2sys.c| 10 ++ pmc.c

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 config_item config_tab

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

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- 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 { struct config_item

[Linuxptp-devel] [PATCH RFC V5 09/83] config: convert the 'assume_two_step' option to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - ptp4l.c | 5 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c index d3c19e5..871e277 100644 --- a/config.c +++ b/config.c @@ -77,6 +77,7 @@ struct config_item

[Linuxptp-devel] [PATCH RFC V5 06/83] config: Add a hash table into the data structure.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 11 +++ config.h | 4 2 files changed, 15 insertions(+) diff --git a/config.c b/config.c index 934caa2..9ef8be1 100644 --- a/config.c +++ b/config.c @@ -24,6 +24,7 @@ #include #include "config.h" #include "eth

[Linuxptp-devel] [PATCH RFC V5 20/83] config: convert 'pi_proportional_const' to the new scheme.

2015-08-23 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c | 7 +-- config.h | 1 - phc2sys.c | 7 --- pi.c | 11 +++ pi.h | 8 +--- ptp4l.c | 1 - servo.c | 2 +- 7 files changed, 14 insertions(+), 23 deletions(-) diff --git a/config.c b/config.c index b649cf0

<    1   2   3   4   5   6   7   8   9   10   >