Article View: linux.kernel.netdev
Article #14204Re: [PATCH net] tun: delete the flow entries of the moved queue on detach
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 20:40
Date: Tue, 10 Nov 2026 20:40
27 lines
8878 bytes
8878 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 4 Nov 2026 23:12:40 +0530 you wrote:
> When a queue is detached, __tun_detach() moves the last queue into the
> freed slot and decrements tun->numqueues. The flow entries that point at
> the old index of the moved queue, now tun->numqueues, are meant to be
> deleted, but the call passes tun->numqueues + 1, an index that never
> exists, so nothing is deleted.
>
> Until those entries are refreshed by a write on their flow or age out,
> tun_automq_select_queue() returns an index past the last queue, and
> netdev_core_pick_tx() sends every such flow to queue 0 and warns:
>
> [...]
Here is the summary with links:
- [net] tun: delete the flow entries of the moved queue on detach
https://git.kernel.org/netdev/net/c/4cc0a3f89707
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179434320867.48129.7633247531885586539.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.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-360608-linux-kernel-netdev=dewy.ruReferences:
<20261104174240.138491-1-umangpokhriyall@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.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-360608-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] tun: delete the flow entries of the moved queue on detach Date: Tue, 10 Nov 2026 20:40:08 +0000 Organization: Usenet Network Message-ID: <179434320867.48129.7633247531885586539.git-patchwork-notify@kernel.org> References: <20261104174240.138491-1-umangpokhriyall@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="707625"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:EkMCjH3tXSs1R4+9bOACm4AD+bk= sha256:fMEx6gzU77Q1R/k/WFHqqgV3V0ZQVli+qQV3t5P1FsQ= sha1:kQO6gkOTuKzNSXcYA9D7HsUw10U= sha256:vX2HkqeRmeY0+DRhdGjp8ygVljn8lo/x3i/fVv9qErU= 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 AEF1C113D45; Wed, 11 Nov 2026 00:35:27 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 sc4-ltvjG9L2; Wed, 11 Nov 2026 00:35:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-360608-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 0BD1D113D40; Wed, 11 Nov 2026 00:35:11 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id D46031854F0; Tue, 10 Nov 2026 20:41:03 +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=1794343216; b=1H3Vy/8LM/GxUs4qSeyXfrSeCTy2hQWU0btfxS5BVleLNzgjQK1RiJ6nU0NOrYKA9xCy 6eyMKuX9mgGNpWNOiZPw5R04Hr7u88wzxaUmjqc7Kvxu34Ve5aCzoAVFme0YxepQNLU10 ZNsospcicHPG0rg+xikQd3r9yqZOV+Jcju8Jvv/m3RACOvuAi7DftpeQUsb8nVomroyeY F0J5l63rYGK0no/fZc5DCDk82awJkkDkESyP8hiIve2JCodeu+rvaYd+pTPJGTTeqMG3k op6YDBPaCOXduiJee8DjgdBX+Afi53VZ6K3ItIOYqzVpav6wDgR0CVvX1YDp3mY353g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794343216; 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=tH7VEUdf+F5G4QVeqrk092cc8aMIfb8V1vO/1TFqi0s=; b=yAIPT/ewLgYhSm01qiQYzckxxLVVdN8fIlT9qL6qq+m3VYvUEL/BUk9YmQBiRcATmnW7 QNEDWhCaInrFLnOf9AqhxeEWagwuaqI6oxKXnocRjMxcRSTDNaaGwKTAxRPAcA3/FmbUB M+8Ph9Oz0GEmxuRuI2BPgQ3GxtlTcpnrx3Z6HG5XhFuV1cl1w9GRWeUdttIfiLUgZm549 DbTic6tvOVLlOGvOPkmvOLpBUpuGSWCwPjkh1DSk4bUNlR1Fo+ywcWdYa9ZdRUKXrqqDY fVIZgTWyduHjRT2++3qYcW/mPtvi9TZpxxPD9BuHtvM6a3xwJubw2Jschq4gMISQc0g== 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=DwnCAze0; 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 ACC7C60A3833; Tue, 10 Nov 2026 20:40:16 +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=DwnCAze0 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=1794343210; b=vR3FDiK0KinIPCXOM1TekuWmvFahvGf69DIhVkb5nrY0XwXPbirNs3cn0VOg9/VcEg62 DIew56X5hcvs8Zk3F1tv+OOus41iCdPwbpgfrkvQ+okOAkJqbBUCYMpLUXB9clFi61w6x Kq36SwU7yOw0LaR/4JyHoS2tbOQ1oSKLScb5ygZUwKhQ4dgRoCOPiSXJ5/CS2g9QOeeAo h4PhZEBIO5NASlKbfcE2zkVuq5SZtCyHoEZEghHLbZrh32N+OhVCdt8iJMKYg8xt/daZH rJWZhHcshxuM0UR6zH30eIU2ao0gunXB/KWcpEAXzl3ZBC6cstjp0A++aTaBNElizOA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794343210; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=tH7VEUdf+F5G4QVeqrk092cc8aMIfb8V1vO/1TFqi0s=; b=E2TOK1Rl5c+t4J/kL4cJESEXk1WutG47MoEr2uan/jzLyXhaTGEZ7eV5w8HlumP3oa2L 63biIt1X+yRhO007BotnUI+aDddNikLgmfKHHDJuMs8lO1tRr6two+ZT5enLHFpgDe9aA fz99HqtZygHaVNCkivwWXFbCU0hXYxZz668phEJxS6JZvKUWmCmrKuyF1hHtQfFBXoLop 0/4tEXWD7QZBLay5Mws9qHBjcZdxH3lVLcXyPdrAGllbn6rP1AHo8ief67ATXIMHI3d9t pf0tntH7dpMsDTU6bVZHeAc+ZXTfojjkJOQKamSt2D3AmwzjgMZTYxxhuyDZz+tfeIg== 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=DwnCAze0; 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 8E10D60A3812; Tue, 10 Nov 2026 20:40:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B14B1F0089F; Tue, 10 Nov 2026 20:40:10 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794343210; bh=tH7VEUdf+F5G4QVeqrk092cc8aMIfb8V1vO/1TFqi0s=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=DwnCAze0sSTut+Dgb4VfT/uuQuZyOMhw5X6/Xejt/ODP6tUm1/nJt4qclP0LUD45/ WsuHhJRkg+BJ3purSl/wxLt/Q9utnuZehp1mB9+auMaV6eTZgJDv6US3M0MVqa76N2 yUr4wKX2zMvsKcgGfO4HYjh5wuYrHkbXc8FGbmKgLfClP7xeKFAv98EQ68O/NFeTb/ W/AlTYq22g9dpsE5393qqFFgNRfsJvUzpDbADHZRbLq9ZiYGy/K6MOQcFGzICxYFWr glfSJdhX6Cvu+qSfFwKCJC0LnYjRg7h0rkzpdhgNuzvR1xjeAJR4KPpowtif9lJLfR naYGrHFXdynqw== 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 2110239D6577; Tue, 10 Nov 2026 20:40:10 +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: <20261104174240.138491-1-umangpokhriyall@gmail.com> X-Cc: netdev@vger.kernel.org, willemdebruijn.kernel@gmail.com, jasowangio@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org