You can add a management set/command operation of the PORT_SERVICE_STATS_NP 
management TLV.

Erez


-----Original Message-----
From: Dale Smith <dalepsm...@gmail.com> 
Sent: Tuesday, 25 January 2022 23:05
To: Alexander Bulimov <abuli...@fb.com>
Cc: linuxptp-devel@lists.sourceforge.net
Subject: Re: [Linuxptp-devel] [PATCH] Add PORT_SERVICE_STATS_NP management TLV

On 1/25/22, Alexander Bulimov via Linuxptp-devel 
<linuxptp-devel@lists.sourceforge.net> >

+struct PortServiceStats {
> +     uint64_t announce_timeout;
> +     uint64_t sync_timeout;
> +     uint64_t delay_timeout;
> +     uint64_t unicast_service_timeout;
> +     uint64_t unicast_request_timeout;
> +     uint64_t master_announce_timeout;
> +     uint64_t master_sync_timeout;
> +     uint64_t qualification_timeout;
> +     uint64_t sync_mismatch;
> +     uint64_t followup_mismatch;
> +};

> --- a/port_private.h
> +++ b/port_private.h
> @@ -146,6 +146,7 @@ struct port {
>       UInteger8           delay_response_counter;
>       UInteger8           delay_response_timeout;
>       struct PortStats    stats;
> +     struct PortServiceStats    service_stats;
>       /* foreignMasterDS */
>       LIST_HEAD(fm, foreign_clock) foreign_masters;
>       /* TC book keeping */

I don't see a way to reset/clear these counters.  Should there be?  It will 
take a while to overflow 64 bits, so it probably isn't needed?

Just kind of curious.

-Dale


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Flinuxptp-devel&amp;data=04%7C01%7Cerez.geva.ext%40siemens.com%7C1a60b8fdad1848e29abd08d9e04ecb53%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637787451294474760%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=tJ3Rxk2FQCnQE71d6p4a3ImO0WInnw16ItRxOYNFPqQ%3D&amp;reserved=0


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to