Re: [PATCH v1 1/2] ptp: Add generic ptp v2 header parsing function

2020-07-23 Thread Kurt Kanzenbach
On Thu Jul 23 2020, Kurt Kanzenbach wrote: > +static struct ptp_header *ptp_parse_header(struct sk_buff *skb, > +unsigned int type) > +{ > + return NULL; > +} > #endif That should be static inline ofc. Thanks, Kurt signature.asc Description: PGP sign

[PATCH v1 1/2] ptp: Add generic ptp v2 header parsing function

2020-07-23 Thread Kurt Kanzenbach
Reason: A lot of the ptp drivers - which implement hardware time stamping - need specific fields such as the sequence id from the ptp v2 header. Currently all drivers implement that themselves. Introduce a generic function to retrieve a pointer to the start of the ptp v2 header. Signed-off-by: Ku