netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kohei Enju <kohei@enjuk.jp>
To: KhaiWenTan <khai.wen.tan@linux.intel.com>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Kuniyuki Iwashima <kuniyu@google.com>,
	Willem de Bruijn <willemb@google.com>,
	David Ahern <dsahern@kernel.org>,
	Neal Cardwell <ncardwell@google.com>,
	Gerhard Engleder <gerhard@engleder-embedded.com>,
	Jonathan Lemon <jonathan.lemon@gmail.com>,
	Richard Cochran <richardcochran@gmail.com>,
	Gomes Vinicius <vinicius.gomes@intel.com>,
	Song Yoong Siang <yoong.siang.song@intel.com>,
	Looi Hong Aun <hong.aun.looi@intel.com>,
	"Tan, Khai Wen" <khai.wen.tan@intel.com>
Subject: Re: [PATCH net v1 0/3] af_packet/tcp: fix late hardware timestamp handling
Date: Tue, 24 Nov 2026 00:31:29 +0900	[thread overview]
Message-ID: <awRbgl7vlFO-c3Q6@x1> (raw)
In-Reply-To: <a62bce53-a307-483f-86e9-00949b142e9f@linux.intel.com>

On 11/23 16:36, KhaiWenTan wrote:
> On 4/29/2026 5:16 PM, Kohei Enju wrote:
> > Since commit 97dc7cd92ac6 ("ptp: Support late timestamp determination"),
> > skb_shared_hwtstamps may carry netdev_data instead of a resolved
> > hwtstamp. AF_PACKET and TCP could still read that storage as a ktime_t
> > and report bogus hardware timestamps to userspace.
> > 
> > This series factors the late timestamp resolution logic into a common
> > helper, then switches AF_PACKET and TCP to use it.
> > 
> > Notes on SOF_TIMESTAMPING_BIND_PHC:
> > The generic socket receive timestamping path honors it, but the
> > AF_PACKET and TCP receive paths touched here haven't implemented that
> > behavior.
> > This series doesn't change that; those paths always resolve timestamps
> > with cycles == false and preserve their timestamp-domain semantics.
> > 
> > Kohei Enju (3):
> >    net: introduce helper to resolve hardware timestamps from skb
> >    af_packet: use skb_get_hwtstamp() for hardware timestamps
> >    tcp: use skb_get_hwtstamp() for hardware timestamps
> > 
> >   include/linux/skbuff.h | 11 +++++++++++
> >   include/net/tcp.h      |  2 +-
> >   net/core/skbuff.c      | 27 +++++++++++++++++++++++++++
> >   net/ipv4/tcp_input.c   |  3 ++-
> >   net/ipv4/tcp_ipv4.c    |  6 ++++--
> >   net/ipv6/tcp_ipv6.c    |  3 ++-
> >   net/packet/af_packet.c |  2 +-
> >   net/socket.c           | 27 +++------------------------
> >   8 files changed, 51 insertions(+), 30 deletions(-)
> > 
> Hi Kohei,

Hi KhaiWen,
Sorry for the late response.

> 
> I am currently working with Vinicius on a fix for wrong hardware timestamp
> in tcpdump (https://lore.kernel.org/all/20261111053728.2611070-1-khai.wen.tan@linux.intel.com/)
> 
> We have came across your series are also fixing the same issue. I would like
> to check about your current status on the v2 for this series, we are
> planning to implement your fixes (skb_get_hwtstamp() helper) into our patch,
> so we would like to ask if you currently have plan for the series v2. If you
> not having plans for this or don’t have time for this, may we include the
> first patch of this series into our patch, the patch authorship will still
> be kept to you?

I'm not currently working on a v2, so please feel free to incorporate my
changes into your patch. I'm fine with either keeping or dropping my
authorship.

Thanks for taking this forward!

Thanks,
Kohei

> 
> Best Regards,
> KhaiWen

      reply	other threads:[~2026-11-23 15:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-29  9:16 [PATCH net v1 0/3] af_packet/tcp: fix late hardware timestamp handling Kohei Enju
2026-04-29  9:16 ` [PATCH net v1 1/3] net: introduce helper to resolve hardware timestamps from skb Kohei Enju
2026-04-29 21:04   ` Willem de Bruijn
2026-04-30  4:50     ` Kohei Enju
2026-05-01 20:25   ` Gerhard Engleder
2026-04-29  9:16 ` [PATCH net v1 2/3] af_packet: use skb_get_hwtstamp() for hardware timestamps Kohei Enju
2026-04-29  9:16 ` [PATCH net v1 3/3] tcp: " Kohei Enju
2026-04-29 21:09   ` Willem de Bruijn
2026-04-30  5:07     ` Kohei Enju
2026-04-30  6:09       ` Eric Dumazet
2026-04-30  6:52         ` Kohei Enju
2026-11-23  8:36 ` [PATCH net v1 0/3] af_packet/tcp: fix late hardware timestamp handling KhaiWenTan
2026-11-23 15:31   ` Kohei Enju [this message]

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=awRbgl7vlFO-c3Q6@x1 \
    --to=kohei@enjuk.jp \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=gerhard@engleder-embedded.com \
    --cc=hong.aun.looi@intel.com \
    --cc=horms@kernel.org \
    --cc=jonathan.lemon@gmail.com \
    --cc=khai.wen.tan@intel.com \
    --cc=khai.wen.tan@linux.intel.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=vinicius.gomes@intel.com \
    --cc=willemb@google.com \
    --cc=yoong.siang.song@intel.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).