Cole Walker 9f34e8951d [PTP] Handle NICs with a single PHC device
Issue: The logic to determine the path for the PHC device does not work
properly when a NIC has only one PHC device.

The way to determine the OS clock accuracy/offest uses the phc_ctl
command to read the difference between the PHC and the OS clock. In
order to do this from the container, we need the path for the PHC
device.

Added logic to try the 0th interface of the NIC if there is no device
found on the initial phc_interface. Some NICs with a single PHC only
present it on the base interface.

Test plan:
PASS: Build and deploy notificationservice-base container image
PASS: Monitor OS clock offset using the non-0th interface and verify
PHC device is still found

Story: 2010056
Task: 46323
Change-Id: Idf77f9abd73e6096c832d2905b26103061104f4d
2022-09-19 15:27:32 +00:00
2022-05-31 14:33:17 +00:00
2021-03-11 13:11:54 -05:00
2021-01-19 18:53:24 +00:00
Description
StarlingX PTP Notification App
4.4 MiB
Languages
Python 97%
Makefile 1.2%
Dockerfile 0.6%
Shell 0.4%
Smarty 0.3%
Other 0.4%