Re: [RFC Patch net-next v2 1/8] net: ptp: add helper for one-step P2P clocks
From: Arun.Ramadoss
Date: Wed Nov 23 2022 - 02:11:31 EST
Hi Richard,
Thanks for the comment.
On Tue, 2022-11-22 at 06:34 -0800, Richard Cochran wrote:
> [Some people who received this message don't often get email from
> richardcochran@xxxxxxxxx. Learn why this is important at
> https://aka.ms/LearnAboutSenderIdentification ]
>
> EXTERNAL EMAIL: Do not click links or open attachments unless you
> know the content is safe
>
> On Mon, Nov 21, 2022 at 09:11:43PM +0530, Arun Ramadoss wrote:
> > +/**
> > + * ptp_header_update_correction - Update PTP header's correction
> > field
> > + * @skb: packet buffer
> > + * @type: type of the packet (see ptp_classify_raw())
> > + * @hdr: ptp header
> > + * @correction: new correction value
> > + *
> > + * This updates the correction field of a PTP header and updates
> > the UDP
> > + * checksum (if UDP is used as transport). It is needed for
> > hardware capable of
> > + * one-step P2P that does not already modify the correction field
> > of Pdelay_Req
> > + * event messages on ingress.
> > + */
>
> Does this really belong in the common PTP header?
>
> Seems more like a driver/hardware specific workaround to me.
This patch series is extension of PTP support for KSZ9563 patch series
submitted two years back which is not mainlined.
In that patch review feedback, it was suggested to make this function
generic and so it was moved from ksz_common.h to ptp_classify.h
Link:
https://lore.kernel.org/netdev/20201022113243.4shddtywgvpcqq6c@skbuf/
https://lore.kernel.org/netdev/20201022143429.GA9743@xxxxxxxxxxxxxxxxxx/
>
> Thanks,
> Richard