Skip to content

Commit 0119914

Browse files
authored
Merge pull request #50901 from aireilly/td-935
TELCODOCS-960 - PTP config `phc2sysOpts` clarify use of the -m switch
2 parents 55eb7bf + c5885fa commit 0119914

6 files changed

+24
-222
lines changed

modules/cnf-configuring-cvl-nic-as-oc.adoc

Lines changed: 0 additions & 206 deletions
This file was deleted.

modules/cnf-configuring-the-ptp-fast-event-publisher.adoc

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,17 @@ spec:
5353
- name: "profile1"
5454
interface: "enp5s0f0"
5555
ptp4lOpts: "-2 -s --summary_interval -4" <1>
56-
phc2sysOpts: "-a -r -m -n 24 -N 8 -R 16"
57-
ptp4lConf: "" <2>
58-
ptpClockThreshold: <3>
59-
holdOverTimeout: 5 <4>
60-
maxOffsetThreshold: 100 <5>
61-
minOffsetThreshold: -100 <6>
56+
phc2sysOpts: "-a -r -m -n 24 -N 8 -R 16" <2>
57+
ptp4lConf: "" <3>
58+
ptpClockThreshold: <4>
59+
holdOverTimeout: 5 <5>
60+
maxOffsetThreshold: 100 <6>
61+
minOffsetThreshold: -100 <7>
6262
----
6363
<1> Append `--summary_interval -4` to use PTP fast events.
64-
<2> Specify a string that contains the configuration to replace the default /etc/ptp4l.conf file. To use the default configuration, leave the field empty.
65-
<3> Optional. If `ptpClockThreshold` stanza is not present, default values are used for `ptpClockThreshold` fields. Stanza shows default `ptpClockThreshold` values.
66-
<4> Number of seconds to stay in the clock holdover state. Holdover state is the period between local and master clock synchronizations.
67-
<5> Maximum offset value in nanoseconds. Offset is the time difference between the local and master clock.
68-
<6> Minimum offset value in nanoseconds.
64+
<2> Required `phc2sysOpts` values. `-m` prints messages to `stdout`. The `linuxptp-daemon` `DaemonSet` parses the logs and generates Prometheus metrics.
65+
<3> Specify a string that contains the configuration to replace the default /etc/ptp4l.conf file. To use the default configuration, leave the field empty.
66+
<4> Optional. If `ptpClockThreshold` stanza is not present, default values are used for `ptpClockThreshold` fields. Stanza shows default `ptpClockThreshold` values.
67+
<5> Number of seconds to stay in the clock holdover state. Holdover state is the period between local and master clock synchronizations.
68+
<6> Maximum offset value in nanoseconds. Offset is the time difference between the local and master clock.
69+
<7> Minimum offset value in nanoseconds.

modules/nw-columbiaville-ptp-config-refererence.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@ The following table describes the changes that you must make to the reference PT
1717
|`boundary_clock_jbod`|`0`
1818
|====
1919

20+
[NOTE]
21+
====
22+
For `phc2sysOpts`, `-m` prints messages to `stdout`. The `linuxptp-daemon` `DaemonSet` parses the logs and generates Prometheus metrics.
23+
====
24+
2025

2126

modules/nw-ptp-configuring-linuxptp-services-as-ordinary-clock.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ spec:
155155
<3> Specify a unique name for the profile object.
156156
<4> Specify the network interface to be used by the `ptp4l` service, for example `ens787f1`.
157157
<5> Specify system config options for the `ptp4l` service, for example `-2` to select the IEEE 802.3 network transport. The options should not include the network interface name `-i <interface>` and service config file `-f /etc/ptp4l.conf` because the network interface name and the service config file are automatically appended. Append `--summary_interval -4` to use PTP fast events with this interface.
158-
<6> Specify system config options for the `phc2sys` service. If this field is empty the PTP Operator does not start the `phc2sys` service. For Intel Columbiaville 800 Series NICs, set `phc2sysOpts` options to `-a -r -m -n 24 -N 8 -R 16`.
158+
<6> Specify system config options for the `phc2sys` service. If this field is empty the PTP Operator does not start the `phc2sys` service. For Intel Columbiaville 800 Series NICs, set `phc2sysOpts` options to `-a -r -m -n 24 -N 8 -R 16`. `-m` prints messages to `stdout`. The `linuxptp-daemon` `DaemonSet` parses the logs and generates Prometheus metrics.
159159
<7> Specify a string that contains the configuration to replace the default `/etc/ptp4l.conf` file. To use the default configuration, leave the field empty.
160160
<8> For Intel Columbiaville 800 Series NICs, set `tx_timestamp_timeout` to `50`.
161161
<9> For Intel Columbiaville 800 Series NICs, set `boundary_clock_jbod` to `0`.

modules/ptp-configuring-linuxptp-services-as-boundary-clock-dual-nic.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ spec:
4444
[ens5f0]
4545
masterOnly 0
4646
...
47-
phc2sysOpts: "-a -r -m -n 24 -N 8 -R 16"
47+
phc2sysOpts: "-a -r -m -n 24 -N 8 -R 16" <2>
4848
----
4949
<1> Specify the required interfaces to start `ptp4l` as a boundary clock. For example, `ens5f0` synchronizes from a grandmaster clock and `ens5f1` synchronizes connected devices.
50+
<2> Required `phc2sysOpts` values. `-m` prints messages to `stdout`. The `linuxptp-daemon` `DaemonSet` parses the logs and generates Prometheus metrics.
5051

5152
.. Create `boundary-clock-ptp-config-nic2.yaml`, removing the `phc2sysOpts` field altogether to disable the `phc2sys` service for the second NIC:
5253
+

modules/ztp-configuring-ptp-fast-events.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,17 @@ You can configure PTP fast events for vRAN clusters that are deployed using the
5050
- name: "slave"
5151
interface: "ens5f1" <2>
5252
ptp4lOpts: "-2 -s --summary_interval -4" <3>
53-
phc2sysOpts: "-a -r -m -n 24 -N 8 -R 16"
54-
ptpClockThreshold: <4>
53+
phc2sysOpts: "-a -r -m -n 24 -N 8 -R 16" <4>
54+
ptpClockThreshold: <5>
5555
holdOverTimeout: 30 #secs
5656
maxOffsetThreshold: 100 #nano secs
5757
minOffsetThreshold: -100 #nano secs
5858
----
5959
<1> Can be one `PtpConfigMaster.yaml`, `PtpConfigSlave.yaml`, or `PtpConfigSlaveCvl.yaml` depending on your requirements. `PtpConfigSlaveCvl.yaml` configures `linuxptp` services for an Intel E810 Columbiaville NIC. For configurations based on `group-du-sno-ranGen.yaml` or `group-du-3node-ranGen.yaml`, use `PtpConfigSlave.yaml`.
6060
<2> Device specific interface name.
6161
<3> You must append the `--summary_interval -4` value to `ptp4lOpts` in `.spec.sourceFiles.spec.profile` to enable PTP fast events.
62-
<4> `ptpClockThreshold` configues how long the clock stays in clock holdover state. Holdover state is the period between local and master clock synchronizations. Offset is the time difference between the local and master clock.
62+
<4> Required `phc2sysOpts` values. `-m` prints messages to `stdout`. The `linuxptp-daemon` `DaemonSet` parses the logs and generates Prometheus metrics.
63+
<5> `ptpClockThreshold` configues how long the clock stays in clock holdover state. Holdover state is the period between local and master clock synchronizations. Offset is the time difference between the local and master clock.
6364

6465
. Apply the following `PolicyGenTemplate` changes to your specific site YAML files, for example, `example-sno-site.yaml`:
6566

0 commit comments

Comments
 (0)