On Mon, Aug 21, 2023 at 11:24:25AM +0200, Luigi Mantellini wrote: > 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)
IMO is isn't wise to re-use message type code that might one day become offical new message types. Better to simply make a new reporting structure. You can include those message counters in your new structure. Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel