🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #410

Re: [RFC] virtio-net: AF_XDP zero-copy TX checksum offload

#410
From: Xuan Zhuo
Date: Thu, 08 Oct 2026 01:35
27 lines
6966 bytes
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
Technical Details
Message-ID: <1791423335.8486545-2-xuanzhuo@linux.alibaba.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342632-linux-kernel-netdev=dewy.ru
References: <9DB6FE89-98AB-47CF-9B57-5F47FBB6DAE8@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342632-linux-kernel-netdev=dewy.ru
From: xuanzhuo@linux.alibaba.com (Xuan Zhuo)
Newsgroups: linux.kernel.netdev
Subject: Re: [RFC] virtio-net: AF_XDP zero-copy TX checksum offload
Date: Thu, 8 Oct 2026 09:35:35 +0800
Organization: Usenet Network
Message-ID: <1791423335.8486545-2-xuanzhuo@linux.alibaba.com>
References: <9DB6FE89-98AB-47CF-9B57-5F47FBB6DAE8@gmail.com>
Injection-Info: usenet.network;
	logging-data="777844"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Jl5qI/zYYJWyy+eXVETOtkmqe1s= sha256:ZXY6CIYIX18wI/Gg8KMwBohMw33O7IkgBfCJMcUEHt8=
	sha1:sh2Bdrw5gEmx2dkup/ed6fKYOk4= sha256:172r9pii7W1L759aBi1VTluLynlfVxKfl9nRY9/9ZpA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BE4B010F2A5; Thu,  8 Oct 2026 04:37:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -8.25
X-Spam-Status: No, score=-8.25 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	UNPARSEABLE_RELAY=0.001, USER_IN_DEF_DKIM_WL=-7.5]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.alibaba.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id RY94HXsdvqhX;
	Thu,  8 Oct 2026 04:37:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342632-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 4292F10C4C4; Thu,  8 Oct 2026 04:37:06 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 3A972346BA; Thu,  8 Oct 2026 01:37:02 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id E46FA72621;
	Thu,  8 Oct 2026 01:37:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="Rvs/2ugk"
X-Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 003E919A288;
	Thu,  8 Oct 2026 01:36:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791423421; cv=none; b=QGD7w7/rveGeuNr78K5mCvaiqCpbEGGRnIKC6S93fbdmV7+h/+6hsUIC6T9q9QFu8n80xMUhKAQl/ZgtuvUdEc5tNAxqknTBlowxC628gp7UXaZ7re/GUa76+dLDtuDcvGGW9KOdIDsXOZXCfPD4oSrMrraxkk+pzIg4x+1c1L0=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791423421; c=relaxed/simple;
	bh=MwicRoOYV1zDQfwoWO+5FEWl54/aiijI+WJoGLBOTIg=;
	h=Message-ID:Subject:Date:From:To:Cc:References:In-Reply-To; b=qVRHzS96OYVwxmsvDPupH5sZsu1qHIrNTW0aBv2zW8q/6oryso6r7iroYFzSn4McGmmIHR/dCeQA0oDu62gPyvq9XqGtGo9ijNeb4S+9lsuN5meaeeSxkSL8Gk1QgqOMzBqnuS+9zYC0uMhURLDsUD/OP04bTShHfv8jKpkBUkU=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=Rvs/2ugk; arc=none smtp.client-ip=115.124.30.113
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=linux.alibaba.com; s=default;
	t=1791423416; h=Message-ID:Subject:Date:From:To;
	bh=MwicRoOYV1zDQfwoWO+5FEWl54/aiijI+WJoGLBOTIg=;
	b=Rvs/2ugkNOZXOBA/ZipiX/DCQFbz20MeKhsRrM7JYYZL82a3YmbmcFzm2NBwpcHX922QwIg16DppVZ0sJA0Pv6TEXKG7WziVhHaq6pppBjExlpfdtDi/7qnbM5AfC92Vk1/YcnNcP3LxZbmle5pvM22REJ+drYfRv6w0bOE1CsE=
X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033045098064;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0XCIFUV3_1791423415;
X-Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0XCIFUV3_1791423415 cluster:ay36)
          by smtp.aliyun-inc.com;
          Thu, 08 Oct 2026 09:36:55 +0800
X-Cc: magnus.karlsson@intel.com,
 maciej.fijalkowski@intel.com,
 sdf@fomichev.me,
 netdev@vger.kernel.org,
 virtualization@lists.linux.dev,
 bpf@vger.kernel.org,
 mst@redhat.com,
 jasowangio@gmail.com,
 eperezma@redhat.com
X-In-Reply-To: <9DB6FE89-98AB-47CF-9B57-5F47FBB6DAE8@gmail.com>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>