From: Gerhard Engleder <gerhard@engleder-embedded.com>
To: Richard Cochran <richardcochran@gmail.com>
Cc: 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 v2 4/5] ptp: Support late timestamp determination
Date: Wed, 13 Apr 2022 22:51:54 +0200 [thread overview]
Message-ID: <CANr-f5zLyphtbi49mvsH_rVzn7yrGejUGMVobwrFmX8U6f2YVA@mail.gmail.com> (raw)
In-Reply-To: <20220412214655.GB579091@hoboy.vegasvil.org>
> > I'm thinking about why there should be a slow path with lookup. If the
> > address/cookie
> > points to a defined data structure with two timestamps, then no lookup
> > for the phc or
> > netdev is necessary. It should be possible for every driver to
> > allocate a skbuff with enough
> > space for this structure in front of the received Ethernet frame.
>
> Adding 16 bytes for every allocated skbuff is going to be a tough
> sell. Most people don't want/need this.
Most people are not affected because they use drivers which do not
support cycles. Those drivers stay the same, no 16 bytes are added.
For TX those 16 bytes are not added, because SKBTX_HW_TSTAMP_USE_CYCLES
is used to fill in the right time stamp.
For igc and tsnep the 16 bytes in front of the RX frame exist anyway.
So this would be a minimal solution with best performance as a first
step. A lookup for netdev/phc can be added in the future if there is
a driver, which needs that.
Is it worth posting an implementation in that direction?
Thanks!
Gerhard
next prev parent reply other threads:[~2022-04-13 20:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-03 17:55 [PATCH net-next v2 0/5] ptp: Support hardware clocks with additional free running cycle counter Gerhard Engleder
2022-04-03 17:55 ` [PATCH net-next v2 1/5] ptp: Add cycles support for virtual clocks Gerhard Engleder
2022-04-10 6:26 ` Richard Cochran
2022-04-10 12:32 ` Gerhard Engleder
2022-04-03 17:55 ` [PATCH net-next v2 2/5] ptp: Request cycles for TX timestamp Gerhard Engleder
2022-04-10 6:47 ` Richard Cochran
2022-04-10 12:40 ` Gerhard Engleder
2022-04-03 17:55 ` [PATCH net-next v2 3/5] ptp: Pass hwtstamp to ptp_convert_timestamp() Gerhard Engleder
2022-04-03 17:55 ` [PATCH net-next v2 4/5] ptp: Support late timestamp determination Gerhard Engleder
2022-04-10 7:29 ` Richard Cochran
2022-04-10 12:54 ` Gerhard Engleder
2022-04-10 13:42 ` Richard Cochran
2022-04-10 14:42 ` Gerhard Engleder
2022-04-12 19:24 ` Gerhard Engleder
2022-04-12 21:05 ` Vinicius Costa Gomes
2022-04-13 20:28 ` Gerhard Engleder
2022-04-12 21:46 ` Richard Cochran
2022-04-13 20:51 ` Gerhard Engleder [this message]
2022-04-14 6:36 ` Richard Cochran
2022-04-15 22:04 ` Gerhard Engleder
2022-04-16 16:58 ` Richard Cochran
2022-04-03 17:55 ` [PATCH net-next v2 5/5] tsnep: Add free running cycle counter support Gerhard Engleder
2022-04-06 23:04 ` [PATCH net-next v2 0/5] ptp: Support hardware clocks with additional free running cycle counter 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-f5zLyphtbi49mvsH_rVzn7yrGejUGMVobwrFmX8U6f2YVA@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=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).