* [RFC] virtio-net: AF_XDP zero-copy TX checksum offload
@ 2026-10-07 22:07 Azadeh Aftahi
0 siblings, 0 replies; 3+ messages in thread
From: Azadeh Aftahi @ 2026-10-07 22:07 UTC (permalink / raw)
To: netdev, virtualization, bpf
Hi all,
I'm planning to work on single-buffer AF_XDP zero-copy TX checksum offload for virtio-net.
Current net-next's virtnet_xsk_xmit_one() does not consume XSK TX checksum metadata and uses the shared zeroed virtio header.
I found Xuan's 2021 proposal anticipating separate headers for checksum support, and the merged 2024 zero-copy TX series,
but I couldn't find a checksum-specific follow-up implementation.
The proposed scope is to map the existing XSK checksum metadata API to VIRTIO_NET_F_CSUM,
using a DMA-safe per-packet virtio header whose lifetime extends until TX completion, with corresponding completion, reset, and unbind cleanup.
I would keep the initial scope limited to single-buffer TX: no multi-buffer RX, timestamps, launch time, or GSO.
I'd also add checksum and header-lifetime coverage using the existing XSK selftest framework with QEMU/TAP.
Is anyone already working on this? If not, does this scope and per-packet-header approach sound reasonable for a follow-up patch?
Thanks,
Azadeh
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <9DB6FE89-98AB-47CF-9B57-5F47FBB6DAE8@gmail.com>]
* Re: [RFC] virtio-net: AF_XDP zero-copy TX checksum offload
[not found] <9DB6FE89-98AB-47CF-9B57-5F47FBB6DAE8@gmail.com>
@ 2026-10-08 1:35 ` Xuan Zhuo
2026-10-08 20:10 ` Azadeh Aftahi
0 siblings, 1 reply; 3+ messages in thread
From: Xuan Zhuo @ 2026-10-08 1:35 UTC (permalink / raw)
To: Azadeh Aftahi
Cc: magnus.karlsson, maciej.fijalkowski, sdf, netdev, virtualization,
bpf, mst, jasowangio, eperezma
On Mon, 5 Oct 2026 17:28:35 -0500, Azadeh Aftahi <aftahi334@gmail.com> wrote:
> Hi all,
>
> I'm planning to work on single-buffer AF_XDP zero-copy TX checksum offload for virtio-net.
>
> Current net-next's virtnet_xsk_xmit_one() does not consume XSK TX checksum metadata and uses the shared zeroed virtio header.
>
> I found Xuan's 2021 proposal anticipating separate headers for checksum support, and the merged 2024 zero-copy TX series, but I couldn't find a checksum-specific follow-up implementation.
>
> The proposed scope is to map the existing XSK checksum metadata API to VIRTIO_NET_F_CSUM, using a DMA-safe per-packet virtio header whose lifetime extends until TX completion, with corresponding completion, reset, and unbind cleanup.
>
> I would keep the initial scope limited to single-buffer TX: no multi-buffer RX, timestamps, launch time, or GSO.
>
> I'd also add checksum and header-lifetime coverage using the existing XSK selftest framework with QEMU/TAP.
>
> Is anyone already working on this? If not, does this scope and per-packet-header approach sound reasonable for a follow-up patch?
It seems no one has taken this work forward yet; I would welcome it if you were
to do so.
Thanks.
>
> Thanks,
> Azadeh
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFC] virtio-net: AF_XDP zero-copy TX checksum offload
2026-10-08 1:35 ` Xuan Zhuo
@ 2026-10-08 20:10 ` Azadeh Aftahi
0 siblings, 0 replies; 3+ messages in thread
From: Azadeh Aftahi @ 2026-10-08 20:10 UTC (permalink / raw)
To: Xuan Zhuo
Cc: magnus.karlsson, maciej.fijalkowski, sdf, netdev, virtualization,
bpf, mst, jasowangio, eperezma
Hi Xuan,
Thank you for the response and encouragement.
I'll proceed with the single-buffer AF_XDP zero-copy TX checksum offload work and share an RFC patch for review once the initial implementation and tests are ready.
Thanks,
Azadeh
> On Oct 7, 2026, at 8:35 PM, Xuan Zhuo <xuanzhuo@linux.alibaba.com> wrote:
>
> On Mon, 5 Oct 2026 17:28:35 -0500, Azadeh Aftahi <aftahi334@gmail.com> wrote:
>> Hi all,
>>
>> I'm planning to work on single-buffer AF_XDP zero-copy TX checksum offload for virtio-net.
>>
>> Current net-next's virtnet_xsk_xmit_one() does not consume XSK TX checksum metadata and uses the shared zeroed virtio header.
>>
>> I found Xuan's 2021 proposal anticipating separate headers for checksum support, and the merged 2024 zero-copy TX series, but I couldn't find a checksum-specific follow-up implementation.
>>
>> The proposed scope is to map the existing XSK checksum metadata API to VIRTIO_NET_F_CSUM, using a DMA-safe per-packet virtio header whose lifetime extends until TX completion, with corresponding completion, reset, and unbind cleanup.
>>
>> I would keep the initial scope limited to single-buffer TX: no multi-buffer RX, timestamps, launch time, or GSO.
>>
>> I'd also add checksum and header-lifetime coverage using the existing XSK selftest framework with QEMU/TAP.
>>
>> Is anyone already working on this? If not, does this scope and per-packet-header approach sound reasonable for a follow-up patch?
>
> It seems no one has taken this work forward yet; I would welcome it if you were
> to do so.
>
> Thanks.
>
>
>>
>> Thanks,
>> Azadeh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-08 20:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 22:07 [RFC] virtio-net: AF_XDP zero-copy TX checksum offload Azadeh Aftahi
[not found] <9DB6FE89-98AB-47CF-9B57-5F47FBB6DAE8@gmail.com>
2026-10-08 1:35 ` Xuan Zhuo
2026-10-08 20:10 ` Azadeh Aftahi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox