On 2026-12-01 17:35:30 [+0100], To netd…@kernel.org wrote:
> > req_tx_port is compared against HSR_PT_SLAVE_A and HSR_PT_SLAVE_B, which > > come from the internal enum hsr_port_type. The exported > > HSR_INLINE_HDR_PORT_A and HSR_INLINE_HDR_PORT_B are never used, and no > > BUILD_BUG_ON ties the two sets of values together. Reordering the internal > > enum would silently change the ABI. Would it be better to validate against > > the UAPI constants and map them to the internal values?
> > Hmm. The ABI is fix/ exported via uapi. The reorder would break the > parsing here. I would prefer the HSR_PT_SLAVE_A+B constants and the > BUILD_BUG_ON() to link it. > Is this something I should resend the whole series and send a follow-up > later?
On the other hand, let me fix this and …
> > Two smaller points: hsr_device.c includes <uapi/linux/hsr_ptp.h> instead of > > <linux/hsr_ptp.h>, and there is no Documentation/ text for the new ABI.
> > I am not aware that uapi/ header must not be included in kernel code. > Yes, no other documentation.
include the non-uapi header and then add a delay for the link up in testing and then it should be it. Sebastian pw-bot: cr