πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12676

Re: [PATCH net 1/2] virtio_net: Don't DMA map the kernel image for the AF_XDP TX header

#12676
From: Haishuang Yan
Date: Sun, 08 Nov 2026 17:23
17 lines
9801 bytes
On Sun, Nov 08, 2026 at 05:41:15AM +0000, netdev-bot+sashiko@kernel.org wrote:
> > and binding an AF_XDP zero-copy socket fails with -ENOMEM. Even where
> > the mapping succeeds, the header shares cache lines with unrelated data.
>
> [Severity: Low]
> Does the second sentence here match what the patch does? It reads as
> though the patch also gives the header its own cache line.

[ ... ]

> Could this sentence be dropped, or reworded so it doesn't suggest the
> patch provides cache-line isolation?

Agreed. The header is only mapped DMA_TO_DEVICE, so the sentence
doesn't describe a real problem, and the patch doesn't change it
anyway. I'll drop it in v2.
Technical Details
Message-ID: <20261108172417.56607-1-yanhaishuang@cmss.chinamobile.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-358661-linux-kernel-netdev=dewy.ru
References: <20261107125723.33547-1-yanhaishuang@cmss.chinamobile.com> <20261107125723.33547-2-yanhaishuang@cmss.chinamobile.com> <179411647562.994134.8636776015987575971@kernel.org>

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-358661-linux-kernel-netdev=dewy.ru
From: yanhaishuang@cmss.chinamobile.com (Haishuang Yan)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 1/2] virtio_net: Don't DMA map the kernel image for the AF_XDP TX header
Date: Mon,  9 Nov 2026 02:23:54 +0900
Organization: Usenet Network
Message-ID: <20261108172417.56607-1-yanhaishuang@cmss.chinamobile.com>
References: <20261107125723.33547-1-yanhaishuang@cmss.chinamobile.com> <20261107125723.33547-2-yanhaishuang@cmss.chinamobile.com> <179411647562.994134.8636776015987575971@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="98020"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:uRUNtYlFHsBfAdUDdfA/VsrbePI= sha256:JNdjRPDINnJQj1GVtDnGhGlDK09yyQLzZ2gKDLU1u9A=
	sha1:XCup24oXojGsxGqvcAwMOFjTvn0= sha256:PmzJx2SD31jyWPXhMSbh0kEXuQEB6yh2pEWQnHHq/6s=
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 847A61130BC; Sun,  8 Nov 2026 12:25:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.749
X-Spam-Status: No, score=-2.749 tagged_above=-9999 required=6.31
	tests=[DATE_IN_FUTURE_06_12=0.001, DCC_REPUT_70_89=0.1,
	DKIM_INVALID=0.1, DKIM_SIGNED=0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key)
	reason="fail (body has been altered)" header.d=cmss.chinamobile.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 8ZXwOl1v1X-S;
	Sun,  8 Nov 2026 12:25:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-358661-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id C3B1A113525; Sun,  8 Nov 2026 12:25:25 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 05BFC3648F; Sun,  8 Nov 2026 09:24:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794129888;
	b=3htR1+WkSO5PikIsg5Y1oiA8T1vRH62rh67aKcgcSPzY0dt/OA3K8sN3+AK7RQaMsj1s
	 B/B/l4QfTB8PRjoWs+a4tsKb/rRDqO9pIPvqhQU1OMf0aBU0Zpn8tX/k9i+tuRvxgiuhJ
	 Q1c4EBGFKXJaGhRD+qqIyYL0cyiIWzKYTXpJrP/amRcK04v/oMu3amb8yQckTuH//amCx
	 fJ0jQkZBVYX7aaNyume+PvMZKtdikCV74vMUC8tsm9MWSwiLr2dn6xpMHzytATe+ZAg2u
	 6NvDn0r3DxHe8EA9v85OnsXtrEFbtKyNtnoEf5VdLc5QoPsULaykzrcB8Qr3q3pDOmQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794129888;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo:
	 X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:
	 Received:X-RM-TRANSID:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=PnzH+B+BQHmWRcHqdfcGVVstdJf8NJtY2FdKLBnT8BA=;
	b=pi9IMgAK+KCKLK/5THXBJ4odvbQ1Bjwk5jA7XA8dh5wqOgeDxGn6p2FXAIoEZkSjXL2Z
	 nKz+q00rw0EO4dUEz5TkmG0Xt5GuhzTR114dcO9g7EsxY/ESNl5Libx/QZhzR7yoyD429
	 NgK6MZoYqDltmM6wUH7VVCMjyyWuklUY87MNTJsJy8ZOp5cX7EyabA8LeSQDwyvbCugzY
	 Zu/Zr3T4ojvHh1GC6onyn4ki5+6y1HQGP/Orfn9rlk1Ky5pjslm98aWMqNhl+BsHVuR/d
	 yqjfYyo6yD41thaS6eS0z34qTIuLs0Z7QbFOcd1v6Ro3GcZdRXCFozT+K9lvc9QfpYw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=P6HdDUCZ;
	dmarc=pass header.from=cmss.chinamobile.com;
	spf=pass smtp.mailfrom=cmss.chinamobile.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FB43606A320;
	Sun,  8 Nov 2026 09:24:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=P6HdDUCZ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.137
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794129877;
	b=5sgkBaMfTezJSNamMFBbeYtnWfAoiBnDv+yBU/cwc1kgYSU5Xb98r6Ajb+ObPRTOVOcJ
	 pXozCSqD7G5pGi7emR8/q7N3gfmawjDUmagQQPYkvynsGlHWpt/vcXLrgvTJP8zUGGDWU
	 yPKs68pkbjGSicgdWVOy7X7goa4/KVw3Z8ZhE/vyWDWeyMvNrNGkT6XvayjZs4Qk6+17r
	 EIZfqMhKyapEa2wQvdCZhJnqgsyVaCAbGMlooBwb220GvH5/8ZsmpxNnYTNGVU9BcEiji
	 1IGUrTUBFTphmt0ci53sPvh9R55ieETzJWRCMxu38L+cd/DgpQEYpPLZ5P+bwlBCh4Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794129877;
	h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:
	 X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From:
	 To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 MIME-Version:Content-Transfer-Encoding;
	bh=PnzH+B+BQHmWRcHqdfcGVVstdJf8NJtY2FdKLBnT8BA=;
	b=u6lnBriWkO/IT/STdue0S/unIpFazF26IJziWxRfj3101nifgJXw4MpwYUb4sD8mmCpU
	 0O90y2NgWTguoJBIAELATahep/ldP6/6MWbZHGG0kX9hfV2ntTcV686i3FLXoFkTefb1H
	 IarGBA/ODuCibrlAGdfTNHehT5Zd8uXncWKE1qWSHyvoZZi5LGP2ZvszB2e5xJGTBTgaH
	 xDqV2z+WSDloBkPs5nkDjo/YiPQDevqArn1b/Lp6omGiVBANsw2wnxeZOpSRlzixFy0AN
	 GCSqeDF/6NXYd8rnrPTZQXW8CorV9L4W1ecyRAYy+a4OF3fRUk+XP7opC8DVKhATlrg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=cmss.chinamobile.com;
	spf=pass smtp.mailfrom=cmss.chinamobile.com;
	dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=P6HdDUCZ;
	arc=none smtp.remote-ip=111.22.67.137
X-Received: from cmccmta4.chinamobile.com (cmccmta4.chinamobile.com [111.22.67.137])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id F36D5606A321;
	Sun,  8 Nov 2026 09:24:34 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F36D5606A321
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=cmss.chinamobile.com; s=default; l=0;
	h=from:subject:message-id:to:cc:mime-version;
	bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=;
	b=P6HdDUCZ2dodrGT4fxgKTi+gcM2AkdrIy1MRstIFj6tiyIi5AAWFz+a1KqJgaNoDq3kdT/LXsx/Ol
	 8lpjzTROB9Pi98FQQudt3FpG6rLUHyHcUubKzESAblFP6B7rF2p4zESaYABsJ7axqy7o0Q+xxQxy2i
	 OhHS1Qcf+NsKrn+M=
X-RM-TagInfo: emlType=0                                       
X-RM-SPAM-FLAG: 00000000
X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87])
	by rmmx-syy-dmz-app04-12004 (RichMail) with SMTP id 2ee46af03fcbe3e-5aacf;
	Sun, 08 Nov 2026 17:24:27 +0800 (CST)
X-RM-TRANSID: 2ee46af03fcbe3e-5aacf
X-RM-TagInfo: emlType=0                                       
X-RM-SPAM-FLAG: 00000000
X-Received: from openEuler-24.03.03 (unknown[74.82.203.40])
	by rmsmtp-syy-appsvr07-12007 (RichMail) with SMTP id 2ee76af03fc1270-639dd;
	Sun, 08 Nov 2026 17:24:26 +0800 (CST)
X-RM-TRANSID: 2ee76af03fc1270-639dd
X-Cc: Eugenio PΓ©rez <eperezma@redhat.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Jesper Dangaard Brouer <hawk@kernel.org>,
	John Fastabend <john.fastabend@gmail.com>,
	Stanislav Fomichev <sdf@fomichev.me>,
	netdev@vger.kernel.org,
	virtualization@lists.linux.dev,
	bpf@vger.kernel.org,
	linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.43.0
X-In-Reply-To: <179411647562.994134.8636776015987575971@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list