Article View: linux.kernel.netdev
Article #10792Re: hv_netvsc: user-configured RSS indirection table is zeroed on MTU change
From: Aditya Garg
Date: Wed, 04 Nov 2026 05:08
Date: Wed, 04 Nov 2026 05:08
59 lines
9975 bytes
9975 bytes
On 29-10-2026 14:40, Amir Boussejra wrote: > 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()`). > > Hi Amir, Thanks for reporting this bug I'll post a fix for this and notify here as well Regards, Aditya
Technical Details
Message-ID:
<c3ec0e88-5077-4eee-8ed8-9b2f71f00b0a@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-356196-linux-kernel-netdev=dewy.ruReferences:
<40fb2352-4859-4334-849b-f6a4229605a1@boussejra.com>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-356196-linux-kernel-netdev=dewy.ru From: gargaditya@linux.microsoft.com (Aditya Garg) Newsgroups: linux.kernel.netdev Subject: Re: hv_netvsc: user-configured RSS indirection table is zeroed on MTU change Date: Wed, 4 Nov 2026 10:38:39 +0530 Organization: Usenet Network Message-ID: <c3ec0e88-5077-4eee-8ed8-9b2f71f00b0a@linux.microsoft.com> References: <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="3329745"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:resD4QMCobPmoSh33gR7g+fmcxQ= sha256:Gh66golEk2O3+IggB9SIc48GkjjIhtYac3KSk9TjKR0= sha1:h6uW02lPf+5qOWDfrKh54m1cGtE= sha256:V+SOHiukAmuzjPQnu0ap8mzZLbdJvtQh2syfjYCdPYM= 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 7F547112AE1; Wed, 4 Nov 2026 08:09:26 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 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.249, 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 (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 5JveUA6lM9Ca; Wed, 4 Nov 2026 08:09:19 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-356196-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id B65D6112A93; Wed, 4 Nov 2026 08:09:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 9C6DA29A49; Wed, 4 Nov 2026 05:08:48 +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=1793768925; b=i3WTHMGuOcGKNbohXDyNXxMthHMD5FwLbgWjR2VT3XrcOdT8jXqJydlweuEG3EpUQzIT ywpUvCXQm6LhqeuZKkbohEpfRbdWpQTg7DEFudz3a2bB8JNSiupGtGzpRiw1bWVpPVkyy DoS5pkacc5nJ7PJjQ3onZoZxLMTHb1LEeI+fTjyElLdQUDCenmYkMqQzj7QaEOygYNCDQ 6DhK9wNDmqO/wr+bUm2vLDbcAMqsX3HCdqIU3519+IylgaqQgTDwAZvvIdXFXIHNcJ3MQ FWOPFnCZrN/0kK5zH/w4MzCWLfNzucD9eXVQojNOPdNfLHv2G+qQUit0BrKRjW/i4sQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793768925; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:Message-ID:Date:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=n0Xywr94Vk3WtL8YoWlzK4ISWgOH/R1JCv5dLFPIkIM=; b=ht0jJVawfBrGzhl3EgrUJ4EbtuingvnDjQ0MovtAK/eL0xxqTNwqvFN/Ul7BLwOsSmLS lZXPLLAWom+WIcTxKcrebJ0UQYn4u+gfmC5VKYkTEhFUuGmQgtbrxBbOOCVnPANqV/XG+ loqoCCvEU1tV7aLpBZrL2I0AckFTDC2dK1TL/hH7DUOzf7erDo5ldyUUbQy8TrRjKXMhn taiJ4KV3XJszZ79uSE06P8j6XUzD3+bbVjVuszhRPLBQo4WuJXaM2rwPxXZ3K8d6wy3qQ hJVEUsdpuKKfr4sa+ghCUXm9p2VUZ8BtN0JQgPAFyyt9JSR5c3in8riviL0lB7TKloA== 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=sBtyhiUk; 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 C686F606A334; Wed, 4 Nov 2026 05:08:45 +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=sBtyhiUk 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=1793768924; b=IJdv3YrWNpdIYv7OM398L0pFhqMKhhtQ49uT0pOMXGrYTmewMB8BfDnFB0KEDX6OcoFL 73XFcYxdxYU70WaWhsGsOyhOBQqwYA+weUKkWQHBLaESSfxzXWGbLEnz4OEDEBaiw908/ qa7KNOJlQwvEIF0Jkj4QhVuFeDoX4Iq6+aYeiVLlBBH6PEVDwTk2qn01+hbrHctpn3f/5 3Fh8UD/gdCXGBOvy5LxEIJipaZRGqBP4Bzet7NX61dfKXrYKIQHvXiUQ/lwZSLzBrzxGn tERbt6Mrtqgt0JtQr3CZY73AADw+9T3NxiMAO/FwHJsbQMRonU7eFCvKqLX8la/0a8g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793768924; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=n0Xywr94Vk3WtL8YoWlzK4ISWgOH/R1JCv5dLFPIkIM=; b=nPwVNTPGdb32M13LHZfB4jN0EIkPMEssOkqVLUOIoc6/KqN6sZYS4r7rVBnvN0/oMOdQ E0oor+IKouu3LhAnNRmai2Aa8IadfvuF3BJl7Pmayi7Xre/mcvP+Ge8sshzteDxnvhZ5u qp55AppODLpy2kIXULnJUOtWV/G8jITDcUL/mARSbm8a92aqEEz1s1cksF3Vz4yIqWkAN rLrCwPuf1Fv8FNjgpfl4es/wgzZsG60ftlTlTzrJP0wN9Ue9kHX1FHdGXyiksIygwhWEJ oUCPlXrrxM/rBMrfnHy28CinDHDsEzYWtHqBzVJkA3mGY5R1Se8yWvoA/4pawvFwqSw== 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=sBtyhiUk; 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 84C37606A326; Wed, 4 Nov 2026 05:08:44 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 84C37606A326 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 [192.168.1.7] (unknown [103.212.145.77]) by linux.microsoft.com (Postfix) with ESMTPSA id 88CC920B7166; Tue, 3 Nov 2026 21:08:27 -0800 (PST) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 88CC920B7166 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1793768908; bh=n0Xywr94Vk3WtL8YoWlzK4ISWgOH/R1JCv5dLFPIkIM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=sBtyhiUkjSOC/y4YU7Q21hwoxP7b2bPy3yWUAXMGrspoYU6r5YJoWUxbiU4IRvLbk /tZfk/4PiSP0xw10D+e45eGHP/iBPIXSq3nwkE0Ldk18NG74S4XnxOMi5T10kFk22t E2t3gAlfocgO7RXnyG7s3rJ2BFSso9F36oI52sXQ= 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-In-Reply-To: <40fb2352-4859-4334-849b-f6a4229605a1@boussejra.com>