We are going to need multiple TLV support soon rather than later, in order to support various unicast profiles for example. I want to get this in before adding any more TLV code, and so I'll rework the NSM support on top of this.
This series removes the single TLV limitation. What PITA that turn out to be! Regarding linuxptp-testsuite/clknetsim: The 20-pmc test was really helpful in shaking out early bugs, but now the test fails as of patch #3, even though the running the real pmc/ptp4l programs works correctly, AFAICT. Interestingly, the script in clknetsim/examples/pmc.test seem also to work fine. Maybe there is a timing issue in 20-pmc? * Changes in V2: - simplified API - fixed bugs * Where is V1? - blocked by SF as spam Richard Cochran (10): tlv: Implement a memory pool for TLV descriptors. msg: Introduce a TLV list. msg: Populate the TLV list on receive. msg: Introduce method for appending multiple TLVs on transmit. pmc: Convert to the API for appending TLVs on the transmit path. pmc: Remove unused parameter. port: Convert to the API for appending TLVs on the transmit path. msg: Use the TLV list on transmit. msg: Remove the 'last_tlv' field. port: Accept multiple TLVs on receive. clock.c | 10 +++- msg.c | 166 +++++++++++++++++++++++++++++++++++++++++++++-------------- msg.h | 35 ++++++++++--- pmc.c | 7 ++- pmc_common.c | 33 ++++++++---- port.c | 149 ++++++++++++++++++++++++++++++++--------------------- tlv.c | 38 ++++++++++++-- tlv.h | 27 ++++++++-- 8 files changed, 339 insertions(+), 126 deletions(-) -- 2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxptp-devel
