]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
team: Fix feature exposure when no ports are present
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 Dec 2024 12:36:57 +0000 (13:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:04 +0000 (14:02 +0100)
commited6f8d67193315a09fe0a00591ffbe0f85887a68
treebc98ea3b6ea293d68ba61646534202c92390af57
parentb38e858ab0c05ce97d9562ea2c112e313f7ce31d
team: Fix feature exposure when no ports are present

[ Upstream commit e78c20f327bd94dabac68b98218dff069a8780f0 ]

Small follow-up to align this to an equivalent behavior as the bond driver.
The change in 3625920b62c3 ("teaming: fix vlan_features computing") removed
the netdevice vlan_features when there is no team port attached, yet it
leaves the full set of enc_features intact.

Instead, leave the default features as pre 3625920b62c3, and recompute once
we do have ports attached. Also, similarly as in bonding case, call the
netdev_base_features() helper on the enc_features.

Fixes: 3625920b62c3 ("teaming: fix vlan_features computing")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20241213123657.401868-1-daniel@iogearbox.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/team/team_core.c