Re: [PATCH net v3] ipvlan: update port flags only after ipvlan_set_port_mode() succeeds
From: patchwork-bot+netdevbpf
Date: Sun Nov 29 2026 - 13:00:23 EST
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@xxxxxxxxxx>:
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