Article View: linux.kernel.netdev
Article #24223Re: [PATCH net v3] ipvlan: update port flags only after ipvlan_set_port_mode() succeeds
From: patchwork-bot+netdevbpf
Date: Sun, 29 Nov 2026 18:00
Date: Sun, 29 Nov 2026 18:00
30 lines
9162 bytes
9162 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Fri, 20 Nov 2026 11:24:38 +0800 you wrote:
> In ipvlan_link_new(), port->flags is updated before calling
> ipvlan_set_port_mode(). If ipvlan_set_port_mode() fails (for example,
> when switching to L3S mode without CONFIG_IPVLAN_L3S), error unwinding
> calls unregister_netdevice(dev) via unlink_netdev.
>
> While unregister_netdevice(dev) destroys the port when creating the
> first ipvlan device on a lower interface, struct ipvl_port is shared
> across all ipvlan interfaces on the same lower device (tracked via
> port->count). If another ipvlan interface already exists,
> unregister_netdevice(dev) only drops the extra reference and leaves the
> shared port alive with the updated port->flags, unintentionally altering
> the flags of existing ipvlan interfaces.
>
> [...]
Here is the summary with links:
- [net,v3] ipvlan: update port flags only after ipvlan_set_port_mode() succeeds
https://git.kernel.org/netdev/net/c/2dc773eeace2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179597521124.2381430.12587432311065387750.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373650-linux-kernel-netdev=dewy.ruReferences:
<20261120032438.18789-1-sunwenbo@cmss.chinamobile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373650-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] ipvlan: update port flags only after ipvlan_set_port_mode() succeeds Date: Sun, 29 Nov 2026 18:00:11 +0000 Organization: Usenet Network Message-ID: <179597521124.2381430.12587432311065387750.git-patchwork-notify@kernel.org> References: <20261120032438.18789-1-sunwenbo@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1231191"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:nc2Wpne5HnBtNAsbbj5QuYxUjO8= sha256:GvUHAPo+HByDvcMHSpMrcprieJ/Uvk2CHqEI/wuIqnM= sha1:c5mXKYQTJLDIxGGCOlFtuPSWZ/w= sha256:xu86E7XaVutTmIPZPae6mb7Ge0w8YHelG9Pla9AaD98= 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 8677E125FA9; Sun, 29 Nov 2026 21:00:50 +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 lY56ZttoXR3n; Sun, 29 Nov 2026 21:00:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373650-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 925B8125FAC; Sun, 29 Nov 2026 21:00:32 +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 4F4A728B76; Sun, 29 Nov 2026 18:00:17 +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=1795975214; b=ZWtbUAGOLXBKF4NEjnFDScI0x1oEWLtUJQFcuzwT5tPXALW6kNNMGlPy+hzC8S6DoMJh /9khcNJ2YoL7+AlcM4+cWZzYq/jo8eNI7UQIFkdptWi0tMj53y6KD+60WJ+anXGL+9Lfk dZ6PV5H2sYmig8t1rC1b3+Va6yyrBg1RO9rqCT0FUhCVWjfQ159Uu/kvz4pcUEQ0HNhQr tTmSTqIMxZmLuJ78Nybd+44CMLNu0uK7pXT4INrOkRlaFTZSYqhQAB1UrmiXfucWylD3A s2jb9mXgQ/sjmL66bXEXU9JZKSw7Mn5JNzgJ0wmdZrVpfwpITlOH0UPXmUVFturQIGw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795975214; 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=IiZUKSi9rMnTNRQbCUFON/8xtONhquwCMJFGdoODBjk=; b=CBCjLWZjhv43PJh0KmgXOzk22EUdQ9au4DumcAxswmbsm7ZTmj0stQ79ddD0Pqqt7MuI MHGIL2V2x535ap8WrOaoAXsNisQ2ZbshNyICOA7vSW/1B39JXHApP0Aqx5nssM5tVFScx vd/ev3a+jN0dURoC0O6YHN+O0IanaPBMofhq5X87Y23PZulVIS5EHWyU1XEaOVEIGU6AZ HYDmiTAlORy3G0/csfwEmrRMJ4Iyq81PvFFZ3UndujyvRCUv87BgAlqltPS6sscwVa6vt pRcPbgzIl6m3wupaW/RBetbUOkckCAc5bm3Ep4+eSvb1WhwDHeltC/4RQ6/ubDkO9Qw== 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=l7NPzjqd; 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 F022C606A69A; Sun, 29 Nov 2026 18:00:13 +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=l7NPzjqd 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=1795975213; b=nWwHv+4nwMlE5EhRpn8+JONBJfxZlu1uTzv9PzGZdV7kIMFcdrIJ6vciIyxvX1Lx1la5 ZEZJek49PJlHFS93AUUFv/nZRkF5hq2kSUITv8yUyqogIzisFdyL3kW93at7GVu3KHx6U MdV1qemSpXoqzcsscNU5V7Hze2NV98mYQbfH3JM/0rxX5DuKoHAIe2lndPuyk8QvNJpbh F+V7hQifRottDHKwvjXyIBzDBg3saSwL3uI1A84nxTbNTmKKbheew0qLRqJByF3/0QQPM d8Skvp7VLWT9rx4SvXnwFYVer9lGdbuEckmRn6tl2D064yb5dbWNwhl5ifRPabWuN1g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795975213; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=IiZUKSi9rMnTNRQbCUFON/8xtONhquwCMJFGdoODBjk=; b=miyjp9vZpMSJdZYHYS91TtGgH3/RZp6aU7NFmF4RInUoJjBtokRGwNuuaa/QOc+n3QOG /PSf1w36FubXgW39t+HUneHDXzWdJTvkeR+WlLTrq5pNpj6eTuzNTJH5UE/RQsqKAYap7 8UnGDp4tduk+k82T9s4QUqZneJJb/u6lVIX2gxHojLnt2P1bq6IZTG7rXCSRH8biv60du 876wjuwQLhMq3/WH8CGspVwZo6XFZ1f5uAE1JRpmJpv0EVmD8xYQJEeUjGLjNBgHNQMHG YXQynl8XRklwkU0vtyNIFIK77TOPI2kL7Vz/Z+pi/8UzTk3pI+4IuLW9supUnFRIn5Q== 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=l7NPzjqd; 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 18C46606A333; Sun, 29 Nov 2026 18:00:13 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB9911F000C1; Sun, 29 Nov 2026 18:00:12 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795975212; bh=IiZUKSi9rMnTNRQbCUFON/8xtONhquwCMJFGdoODBjk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=l7NPzjqdOEEnNnwYiNwrzCIJtMCyP4MLhkOTzRvXXDjKX9U1J9u6zsFm1/5bDdTf2 fri112nzKkWIODgt4fqChc4pKpAJFvgc9iO2fbVWZKC9XGcG4CokQ5tHvsMXv3PLq+ 45ZJWynb+GjqrBigW0L63DSm8LmiE1++qEZPLbkjJP8NVrOusQapUHkSZ3NFcJXXex y2WlBKmGotcY2dQXyYvd3QH/HqZcnSM5foy+bZ5tpyRuPlBIVwqiTxLKNNYN05Ekqp y08sHMpAzSp0JxRAiyx6saQZSfzi0gEz2T3/dXCdTiI/Ig631AZt0y12L420sz2O4V EULvaGU19t5EA== 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 AE98F392E9E2; Sun, 29 Nov 2026 18:00:12 +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: <20261120032438.18789-1-sunwenbo@cmss.chinamobile.com> X-Cc: maheshb@google.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, hangbin.liu@linux.dev, liuhangbin@kylinos.cn, kuniyu@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 1342116488@qq.com