Skip to content

Commit

Permalink
updates for ptp operator plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
aireilly committed Jul 20, 2023
1 parent 24c52e5 commit 883e8c2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
46 changes: 46 additions & 0 deletions modules/ptp-using-hardware-specific-nic-features.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Module included in the following assemblies:
//
// *

:_content-type: CONCEPT
[id="ptp-using-hardware-specific-nic-features_{context}"]
= Using hardware-specific NIC features with the PTP Operator

NIC hardware with built-in PTP capabilities sometimes requires device-specific configurations to be applied.
You can use hardware-specific NIC features with the PTP Operator by configuring a plugin in the `PtpConfig` custom resource (CR).
The `linuxptp-daemon` uses the named parameters in the `plugin` stanza to launch `linuxptp` processes (`ptp4l` and `phc2sys`) based on the specic hardware configuration.

An example `PtpConfig` CR with a configured `plugin` stanza for the Intel E810 NIC is below:

[source,yaml]
----
apiVersion: ptp.openshift.io/v1
kind: PtpConfig
metadata:
name: worker
namespace: openshift-ptp
spec:
profile:
- name: discovery-worker
interface: ens5f0
#ptp4lOpts: "-2 -s"
phc2sysOpts: " -a -r -n 24 -u 8"
ptp4lConf: |
[global]
#
# Default Data Set
ptpSchedulingPolicy SCHED_FIFO
ptpSchedulingPriority 10
plugin:
- deviceId: e810
args:
U_FL2: 0,2
U_FL1: 0,1
SMA2: 1,1
SMA1: 0,1
recommend:
- profile: discovery-worker
priority: 4
match:
- nodeLabel: node-role.kubernetes.io/master
----
2 changes: 2 additions & 0 deletions networking/using-ptp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ When installed, the PTP Operator searches your cluster for PTP-capable network d

include::modules/nw-ptp-device-discovery.adoc[leveloffset=+2]

include::modules/ptp-using-hardware-specific-nic-features.adoc[leveloffset=+2]

include::modules/nw-ptp-configuring-linuxptp-services-as-grandmaster-clock.adoc[leveloffset=+2]

[role="_additional-resources"]
Expand Down

0 comments on commit 883e8c2

Please sign in to comment.