Black-box switches with PTP support commonly provide per-port statistics of
number of messages sent and received, split by the message type. Like other
statistics (ip link, ethtool, etc. etc.), network operators use the PTP
message stats to monitor the (PTP) network and debug issues.
When ptp4l is
Add an ability of pmc to query per-port stats added in the previous patch.
Signed-off-by: Petr Machata
---
pmc.c| 47 +++
pmc_common.c | 1 +
port.c | 7 +++
tlv.c| 15 +++
tlv.h| 6 ++
5 files chang
Add struct PortStats to keep per-port number of messages sent and received,
split by message type. Bump TX counters after messages are sent
successfully, and RX counters after a message is received. To keep things
simple, reserve one counter for each theoretically possible message type,
including t