netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gerhard Engleder <gerhard@engleder-embedded.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>,
	Vinicius Costa Gomes <vinicius.gomes@intel.com>,
	yangbo.lu@nxp.com, David Miller <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	mlichvar@redhat.com, netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next v3 2/6] ptp: Request cycles for TX timestamp
Date: Thu, 5 May 2022 21:59:53 +0200	[thread overview]
Message-ID: <CANr-f5wYg-qxVWgdUb3w3tj89NG9HpDAMvp0xFtts6yTotQ75Q@mail.gmail.com> (raw)
In-Reply-To: <4c2a15271887aa3f5d759771ddedac04e11db743.camel@redhat.com>

> > The free running cycle counter of physical clocks called cycles shall be
> > used for hardware timestamps to enable synchronisation.
> >
> > Introduce new flag SKBTX_HW_TSTAMP_USE_CYCLES, which signals driver to
> > provide a TX timestamp based on cycles if cycles are supported.
> >
> > Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
> > ---
> >  include/linux/skbuff.h |  5 +++++
> >  net/core/skbuff.c      |  5 +++++
> >  net/socket.c           | 11 ++++++++++-
> >  3 files changed, 20 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
> > index 3270cb72e4d8..fa03e02b761d 100644
> > --- a/include/linux/skbuff.h
> > +++ b/include/linux/skbuff.h
> > @@ -615,6 +615,11 @@ enum {
> >       /* device driver is going to provide hardware time stamp */
> >       SKBTX_IN_PROGRESS = 1 << 2,
> >
> > +     /* generate hardware time stamp based on cycles if supported, flag is
> > +      * used only for TX path
> > +      */
> > +     SKBTX_HW_TSTAMP_USE_CYCLES = 1 << 3,
> > +
> >       /* generate wifi status information (where possible) */
> >       SKBTX_WIFI_STATUS = 1 << 4,
>
> Don't you need to update accordingly SKBTX_ANY_TSTAMP, so that this
> flags is preserved on segmentation?

You are right, SKBTX_HW_TSTAMP_USE_CYCLES should be preserved like
SKBTX_HW_TSTAMP. I will fix that.

Thank you!

Gerhard

  reply	other threads:[~2022-05-05 20:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-01 11:18 [PATCH net-next v3 0/6] ptp: Support hardware clocks with additional free running cycle counter Gerhard Engleder
2022-05-01 11:18 ` [PATCH net-next v3 1/6] ptp: Add cycles support for virtual clocks Gerhard Engleder
2022-05-05 13:51   ` Richard Cochran
2022-05-01 11:18 ` [PATCH net-next v3 2/6] ptp: Request cycles for TX timestamp Gerhard Engleder
2022-05-05 10:52   ` Paolo Abeni
2022-05-05 19:59     ` Gerhard Engleder [this message]
2022-05-05 13:54   ` Richard Cochran
2022-05-01 11:18 ` [PATCH net-next v3 3/6] ptp: Pass hwtstamp to ptp_convert_timestamp() Gerhard Engleder
2022-05-01 11:18 ` [PATCH net-next v3 4/6] ptp: Support late timestamp determination Gerhard Engleder
2022-05-04 18:24   ` Jonathan Lemon
2022-05-04 19:33     ` Gerhard Engleder
2022-05-05 14:02   ` Richard Cochran
2022-05-01 11:18 ` [PATCH net-next v3 5/6] ptp: Speed up vclock lookup Gerhard Engleder
2022-05-05 14:07   ` Richard Cochran
2022-05-01 11:18 ` [PATCH net-next v3 6/6] tsnep: Add free running cycle counter support Gerhard Engleder
2022-05-04 15:55 ` [PATCH net-next v3 0/6] ptp: Support hardware clocks with additional free running cycle counter Jakub Kicinski
2022-05-05 14:08   ` Richard Cochran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANr-f5wYg-qxVWgdUb3w3tj89NG9HpDAMvp0xFtts6yTotQ75Q@mail.gmail.com \
    --to=gerhard@engleder-embedded.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=mlichvar@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=vinicius.gomes@intel.com \
    --cc=yangbo.lu@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).