]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: vlan: sync VLAN features with lower device
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 30 Oct 2025 07:35:39 +0000 (07:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:15 +0000 (12:45 +0100)
commitbb10c0723b1b36ff429c09f6943418697478c8bb
treea9ef38a8a1651396016ecbdb4d4bcc520d4124f2
parent3b88b1e46b8e96993735701c260348a7045b84ad
net: vlan: sync VLAN features with lower device

[ Upstream commit c211f5d7cbd5cb34489d526648bb9c8ecc907dee ]

After registering a VLAN device and setting its feature flags, we need to
synchronize the VLAN features with the lower device. For example, the VLAN
device does not have the NETIF_F_LRO flag, it should be synchronized with
the lower device based on the NETIF_F_UPPER_DISABLES definition.

As the dev->vlan_features has changed, we need to call
netdev_update_features(). The caller must run after netdev_upper_dev_link()
links the lower devices, so this patch adds the netdev_update_features()
call in register_vlan_dev().

Fixes: fd867d51f889 ("net/core: generic support for disabling netdev features down stack")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20251030073539.133779-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/8021q/vlan.c