Commit b599c79
committed
team: Fix feature exposure when no ports are present
jira LE-2974
Rebuild_History Non-Buildable kernel-5.14.0-503.40.1.el9_5
commit-author Daniel Borkmann <daniel@iogearbox.net>
commit e78c20f
Small follow-up to align this to an equivalent behavior as the bond driver.
The change in 3625920 ("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 3625920, 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: 3625920 ("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>
(cherry picked from commit e78c20f)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 0c5cf11 commit b599c79
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
999 | 999 | | |
1000 | 1000 | | |
1001 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
1002 | 1006 | | |
| 1007 | + | |
1003 | 1008 | | |
1004 | | - | |
1005 | 1009 | | |
1006 | 1010 | | |
1007 | 1011 | | |
| |||
1011 | 1015 | | |
1012 | 1016 | | |
1013 | 1017 | | |
1014 | | - | |
1015 | 1018 | | |
1016 | 1019 | | |
1017 | 1020 | | |
1018 | 1021 | | |
| 1022 | + | |
1019 | 1023 | | |
1020 | 1024 | | |
1021 | 1025 | | |
| |||
0 commit comments