On 7/30/2020 1:00 AM, Kurt Kanzenbach wrote: > In order to reduce code duplication between ptp drivers, generic helper > functions were introduced. Use them. > > Signed-off-by: Kurt Kanzenbach <[email protected]> > --- [snip] > - if (unlikely(ptp_class & PTP_CLASS_V1)) > - msgtype = data + offset + OFF_PTP_CONTROL; > - else > - msgtype = data + offset; > + msgtype = ptp_get_msgtype(hdr, ptp_class); > + seqid = be16_to_cpu(hdr->sequence_id); Same comment as patch 5 would probably apply here as well, with using ntohs(): Reviewed-by: Florian Fainelli <[email protected]> -- Florian
- [PATCH v3 5/9] ethernet: ti: am65-cpts: Use generic help... Kurt Kanzenbach
- Re: [PATCH v3 5/9] ethernet: ti: am65-cpts: Use gen... Grygorii Strashko
- Re: [PATCH v3 5/9] ethernet: ti: am65-cpts: Use... Kurt Kanzenbach
- Re: [PATCH v3 5/9] ethernet: ti: am65-cpts:... Arnd Bergmann
- Re: [PATCH v3 5/9] ethernet: ti: am65-c... Kurt Kanzenbach
- Re: [PATCH v3 5/9] ethernet: ti: a... Grygorii Strashko
- Re: [PATCH v3 5/9] ethernet: t... Kurt Kanzenbach
- [PATCH v3 9/9] ptp: Remove unused macro Kurt Kanzenbach
- Re: [PATCH v3 9/9] ptp: Remove unused macro Florian Fainelli
- [PATCH v3 6/9] ethernet: ti: cpts: Use generic helper fu... Kurt Kanzenbach
- Re: [PATCH v3 6/9] ethernet: ti: cpts: Use generic ... Florian Fainelli
- Re: [PATCH v3 6/9] ethernet: ti: cpts: Use gene... Grygorii Strashko
- [PATCH v3 4/9] mlxsw: spectrum_ptp: Use generic helper f... Kurt Kanzenbach
- Re: [PATCH v3 4/9] mlxsw: spectrum_ptp: Use generic... Petr Machata
- Re: [PATCH v3 4/9] mlxsw: spectrum_ptp: Use generic... Florian Fainelli
- [PATCH v3 8/9] ptp: ptp_ines: Use generic helper functio... Kurt Kanzenbach
- Re: [PATCH v3 8/9] ptp: ptp_ines: Use generic helpe... Florian Fainelli
- [PATCH v3 2/9] ptp: Add generic ptp message type functio... Kurt Kanzenbach
- Re: [PATCH v3 2/9] ptp: Add generic ptp message typ... Richard Cochran
- Re: [PATCH v3 2/9] ptp: Add generic ptp message typ... Florian Fainelli
- [PATCH v3 3/9] net: dsa: mv88e6xxx: Use generic helper f... Kurt Kanzenbach
