On Tue, Feb 15, 2022 at 10:55:45AM -0800, Alexander Bulimov via Linuxptp-devel 
wrote:

> +struct UnicastMasterEntry {
> +     uint8_t                 selected;
> +     Enumeration8            portState;
> +     struct PortIdentity     portIdentity;
> +     struct ClockQuality     clockQuality;
> +     UInteger8               priority1;
> +     UInteger8               priority2;
> +     struct PortAddress      address;
> +} PACKED;

This is a very poor binary layout.  Sort by size for large to small.
Pad if needed to obtain word alignment.

Thanks,
Richard


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

Reply via email to