[PATCH RFC v3 0/2] virtio-net: add flow filter for receive timestamps

From: Steffen Trumtrar

Date: Mon Sep 21 2026 - 10:50:13 EST


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@xxxxxxxxx
Subject: [PATCH RFC v2 0/4] virtio-net: add tx-hash, rx-tstamp,
tx-tstamp and tx-time
From: Willem de Bruijn <willemb@xxxxxxxxxx>

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 changes in this series are to the driver side. For the changes to qemu see:
https://github.com/strumtrar/qemu/tree/v11.0.1/virtio-rx-stamps

Currently only virtio-net is supported. Performance was tested with
pktgen which doesn't show a decrease in transfer speeds.

As these patches are now mostly different from the initial patchset, I removed
the Signed-off-bys from Willem, so he mustn't be ashamed of what his work evolved to ;)

---
Changes in v3:
- rework to use virtio_net_common_hdr instead of adding new struct
Changes in v2:
- rework patches to use flow filter instead of feature flag
- Link to v1: https://lore.kernel.org/r/20231218-v6-7-topic-virtio-net-ptp-v1-0-cac92b2d8532@xxxxxxxxxxxxxx

To: Michael S. Tsirkin <mst@xxxxxxxxxx>
To: Jason Wang <jasowang@xxxxxxxxxx>
To: Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx>
To: David S. Miller <davem@xxxxxxxxxxxxx>
To: Eric Dumazet <edumazet@xxxxxxxxxx>
To: Jakub Kicinski <kuba@xxxxxxxxxx>
To: Paolo Abeni <pabeni@xxxxxxxxxx>
To: Richard Cochran <richardcochran@xxxxxxxxx>
To: Willem de Bruijn <willemdebruijn.kernel@xxxxxxxxx>
To: Andrew Lunn <andrew+netdev@xxxxxxx>
To: Eugenio Pérez <eperezma@xxxxxxxxxx>
To: Jason Wang <jasowangio@xxxxxxxxx>
To: Alexei Starovoitov <ast@xxxxxxxxxx>
To: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
To: Jesper Dangaard Brouer <hawk@xxxxxxxxxx>
To: John Fastabend <john.fastabend@xxxxxxxxx>
To: Stanislav Fomichev <sdf@xxxxxxxxxxx>
Cc: virtualization@xxxxxxxxxxxxxxx
Cc: netdev@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: bpf@xxxxxxxxxxxxxxx
Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>

---
Steffen Trumtrar (2):
virtio-net: support receive timestamp
tun: support rx-tstamp

drivers/net/tun.c | 20 ++++--
drivers/net/tun_vnet.h | 27 ++++----
drivers/net/virtio_net.c | 134 ++++++++++++++++++++++++++++++++++++----
include/uapi/linux/virtio_net.h | 12 ++++
4 files changed, 166 insertions(+), 27 deletions(-)
---
base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
change-id: 20231218-v6-7-topic-virtio-net-ptp-3df023bc4f4d

Best regards,
--
Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>