-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters