Re: [Linuxptp-devel] [PATCH 1/1] Ensure TLV_PORT_STATS_NP statistics uses little endian.

2021-03-28 Thread Richard Cochran
On Tue, Mar 23, 2021 at 11:37:39PM +0100, Erez Geva wrote: > As machine byte order may vary. > Ensure TLV_PORT_STATS_NP statistics use defined order. > > As most of us use little endian hardware and > to retain backward compatible with most of us, > we decide to use little endian for the

[Linuxptp-devel] [PATCH 1/1] Ensure TLV_PORT_STATS_NP statistics uses little endian.

2021-03-23 Thread Erez Geva
As machine byte order may vary. Ensure TLV_PORT_STATS_NP statistics use defined order. As most of us use little endian hardware and to retain backward compatible with most of us, we decide to use little endian for the statistics. All other TLVs messages remain in network order. Signed-off-by:

Re: [Linuxptp-devel] [PATCH 1/1] Ensure TLV_PORT_STATS_NP statistics uses little endian.

2021-03-23 Thread Richard Cochran
On Mon, Mar 15, 2021 at 04:58:09PM +0100, Erez Geva wrote: > diff --git a/tlv.c b/tlv.c > index 98ef6e1..6e919e6 100644 > --- a/tlv.c > +++ b/tlv.c > @@ -324,6 +324,10 @@ static int mgt_post_recv(struct management_tlv *m, > uint16_t data_len, > psn = (struct port_stats_np

[Linuxptp-devel] [PATCH 1/1] Ensure TLV_PORT_STATS_NP statistics uses little endian.

2021-03-15 Thread Erez Geva
As machine byte order may vary. Ensure TLV_PORT_STATS_NP statistics use defined order. As most of us use little endian hardware and to retain backward compatible with most of us, we decide to use little endian for the statistics. All other TLVs messages remain in network order. Signed-off-by: