Re: [Linuxptp-devel] [RFC PATCH v2 1/9] Add new TLV for CommonMeanLinkDelayInformation
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2023-11-16 04:42:11
|
On Mon, May 15, 2023 at 06:26:04PM -0400, Kishen Maloor wrote: > @@ -490,6 +491,15 @@ static int mgt_post_recv(struct management_tlv *m, uint16_t data_len, > if (data_len != 0) > goto bad_length; > break; > + case MID_CMLDS_INFO_NP: > + if (data_len < sizeof(struct cmlds_info_np)) > + goto bad_length; > + cmlds = (struct cmlds_info_np *)m->data; > + net2host64_unaligned(&cmlds->meanLinkDelay); > + NTOHL(cmlds->scaledNeighborRateRatio); > + net2host64_unaligned(&cmlds->egress_ts); > + net2host64_unaligned(&cmlds->rx_ts); > + break; Place after MID_POWER_PROFILE_SETTINGS_NP please. > } > if (extra_len) { > if (extra_len % 2) Thanks, Richard |