🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2214

Re: [PATCH iwl-net] ice: do not report success for a VF setting that was not applied

#2214
From: Linkui Xiao
Date: Mon, 12 Oct 2026 09:00
63 lines
8836 bytes

On 2026/10/12 16:34, netdev-bot+sinfo@kernel.org wrote:
> Hi!
> 
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
> 
>   - What hardware the change was tested on. For driver fixes please
>     mention the device (and if relevant firmware version) used for
>     testing, or say that the change was not tested on real hardware.
> 
> Please do not repost the series just to address the above. Instead,
> reply to this email with the missing information, so that reviewers
> can take it into account. If the series needs another revision for
> other reasons, please include the information in the commit messages
> then.
> 
> The evaluation is done by an LLM so it may be wrong, if you think
> that is the case please reply and explain.

Hi,
Thanks for the note. The automated check is correct; the commit message is
missing the hardware-testing information. Here it is.

This change was not tested on real hardware, and there is no Tested-by tag
for exactly that reason. The race was found by code inspection of the ndo VF
handlers; it was not reproduced at runtime.

What I verified is limited to build and static checks:

- ice_sriov.o was build tested only, with the native kbuild command line of
   an existing v7.3-rc2 x86_64 build tree (gcc 9.3.0), both with the normal
   -Wall set and with -Wextra added. The diagnostics for the baseline file
   and for the patched file are identical (zero), so the patch adds no new
   warnings. The only new undefined symbol in the object is
   ice_is_vf_disabled(), the helper the patch starts calling.
- checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.
- The patch applies to e04de0215596 with no offset, and at the object level
   only __ice_set_vf_mac(), ice_set_vf_trust() and ice_set_vf_port_vlan()
   gain an ice_is_vf_disabled() call; no other function in the file is
   affected.

I could not run it on hardware: reaching the window needs an ice PF with
SR-IOV enabled and VFs assigned, plus a PF-wide VF reset racing with a VF
configuration request. The reset side is the ice_reset_all_vfs() path, i.e.
a PF-wide reset: a PFR (ethtool --reset <pf> pfr is one way to ask for one)
or a CORER/GLOBR/EMPR completion. The other side is an
"ip link set dev <pf> vf <n> mac|trust|vlan ..." request. I do not have
access to such a system.

For anyone who does have one: on the unpatched baseline the visible symptom
is that "ip link show <pf>" and the VF's devlink port report the new setting
while the hardware and the switch keep using the old one. With the patch the
request should come back with -EINVAL instead of reporting success. I am
happy to run any specific test that is suggested.

No repost was made, as requested. If a v2 is needed for other reasons, I'll
include this information in the commit messages.

Thanks,
Linkui
Technical Details
Message-ID: <df018b17-ffa3-47cb-a259-55a9d1133e93@126.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-344836-linux-kernel-netdev=dewy.ru
References: <20261012082910.283229-1-xiaolinkui@126.com> <179179405801.2527009.14010952920802573492@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-344836-linux-kernel-netdev=dewy.ru
From: xiaolinkui@126.com (Linkui Xiao)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH iwl-net] ice: do not report success for a VF setting that
 was not applied
Date: Mon, 12 Oct 2026 17:00:20 +0800
Organization: Usenet Network
Message-ID: <df018b17-ffa3-47cb-a259-55a9d1133e93@126.com>
References: <20261012082910.283229-1-xiaolinkui@126.com>
 <179179405801.2527009.14010952920802573492@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1727258"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:y6fhleUOIPGi63VaFHQzGc0Bpts= sha256:Ambv7rQBVEKJvPNVhNJgggKTG9JTRhQxMplFo+Q0JOU=
	sha1:2ibPLKHKzk23cKX2qH/vC4qMuHI= sha256:uoTYWH1o4UFPCv2aB2OPv5v933CU2UQglFPOdL88hTY=
Content-Language: en-US
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 6C08E10FB58; Mon, 12 Oct 2026 12:10:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.748
X-Spam-Status: No, score=-0.748 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, 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=pass (1024-bit key)
	header.d=126.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 h3me5y8r2KGo;
	Mon, 12 Oct 2026 12:10:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-344836-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=126.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id BC41B10FACF; Mon, 12 Oct 2026 12:10:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id 2B5F034D0C; Mon, 12 Oct 2026 09:02:44 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 45CFE47012D;
	Mon, 12 Oct 2026 09:02:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="RQkZDe73"
X-Received: from m16.mail.126.com (m16.mail.126.com [117.135.210.7])
	(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 A2B0132B9B5;
	Mon, 12 Oct 2026 09:02:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.7
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791795740; cv=none; b=upzY9TyFzoVrZurWnRTPzUXqyrK9m6jrEpAdrbHduzmUknSAC3BubgKqzc+yguPVeHW+f2aJZ83ulXY85MJYsw6j2TyJXmLFgHHywQMxiSinj5dA5ETuLhLp/Q6TxWNR+iRG21f0CwnLXMfSWk8bzb8YS4t1dqkoP+dMl29CS48=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791795740; c=relaxed/simple;
	bh=SB2bZai9ebVlfeIEu1FPnR3qKYYYhVG244XU03adJ4Q=;
	h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:
	 In-Reply-To:Content-Type; b=I5SudAv0MRwtdUdvjy+o6SbcNKt4AXIOnCECuuebxcYH29HY+c7NaLW48BbRi0MT1JynwkDA/CL7aN4mkKOgWKQtXmMXdhJP6yqqHmXU47J4nBBoyaxUxMZMYzfboeeQNm9MWNRNWAlElQX7oIIEebpnt6Gp13RU9Tjmfpguzgs=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b=RQkZDe73; arc=none smtp.client-ip=117.135.210.7
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com;
	s=s110527; h=Message-ID:Date:MIME-Version:Subject:To:From:
	Content-Type; bh=KFxI/qq+kpw+3Ln510VqxPWXh5UrKdc6BHt7MxItub8=;
	b=RQkZDe73x2t4ySLUJ8FUpjBas02deBlTBlx6Jd7p7Q0gSTSEyHPRlwF+JVqeUS
	ikHOTCCwGV/Hq3styQwibtKLQz1gu2tH3C87vvaqMCtbzTxW+rWLD+WgtO44oRhJ
	i6s7TeO8iWwTEiondVXyrh2IyiZ8UE183TiyRaL3gfOiA=
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>
X-User-Agent: Mozilla Thunderbird
X-Cc: anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,
 andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
 kuba@kernel.org, pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
 Linkui Xiao <xiaolinkui@kylinos.cn>
X-In-Reply-To: <179179405801.2527009.14010952920802573492@kernel.org>
X-CM-TRANSID: _____wD375ikocxqYLrEBA--.58567S2
X-Coremail-Antispam: 1Uf129KBjvJXoWxCFy7AF47uFWkCryDtFyUGFg_yoW5WryrpF
	WYkan0ya1DJFy7Kr92qw4jva4S9rs3GayDWr1rKryUAwn8KF1ayrZaqw1jyasrC393u34S
	9rWDXw1DZFyqyaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2
	9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07Uuv38UUUUU=
X-CM-SenderInfo: p0ld0z5lqn3xa6rslhhfrp/xtbBqQVfNmrMoaXPIgAA3K