🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5304

Re: [PATCH net-next v7 11/13] net: mana: keep a user-configured RSS table across a queue rebuild

#5304
From: Wei Hu
Date: Tue, 20 Oct 2026 04:30
35 lines
9777 bytes
Hi,

> Does this silent reset desynchronize the driver from the ethtool core?

I will leave the ordinary allocation path unchanged in v8. The stale
user-indirection metadata is a real gap, but both upstream bases already
reinitialize the RSS table in mana_alloc_queues() without clearing the
ethtool core's user-table state. It is not introduced by this series.

A hardware queue-limit reduction during reattach can make a saved user
table invalid. Rebuilding a default table without reporting the loss can
then leave the core describing a user configuration that no longer
exists. I am treating this as an independent baseline issue, not claiming
that documenting the silent reset makes it correct.

The specific later-growth scenario also needs qualification because the
inspected reattach path monotonically clamps apc->max_queues. The stale
metadata and missing loss notification are the more direct issues.

> Can we safely call ethtool_rxfh_indir_lost() here to keep the states
> synchronized?

Not solely on the basis of its initial RTNL assertion. The notification
call chain also reaches netdev_assert_locked_ops_compat(). MANA registers
net_shaper_ops, so that check requires the netdev operations lock. The
reset worker holds RTNL but not that lock.

A separate correction needs to account for the notification context and
locking of every ordinary allocation caller; an unconditional helper
call at this location is not sufficient. That broader baseline fix is
outside this queue-set revision.

Thanks,
Wei
Technical Details
Message-ID: <qset-v7-sashiko-11-v8-plan.20261018.weh@linux.microsoft.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-349038-linux-kernel-netdev=dewy.ru
References: <cover.1791710735.git.weh@linux.microsoft.com> <e3a74aa4b30eb004c9a9f16168b734c563f27a15.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175611@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-349038-linux-kernel-netdev=dewy.ru
From: weh@linux.microsoft.com (Wei Hu)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v7 11/13] net: mana: keep a user-configured RSS table across a queue rebuild
Date: Tue, 20 Oct 2026 04:30:43 +0000
Organization: Usenet Network
Message-ID: <qset-v7-sashiko-11-v8-plan.20261018.weh@linux.microsoft.com>
References: <cover.1791710735.git.weh@linux.microsoft.com> <e3a74aa4b30eb004c9a9f16168b734c563f27a15.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175611@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3782002"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:U2z6i2oSAfRXihIkd5mh2shSCpc= sha256:NcWaUbIu7cnoXkYgZC1UIY20cDIri2V5pGaYQrLm+go=
	sha1:3LpKLlZezhhmpMAYBtjYCk/2Wrw= sha256:/HzRcN6P9wA0QIAh2MbyVqVgiSvRvLA2VEyKR1bdshc=
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 E8738110BFC; Tue, 20 Oct 2026 07:32:58 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, TVD_PH_BODY_ACCOUNTS_PRE=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.microsoft.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 ThyVE-ac_H2V;
	Tue, 20 Oct 2026 07:32:56 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349038-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 20FD8110B39; Tue, 20 Oct 2026 07:32:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 93A6F492DB; Tue, 20 Oct 2026 04:30:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1792470656;
	b=PdZVODWg+X8/guvdS8a+5aXSCMDhQJUpY/KxOtqhneEIsdxpl0nz1GH+c/XLNIkijqsy
	 d8JVq/gjCQAOUVzA4T3qzp71fb5UpAbPvft5k8zfLtOp1N/Jh9OzAsGLF4djuU7lJS2sB
	 vhKQRvkzQWGmxUG1PGbNeuvldN5omC03drNSdsU9Jd9Eg+9SJo6/9RFNBg5xdyWbTZL0K
	 lROMy8C1p2Q8Hc6PLZhN9X2JEgWVFkLkKKS7oRwVnezzValmsiRd/+SUC6dTfB7tdTn8H
	 VFZNmO9oJZkSyvjQuV3ebWsD/OhVKmuYFTht5MHvY9/cOYcJGTWadqk8obRoLu+4ZXg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792470656;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter:
	 DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:Content-Type:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=evJDRcYvjGByMN0JJryLMQYDG6jXpQjI7EC08Okq49w=;
	b=zTECfUh6O90qWzbEG5TUrpIsqpH/4TGvSp/zvJMzBL2UQovhVkopaCt8dGYlegOuZerA
	 5l7O6wQl27z13RrImfuFdkz1s5USSUUSON99ZIwQ7tLxz7ba4ecfpy3DL31qZSzqNvrN9
	 Cyq0d5qh5PSO5JXg7AaOsSBKR2Li9/ymXLD3Tzih+htTotXgfo6wzYpPqY9on+7qSj6FK
	 6NMCdHPCK1WT/DoCu04TlQ844g3O+9RT/5N/G6g4JdtNqtx3G9NYNK7oMXoO22DAbLssO
	 LDldrUGfloixYdHLp1+tf6V5LnhRokFp/CZHHJzlbiTCuHwlz2aqkYIzC214CrC42Tg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=A08xQoTB;
	dmarc=pass header.from=linux.microsoft.com;
	spf=pass smtp.mailfrom=linux.microsoft.com;
	arc=fail 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 3793E60A2602;
	Tue, 20 Oct 2026 04:30:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=A08xQoTB
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792470655;
	b=LbzX9l4eJDorRXv8I8T/DIL+hLG25fqEAt/ipKt98BVSEHLh1yAPpR+2M5z2VHjq8SYm
	 QAqlnG+neXKMeKPYtOjeEXZgWK3clWy9mIK+a7EDYvpoyDdK2OqJxcMSiI5qT5kxwJh0T
	 GjiW0NyQ03DLWGmj3DfFUekAZr1Sio9VZkpipMJl9YyJKE0VjwEoaMWNPctCZxcp5UhFW
	 JCYXAdSOKcxgUNNldyuy8QYT9L3R5eGDzldAYxeyZPEpwkwBpeBlJ2UkKgu7lHAvjmXvG
	 LGMC3+wl0WGsC7kMeRddUDgAcZ9HwyhJNWZdobvzkbx9JwD26mC3nig4TlqIHodFYJA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792470655;
	h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:Content-Type:
	 MIME-Version:Content-Transfer-Encoding:X-Spam-Status:
	 X-Spam-Checker-Version;
	bh=evJDRcYvjGByMN0JJryLMQYDG6jXpQjI7EC08Okq49w=;
	b=NDaaekWH4HfUuhRt6wRtpwho1ajgvOI3lg30a9RiyTG3pgeFJCrSylMB20hdCwpgjunD
	 z09bDykC+k3iNO8VrVluHyMP8nt/zhnA/8ic7JrQkTq+OYTFowtvqhbiFLP2l1WRANjOk
	 /ayQ2wtkI+xl22FR0hXvjQ1bPyHpBXF4y+xQeut1o7eEao3PBRM1nhxAhOCOkKtmihYeJ
	 yxDQE6tA9Af+2gVOYX4Bfx1k3t3k2cvQq2jFoNpiVghwWpndi3a/m2yHNbFYqoE98zNv8
	 2BfRUQ6NzcNrjm9Lc+fc/LO8G2cLyrKz1NCspClwKW+q+PTBz7jmDguYtsVtm61ZpQQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.microsoft.com;
	spf=pass smtp.mailfrom=linux.microsoft.com;
	dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=A08xQoTB;
	arc=none smtp.remote-ip=13.77.154.182
X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AE4B606A336;
	Tue, 20 Oct 2026 04:30:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0AE4B606A336
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com
X-Received: from weh-cvm-dev-vm.y50bckvjo0hefgfnzfztsfttff.phxx.internal.cloudapp.net (unknown [20.169.55.37])
	by linux.microsoft.com (Postfix) with ESMTPSA id 8859E20B716C;
	Mon, 19 Oct 2026 21:30:47 -0700 (PDT)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8859E20B716C
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;
	s=default; t=1792470647;
	bh=evJDRcYvjGByMN0JJryLMQYDG6jXpQjI7EC08Okq49w=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=A08xQoTBJFq7cC3uV60u/3C9wwIBY6UZVn+LNe0QfSxTYzlDvAUsDDMThUh+Uv+ar
	 qIdoY2f+fDcLXSBteW/+zwFWPbQJwatyE7cPfziexiy0gQ7xA2hIwCs9/QFW1m2gso
	 NkJUBwpvx+h7ZBj6E/DE0m+VaWlpuRBeW00vkNmw=
X-Cc: linux-rdma@vger.kernel.org,
	linux-hyperv@vger.kernel.org,
	bpf@vger.kernel.org,
	netdev@vger.kernel.org,
	weh@microsoft.com,
	kuba@kernel.org
X-Mailer: git-send-email 2.43.0
X-In-Reply-To: <sashiko-outbox-175611@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