]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
team: Fix initial vlan_feature set in __team_compute_features
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 10 Dec 2024 14:12:44 +0000 (15:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:19 +0000 (18:13 +0100)
commiteddf3105e6198a371af484b91bc5472c7a2bf6c0
tree5f481d579c205bce8e0447582703e50bbb242509
parentc6b9b1f67b6d6d4188a10d0acc9baabea3130fd3
team: Fix initial vlan_feature set in __team_compute_features

[ Upstream commit 396699ac2cb1bc4e3485abb48a1e3e41956de0cd ]

Similarly as with bonding, fix the calculation of vlan_features to reuse
netdev_base_features() in order derive the set in the same way as
ndo_fix_features before iterating through the slave devices to refine the
feature set.

Fixes: 3625920b62c3 ("teaming: fix vlan_features computing")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Nikolay Aleksandrov <razor@blackwall.org>
Cc: Ido Schimmel <idosch@idosch.org>
Cc: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20241210141245.327886-4-daniel@iogearbox.net
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/team/team_core.c