Dear all, please ignore the previous proposed patch to add PORT_STATS_2_NP.
The PORTS_STATS_NP carries RX/TX counters for each Message Type. The following patch fills the spare slots in order to add the following counters: (MSG_TYPES EVENT 0x0...0x3) RX_BAD_MESSAGE 0x4 RX_BAD_PROTOCOL 0x5 RX_FAIL_RECEIVE 0x6 RX_MISSING_TIMESTAMP 0x7 (MSG_TYPES GENERAL 0x8...0xD) RX_ANNOUNCE_FOREIGN_MASTER 0xE RX_ANNOUNCE_CURRENT_MASTER 0xF (MSG_TYPES EVENT 0x0...0x3) TX_FAIL_TRANSMIT 0x6 TX_MISSING_TIMESTAMP 0x7 (MSG_TYPES GENERAL 0x8...0xD) (AVAILABLE 0xE...0xF) The counters are properly updated by runtime when required. Luigi Mantellini (1): Add more counters to Port Stats ddt.h | 30 ++++++++++++++++++++++++++++++ pmc.c | 58 +++++++++++++++++++++++++++++++++++++--------------------- port.c | 13 +++++++++++++ 3 files changed, 80 insertions(+), 21 deletions(-) -- 2.41.0 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel