🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22827

Re: [PATCH net v2] vhost/net: Fix receive queue test in busy poll

#22827
From: patchwork-bot+netdevbpf
Date: Thu, 26 Nov 2026 01:10
31 lines
9044 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:

On Fri, 20 Nov 2026 11:38:24 +0800 you wrote:
> From: Xu Rao <raoxu@uniontech.com>
> 
> sock_has_rx_data() returns a positive value when receive data is
> available. For sockets without a peek_len() callback, however, its
> fallback returns skb_queue_empty(), which has the opposite meaning.
> 
> An AF_PACKET SOCK_RAW socket is accepted by get_raw_socket() as a
> vhost-net backend, and its socket operations do not provide peek_len().
> With busy polling enabled for this backend, an empty receive queue is
> treated as ready and a nonempty queue as not ready. This can make
> vhost_net_busy_poll() stop polling prematurely or fail to stop for
> queued receive data, and invert its receive-side scheduling decision.
> TUN and TAP backends provide peek_len() and are unaffected.
> 
> [...]

Here is the summary with links:
  - [net,v2] vhost/net: Fix receive queue test in busy poll
    https://git.kernel.org/netdev/net/c/cdf84b850584

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179565540977.1427026.8052845055528929913.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371780-linux-kernel-netdev=dewy.ru
References: <1B3A1B72438119BC+20261120033824.681219-1-raoxu@uniontech.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371780-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] vhost/net: Fix receive queue test in busy poll
Date: Thu, 26 Nov 2026 01:10:09 +0000
Organization: Usenet Network
Message-ID: <179565540977.1427026.8052845055528929913.git-patchwork-notify@kernel.org>
References: <1B3A1B72438119BC+20261120033824.681219-1-raoxu@uniontech.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="349553"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:bd5grwSF+Nu5h679cBnbpsuouFI= sha256:98W9xtacVBvcoFr9TXKYKuBlUfI8r92Cla2vh5LKSQg=
	sha1:ttQNEBjyCXTLIKlq3zPfQayTzFY= sha256:0qhgqAVbyyuSgVgrsl1+Qm+CutQRmh+2mXd544jc72c=
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 913E4125EAC; Thu, 26 Nov 2026 04:12:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
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 C8e8Fbr5dF_i;
	Thu, 26 Nov 2026 04:12:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-371780-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 077E7125EA1; Thu, 26 Nov 2026 04:12:30 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 67CE8603EDB; Thu, 26 Nov 2026 01:12:30 +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=1795655412;
	b=jPVNUpb8O2j54BDIUBKMaS0n7/qZ/4/sU/KpsP5YtMxXVWhE700NdIpGhn4tft+CQ2SI
	 qoEF+5HvOYymEDIwqWJi4tUGaqT0AX7WNPJWk351fvAesrgGpmQPgvS/kDHyKL58kriMv
	 t9m8dEVhqFbgQilzuWPrtfmIl9s5Z+F7qfmqp8rGDMA9xN2xAIblaE+nr9kLa/RhHUSJc
	 2e+bk5MtMEafC/4LCZT4+B+/mN05aFRJtt7KH1n4ujvaDwBxxkOtiXIf605ivdXP01368
	 V20wR7wCmsZ9IqkQBv18NuOcC9VojCJUd0iG9fRFWPfPvcVH4EuiLMmt5HTNTERdk1A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795655412;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=hLqcqMJze4p895PyhjSSj+Tnxq3rn5mo+PGedMdTRNQ=;
	b=rpu38UA5Z9qYJqMuuKlJF1G6SzlsvgANfifpYPRPRSJAtrBaFFnmgMceY1BJEPV8rCLp
	 E2aritezaXso5/zoctSYvqBojUtVdEYFFLSLzQpprFVYVJhbrRv2W/gZuqxpUnqQSh7Zg
	 o9UlVhYlISCUU7Q+J9208wg3CEkwIKEnioYTdc2XF1C0iyTn6jJRZUvTuO7k8ns/RWrRf
	 lZCXH1l/H7Lx5DXkIXSGI1Vt/vCBM061ibM5nh5VWoUhoR6fe8vKUTZNgoajq2rdu8qhK
	 LblaSS92sUstaXukGdBIWLf1/twWucSeghjmsU11MqciUm8M3o1s6PVDpszyDOXvxeg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VkAOY2HH;
	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 65EED606A692;
	Thu, 26 Nov 2026 01:10:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VkAOY2HH
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795655411;
	b=0nZEptYrCdVjNB6wEF+grTUMCt5liERAxWCTzf3soznm4FhkOpHXuxfWMdWYH5gRvNTM
	 ktt+sdW2+JIThcUR+jccclztioBl5OjZqgHOHfdIDdDrQYEQGfPAsQHUbgw57waq5AgOs
	 qwkgKjbDL2wffmsYSW8dqGo59O/SaHrqfKSNBSAQTRHY3fyBF82fKlAFoc/9e7+TSvkX/
	 /rnp+oL1CBpaF5kHjRQD8pXGaHv3gHHVwKsc0NomJ/XwehJF9tYVBv+Njmx7v77+j7S5P
	 crjutNYDwaFWBp02D23hCcce3Hz74LjU1WlU2GCu+ClIwnyGCgoUB9jbgpMesoqamWQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795655411;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=hLqcqMJze4p895PyhjSSj+Tnxq3rn5mo+PGedMdTRNQ=;
	b=FZmAwSTTZawtBFA7/6OehCElzSUzSm8j+MOTu/fDWjh4/N5wnsV6+z2NKvPAaVE0UZkO
	 K2m6P+XqEU25zLNsD958N9JMJtwQq+H70x6hGf67GAgRliJYqOnRg7FMSs0ouGqWXcyzl
	 MnrE2bSg0ASaTMT1K3KDlGBf8p0Nq/rm2CwZjU3ZW4GcMEyMt4urdxvZ58bQcKDjj97r8
	 282ydvnNuZhIrW8rdTJrudtJJjq8h9n/HA+kMQxZQGCA2g9QoFr8vBzyNs2No877CdlVP
	 UvHiXei00UmZkH2ZeWROlGn6+zNIaiwnc96Ddk/TwUCbxKdZBd6mxN08kBt4XzYFStg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VkAOY2HH;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 859FB606B74B;
	Thu, 26 Nov 2026 01:10:11 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 427B91F000E0;
	Thu, 26 Nov 2026 01:10:11 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795655411;
	bh=hLqcqMJze4p895PyhjSSj+Tnxq3rn5mo+PGedMdTRNQ=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=VkAOY2HHQuDGOkhEX07xSs9Sbgj5AzCwb6MVURp1N7KzgV8N7bCUO7HktDtB5gNTP
	 mmbgWuHHYUwQIwdpmjKPaDcgqAIfO1J3us2t7qWPrgg0RfKrBfbkAN3JccGxsC2tCR
	 y4T/GGTy2ZuOsa4DGRtYx+eHDbawNQs+kuRNzcon4rkDYyAyEbQkyy5anQB4K0Z376
	 a85nk1vGqopCXkkyCtP8Oyjr5NfkoN9qtBZsC1Nx5qPJg14SKSihH5q5itqpcUqDOP
	 dgX2v6EyO8dVnTCgRubw7OsCJA7gEPa4vOwQM2jO7pGiNmPbTHJrzd8u1LQDYQRiLg
	 s9VhpJxLlAhEA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 3A3243809A24;
	Thu, 26 Nov 2026 01:10:11 +0000 (UTC)
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
X-In-Reply-To: <1B3A1B72438119BC+20261120033824.681219-1-raoxu@uniontech.com>
X-Cc: mst@redhat.com, jasowangio@gmail.com, eperezma@redhat.com,
 davem@davemloft.net, kvm@vger.kernel.org, virtualization@lists.linux.dev,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org