🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8500

hv_netvsc: user-configured RSS indirection table is zeroed on MTU change

#8500
From: Amir Boussejra
Date: Thu, 29 Oct 2026 09:10
43 lines
9434 bytes
Hi,

On Azure/Hyper-V, any MTU change on an hv_netvsc interface silently zeroes a
user-configured RSS indirection table, so all RX traffic lands on ring 0.

Reproducer in our case (any multi-queue hv_netvsc NIC, ethtool and ip only):

```
  ethtool -X eth0 hkey $SOME_KEY equal 4
     ethtool -x eth0             # See conf
     ip link set eth0 mtu 1600     # must differ from the current MTU
     ethtool -x eth0               # all zeros in indirection table
```

With the table left to the driver (ethtool -X eth0 default) the same MTU
change is harmless: the table comes back correctly spread.

Confirmed with kprobes on 6.12.90 - these all fire on the MTU write:

```
     netvsc_change_mtu
     netvsc_detach
     rndis_filter_device_remove
     netvsc_attach
     rndis_filter_device_add
```

[`netvsc_change_mtu()`](https://github.com/torvalds/linux/blob/v6.12/drivers/net/hyperv/netvsc_drv.c#L1209)

An MTU change re-creates the device:
[detach](https://github.com/torvalds/linux/blob/v6.12/drivers/net/hyperv/netvsc_drv.c#L1233), 
then
[attach](https://github.com/torvalds/linux/blob/v6.12/drivers/net/hyperv/netvsc_drv.c#L1239).

The detach [frees the RSS indirection 
table](https://github.com/torvalds/linux/blob/v6.12/drivers/net/hyperv/rndis_filter.c#L1622)
(`rndis_filter_device_remove()`), and the attach
[allocates it 
zeroed](https://github.com/torvalds/linux/blob/v6.12/drivers/net/hyperv/rndis_filter.c#L1557)
with `kcalloc()` and refills it only if
[`(!netif_is_rxfh_configured(net))`](https://github.com/torvalds/linux/blob/v6.12/drivers/net/hyperv/rndis_filter.c#L1572)
(`rndis_filter_device_add()`).
Technical Details
Message-ID: <40fb2352-4859-4334-849b-f6a4229605a1@boussejra.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-353215-linux-kernel-netdev=dewy.ru

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-353215-linux-kernel-netdev=dewy.ru
From: amir@boussejra.com (Amir Boussejra)
Newsgroups: linux.kernel.netdev
Subject: hv_netvsc: user-configured RSS indirection table is zeroed on MTU
 change
Date: Thu, 29 Oct 2026 10:10:42 +0100
Organization: Usenet Network
Message-ID: <40fb2352-4859-4334-849b-f6a4229605a1@boussejra.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1972097"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Y29sbq5KZIX49oxB7KrLsFb9068= sha256:TDLd/NMx1Zh0rX+HARNvXfkHAiIVKR/ilakWQjKDtVg=
	sha1:NgOmdByTl5x+Xd55YvqQwVNAZj8= sha256:kJXMY2QvDDamzzyJwHH/2aMTUDaJfdnLOfR/MZPv1vw=
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 062F6125C5F; Thu, 29 Oct 2026 12:14:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.95
X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=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] autolearn=ham autolearn_force=no
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 eeqUmLgFlog4;
	Thu, 29 Oct 2026 12:14:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353215-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=boussejra.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id BF2D0125C5E; Thu, 29 Oct 2026 12:14:28 +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 407C928514; Thu, 29 Oct 2026 09:10:55 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793265055;
	b=Uo3xqC8rlPupGpDl5fBeC1id0TT2LbC+uV6UrTOksCBnGCOUC50FfR4gyZ/OizTyS+JE
	 SmwMB2gEb26YBsyrPnh+QIrfCARJcbH+YIxC5EfJHDwpJIxw0aeBo2RD7xwpC12cY46au
	 JhH1DjBGZo7ZL9vI1sqpwPVrQQ38qieoinHk7HYJjl1FsxxnxlZHRmwe4BWIubttUUwec
	 iyyFyZC+vasV9D+pcR+zRxndNZqU7X2PtQHGcv2jJFASfwzY0gxn4PvesvolY+il7x3T0
	 lE6PxwpwnMgy9rwBCPFiyxn4SxUKsXGI8Y6vDbuLUdB8KIfcLZ07lbSmYC++GUPR3kg==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793265055;
	h=X-Original-To:Received:DMARC-Filter:Received:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Content-Language:To:From:Subject:Cc:Content-Type:
	 Content-Transfer-Encoding:X-ZohoMailClient;
	bh=F6DWSfLtE1W+1C0pQQKBI9xMcUjOnxnYXDzXRNrRD/M=;
	b=tyq1Kw7kFJzUw+EeMgjR2ER0B7ojV+N6y8n9x8ZeuC0g7IofYPen5ws0ZEmgnUFJ+o0B
	 KnHKPHZF3vmYXNQwauglm91nGADAoiqLU2ntjLrO3aQiXnBXJTgxYl07G3RhJY/Wij+P8
	 PBWP2ECHmRa3raEfzHBqYec5oeItise8P5Ba/QE364q5T6Vqlux1mKGRhTHc0jj7f3BSo
	 YGHtH80BSGh1xpnzI+chNkMK6gqKUV2GeWFzGuxR3qUh8NldZ7QadnSVTwNIvqpX6/nOl
	 7PtQNO/L9pNskQQi8kVBHinasMVD5OJa6hGqP4wjYYvVys2YOwsLvNIcYyhjcCgOPEw==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dmarc=none header.from=boussejra.com;
	spf=pass smtp.mailfrom=boussejra.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 0FADF606A329;
	Thu, 29 Oct 2026 09:10:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.10
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793265053;
	b=hXvmOy4LvdnLgFbwjs6gq7Pn/jnWoVsnsLDLN/fNhT9SxZoQiado73EfaZd2B6yz3q80
	 jUtlMxhrnwMf64+lecA//bK/2bvJcJl3CchzOu6AZAAzPFSSsHQL5Oxe3HRp0wt0LFiZ5
	 TvnwNX5/G/FdieRdmFNe0uS5vmBEJ0XxSKHajikCECMtQu74tHU6OMnEMIoD01iT7WJ0D
	 D5klvFIXKhsrrl6aIbPHUvNuSwmvQUONZS+kG7PHsxHylq3IQiGlxFcptShAbOHAbOLQ1
	 1KN1BbjHIEpAg2LSvfIKWkJzbGxWLaRTlfToe2QPeWOvbLbI+XT3VNOVmHe0BE1KiPg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793265053;
	h=DMARC-Filter:Received:Message-ID:Date:MIME-Version:User-Agent:
	 Content-Language:To:From:Subject:Cc:Content-Type:
	 Content-Transfer-Encoding:X-ZohoMailClient;
	bh=F6DWSfLtE1W+1C0pQQKBI9xMcUjOnxnYXDzXRNrRD/M=;
	b=Ewg2D/E11V6Lj6Rz6J+29CUS8OlJ5tbmaKDH72cAO/7RdZSy3TtcZcV6kDVt+0rui8aC
	 i4DtOXTAb2JwMeHmPAKZ8odbM0LHvERiiQVZ/jtCMHeDRX0ISzTS6g22EP/b7XpE9G9jj
	 wr1Vs2c6VTd+WglM+lfTqxQ0D+OTuTHrr+s61r5tCabBpwptwPoB74PY5R85M7CIUjPwo
	 96SFYu9MfEsD0TbflrfO33do8LPXk0Vb03PtibiUsdi1wMH0/p7uXyZbLNKurW4cVkEJ2
	 mCCNzrVbljI+FnMvQIDpsWFw6AEmKrfgoCtqrkBCqobtU2wsPcIiVJdZ7tpDO0KKY9A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=boussejra.com;
	spf=pass smtp.mailfrom=boussejra.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.10
X-Received: from sender5-op-o10.zoho.com (sender5-op-o10.zoho.com [165.173.182.10])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56685606A31A;
	Thu, 29 Oct 2026 09:10:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 56685606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=boussejra.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=boussejra.com
X-ARC-Seal: i=1; a=rsa-sha256; t=1793265046; cv=none; 
	d=zohomail.com; s=zohoarc; 
	b=EWl9mqwxlrEB3biAxPHkWeGzFfPcQGUTHaqKlxVynSIDpIv81pLjjWhZKxxO7zmHprOcfR4ulycbHpi37OLhb56qT6gssz4T6u3+I0dZNvFeskzp01mYXR/zAZmAJaJZmL/kIOaGnOC5ycgc7Opxee7fPTsM0M1Cl8BpJ9T4EsI=
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; 
	t=1793265046; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; 
	bh=F6DWSfLtE1W+1C0pQQKBI9xMcUjOnxnYXDzXRNrRD/M=; 
	b=n0Ovo7hsQZug9icVG0q4BbDzJGPdcOypVOGOOsJxxzx9uX7HcLFHUvBLbbldO5e8Y/LMTUmYnjnMBeB/ygCYqh71fF/CRrICg5ufyC6GQ4IqPuH9qjyXfQNnkYVhT3zQVpV6zBdobh1RBcScCwaUachjOFDZu26Q3tasLxs34vE=
X-ARC-Authentication-Results: i=1; mx.zohomail.com;
	spf=pass  smtp.mailfrom=amir@boussejra.com;
	dmarc=pass header.from=<amir@boussejra.com>
X-Received: by smtp.zohomail.com with SMTPS id 1793265044668760.2367521296013;
	Thu, 29 Oct 2026 02:10:44 -0700 (PDT)
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-User-Agent: Mozilla Thunderbird
X-Cc: amir.boussejra@gatewatcher.com
X-ZohoMailClient: External