From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
To: Steffen Trumtrar <s.trumtrar@pengutronix.de>,
"Michael S. Tsirkin" <mst@redhat.com>,
Jason Wang <jasowang@redhat.com>,
Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Richard Cochran <richardcochran@gmail.com>
Cc: virtualization@lists.linux.dev, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
Willem de Bruijn <willemb@google.com>
Subject: Re: [PATCH RFC 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time
Date: Mon, 18 Dec 2023 11:36:34 -0500 [thread overview]
Message-ID: <65807512bc20b_805482941e@willemb.c.googlers.com.notmuch> (raw)
In-Reply-To: <20231218-v6-7-topic-virtio-net-ptp-v1-0-cac92b2d8532@pengutronix.de>
Steffen Trumtrar wrote:
> This series tries to pick up the work on the virtio-net timestamping
> feature from Willem de Bruijn.
>
> Original series
> Message-Id: 20210208185558.995292-1-willemdebruijn.kernel@gmail.com
> Subject: [PATCH RFC v2 0/4] virtio-net: add tx-hash, rx-tstamp,
> tx-tstamp and tx-time
> From: Willem de Bruijn <willemb@google.com>
>
> RFC for four new features to the virtio network device:
>
> 1. pass tx flow state to host, for routing + telemetry
> 2. pass rx tstamp to guest, for better RTT estimation
> 3. pass tx tstamp to guest, idem
> 3. pass tx delivery time to host, for accurate pacing
>
> All would introduce an extension to the virtio spec.
>
> The original series consisted of a hack around the DMA API, which should
> be fixed in this series.
>
> The changes in this series are to the driver side. For the changes to qemu see:
> https://github.com/strumtrar/qemu/tree/v8.1.1/virtio-net-ptp
>
> Currently only virtio-net is supported. The original series used
> vhost-net as backend. However, the path through tun via sendmsg doesn't
> allow us to write data back to the driver side without any hacks.
> Therefore use the way via plain virtio-net without vhost albeit better
> performance.
>
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Thanks for picking this back up, Steffen. Nice to see that the code still
applies mostly cleanly.
For context: I dropped the work only because I had no real device
implementation. The referenced patch series to qemu changes that.
I suppose the main issue is the virtio API changes that this introduces,
which will have to be accepted to the spec.
One small comment to patch 4: there I just assumed the virtual device
time is CLOCK_TAI. There is a concurrent feature under review for HW
pacing offload with AF_XDP sockets. The clock issue comes up a bit. In
general, for hardware we cannot assume a clock. For virtio, perhaps
assuming the same monotonic hardware clock in guest and host can be
assumed. But this clock alignment needs some thought.
next prev parent reply other threads:[~2023-12-18 16:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-18 11:37 [PATCH RFC 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time Steffen Trumtrar
2023-12-18 11:37 ` [PATCH RFC 1/4] virtio-net: support transmit hash report Steffen Trumtrar
2023-12-19 18:36 ` Michael S. Tsirkin
2023-12-18 11:37 ` [PATCH RFC 2/4] virtio-net: support receive timestamp Steffen Trumtrar
2023-12-18 11:37 ` [PATCH RFC 3/4] virtio-net: support transmit timestamp Steffen Trumtrar
2023-12-18 11:37 ` [PATCH RFC 4/4] virtio-net: support future packet transmit time Steffen Trumtrar
2023-12-18 16:36 ` Willem de Bruijn [this message]
2023-12-20 3:48 ` [PATCH RFC 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time Jason Wang
2023-12-20 4:25 ` Willem de Bruijn
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=65807512bc20b_805482941e@willemb.c.googlers.com.notmuch \
--to=willemdebruijn.kernel@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jasowang@redhat.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=s.trumtrar@pengutronix.de \
--cc=virtualization@lists.linux.dev \
--cc=willemb@google.com \
--cc=xuanzhuo@linux.alibaba.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).