Re: [Linuxptp-devel] [PATCH v2 11/11] synce4l: add synce4l application

2022-05-30 Thread Miroslav Lichvar
I have not received patch 02/11 from the series and I don't see it in the archives. Also, patch 11/11 needs to be rebased on top of the current HEAD as there is a conflict in makefile with recent ts2phc changes. On Thu, May 26, 2022 at 05:16:32PM +0200, Arkadiusz Kubalewski wrote: > Add main code

Re: [Linuxptp-devel] [PATCH v2 11/11] synce4l: add synce4l application

2022-05-30 Thread Kubalewski, Arkadiusz
-Original Message- From: Miroslav Lichvar Sent: Monday, May 30, 2022 2:52 PM To: Kubalewski, Arkadiusz Cc: linuxptp-devel@lists.sourceforge.net; Kwapulinski, Piotr ; Sawula, Andrzej ; Gerasymenko, Anatolii Subject: Re: [Linuxptp-devel] [PATCH v2 11/11] synce4l: add synce4l application

[Linuxptp-devel] [PATCH v3 07/11] synce4l: add synce_port interface

2022-05-30 Thread Arkadiusz Kubalewski
Used by synce_dev to interact with its ports. Co-developed-by: Anatolii Gerasymenko Signed-off-by: Anatolii Gerasymenko Co-developed-by: Michal Michalik Signed-off-by: Michal Michalik Signed-off-by: Arkadiusz Kubalewski --- v2: updated license headers v3: rebase patch series synce_port.c |

[Linuxptp-devel] [PATCH v3 04/11] synce4l: add synce_clock interface

2022-05-30 Thread Arkadiusz Kubalewski
synce_clock interface allows creation, polling and destruction of SyncE clock, designed to step and drive SyncE logic on all configured SyncE devices. SyncE clock is created with a SyncE-type configuration, where SyncE-type configuration is prepared by parsing SyncE config file. Poll of a SyncE c

[Linuxptp-devel] [PATCH v3 09/11] synce4l: add synce_msg interface

2022-05-30 Thread Arkadiusz Kubalewski
Interface used for: - creation, building and storing new SyncE PDU's for later transmission - obtain Quality Level TLV and Extended Quality Level TLV from existing SyncE PDU's synce_msg_private.h has constants and structs as defined by Synchronous Ethernet standard - Recommendation ITU-T G.8264/

[Linuxptp-devel] [PATCH v3 00/11] synce4l: add software for Synchronous Ethernet

2022-05-30 Thread Arkadiusz Kubalewski
synce4l is a software implementation of Synchronous Ethernet (Sync-E) according to ITU-T Recommendation G.8264. The design goal is to provide logic to supported hardware by processing Ethernet Synchronization Messaging Channel (ESMC) and control Digital Phase Locked Loop (DPLL) clock on Network Car

[Linuxptp-devel] [PATCH v3 11/11] synce4l: add synce4l application

2022-05-30 Thread Arkadiusz Kubalewski
Add main code of synce4l - user space application implementing standard - Recommendation ITU-T G.8264/Y.1364. On init the application parses SyncE config file and initializes a synce_clock with SyncE devices and configured ports. synce_clock is later polled until application termination. Add docum

[Linuxptp-devel] [PATCH v3 03/11] synce4l: add esmc_socket interface

2022-05-30 Thread Arkadiusz Kubalewski
Add interface for sending and receiving ESMC frames. Ethernet Synchronization Messaging Channel (ESMC) requires to operate on multicast raw L2 socket. This patch adds features to open socket, send and receive ESMC frames. Co-developed-by: Anatolii Gerasymenko Signed-off-by: Anatolii Gerasymenko

[Linuxptp-devel] [PATCH v3 08/11] synce4l: add synce_port_ctrl interface

2022-05-30 Thread Arkadiusz Kubalewski
Used by synce_port to create, control and destroy RX/TX threads. Ports in sync mode can use only TX thread (device in external input mode) or both RX and TX threads (device in internal input mode). RX thread is responsible for: - receiving ESMC frames - verifying received QL - storing last receive

[Linuxptp-devel] [PATCH v3 05/11] synce4l: add synce_dev interface

2022-05-30 Thread Arkadiusz Kubalewski
synce_dev interface allows creation, initialization, stepping and destroying of a single SyncE device. Newly created device must be given a device name (same as in config file). After creation the SyncE device is initialized with config struct, where device-level configuration for this device mus

[Linuxptp-devel] [PATCH v3 01/11] synce4l: add config knobs for SyncE

2022-05-30 Thread Arkadiusz Kubalewski
Allow config interface to parse SyncE related config files. Co-developed-by: Piotr Kwapulinski Signed-off-by: Piotr Kwapulinski Co-developed-by: Michal Michalik Signed-off-by: Michal Michalik Signed-off-by: Arkadiusz Kubalewski --- v2: remove redundant variable assignment v3: rebase patch ser

[Linuxptp-devel] [PATCH v3 06/11] synce4l: add synce_dev_ctrl interface

2022-05-30 Thread Arkadiusz Kubalewski
Used by synce_dev to acquire current state of its DPLL. Co-developed-by: Anatolii Gerasymenko Signed-off-by: Anatolii Gerasymenko Co-developed-by: Piotr Kwapulinski Signed-off-by: Piotr Kwapulinski Co-developed-by: Michal Michalik Signed-off-by: Michal Michalik Signed-off-by: Arkadiusz Kubal

[Linuxptp-devel] [PATCH v3 10/11] synce4l: add synce_transport interface

2022-05-30 Thread Arkadiusz Kubalewski
Interface is used to create and store an opened socket for sending and receiving SyncE PDU's on a given NIC interface. Co-developed-by: Michal Michalik Signed-off-by: Michal Michalik Signed-off-by: Arkadiusz Kubalewski --- v2: - changed strnlen/strncpy to snprintf for increased readability - ad

[Linuxptp-devel] [PATCH v3 02/11] synce4l: add synce in interface and util code

2022-05-30 Thread Arkadiusz Kubalewski
Extend interface struct, allow to keep information about SyncE parent device. Add helper function (util.c) to acquire Do Not Use - Quality Level value. Co-developed-by: Anatolii Gerasymenko Signed-off-by: Anatolii Gerasymenko Co-developed-by: Michal Michalik Signed-off-by: Michal Michalik Sig