examples/ptpclient: revert add frequency adjustment
PATCH 1/1 examples/ptpclient: revert add frequency adjustment
This commit references GPL-licensed code and therefore cannot be applied to the DPDK.
Therefore the following commit was reverted accordingly.
By resuming this commit, the basic functionality (PMD support for high-precision clocks) will not be affected, but its accuracy will be reduced to the microsecond level.
--- doc/guides/sample_app_ug/ptpclient.rst | 17 +- examples/ptpclient/ptpclient.c | 302 ++----------------------- 2 files changed, 25 insertions(+), 294 deletions(-)
doc/guides/sample_app_ug/ptpclient.rst +1 -16
@@ -50,12 +50,6 @@ The adjustment for time receiver can be represented as: If the command line parameter ``-T 1`` is used the application also synchronizes the PTP PHC clock with the Linux kernel clock. -If the command line parameter ``-c 1`` is used, -the application will also use the servo of the local clock. -Only one type of servo is currently implemented, the PI controller. -Default 0 (not used). - - Compiling the Application -------------------------
@@ -71,7 +65,7 @@ To run the example in a ``linux`` environment: .. code-block:: console - ./<build_dir>/examples/dpdk-ptpclient -l 1 -n 4 -- -p 0x1 -T 0 -c 1 + ./<build_dir>/examples/dpdk-ptpclient -l 1 -n 4 -- -p 0x1 -T 0 Refer to *DPDK Getting Started Guide* for general information on running applications and the Environment Abstraction Layer (EAL) options.
@@ -79,15 +73,6 @@ applications and the Environment Abstraction Layer (EAL) options. * ``-p portmask``: Hexadecimal portmask. * ``-T 0``: Update only the PTP time receiver clock. * ``-T 1``: Update the PTP time receiver clock and synchronize the Linux Kernel to the PTP clock. -* ``-c 0``: Not used clock servo controller. -* ``-c 1``: The clock servo PI controller is used and the log will print information - about time transmitter offset. - Note that the PMD needs to support the ``rte_eth_timesync_adjust_freq()`` API - to enable the servo controller. - -Also, by adding ``-T 1`` and ``-c 1``, the time transmitter offset value printed in the log -will slowly converge and eventually stabilise at the nanosecond level. -The synchronisation accuracy is much higher compared to not using a servo controller. Code Explanation
examples/ptpclient/ptpclient.c +24 -278
384 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 11 lines · Mingjin Ye
This commit references GPL-licensed code and therefore cannot be applied to the DPDK.
Therefore the following commit was reverted accordingly.
Fixes 6d55af611fd5 ("examples/ptpclient: add frequency adjustment")By resuming this commit, the basic functionality (PMD support for high-precision clocks) will not be affected, but its accuracy will be reduced to the microsecond level.
Quoted 8 lines
Fixes 6d55af611fd5 ("examples/ptpclient: add frequency adjustment")Signed-off-by Mingjin Ye <[email protected]>--- doc/guides/sample_app_ug/ptpclient.rst | 17 +- examples/ptpclient/ptpclient.c | 302 ++----------------------- 2 files changed, 25 insertions(+), 294 deletions(-)
Applied to dpdk-next-net-intel
/Bruce