In commit 424bbde8fcca ("Custom management TLV PORT_PROPERTIES_NP"), a new
TLV was added that allows introspection into PTP ports, and in particular
translation from PTP port identifiers to system netdevice names. The TLV
was added for phc2sys, and correspondingly pmc support was not added.

However, translating from port IDs to netdevices is as useful to phc2sys as
to end users. Besides just visually correlating what's what also for ad-hoc
scripting and writing automated tests.

This patchset therefore extends pmc to understand this TLV. In patch #1, a
new helper is added that allows human-readable rendering of timestamping
type, which is one of the reported properties. Patch #2 then extends pmc.

Petr Machata (2):
  util: Add a function to render timestamp type
  pmc: Support querying TLV_PORT_PROPERTIES_NP

 pmc.8        |  2 ++
 pmc.c        | 16 ++++++++++++++++
 pmc_common.c |  1 +
 util.c       | 18 ++++++++++++++++++
 util.h       |  7 +++++++
 5 files changed, 44 insertions(+)

-- 
2.20.1



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

Reply via email to