linux-next/drivers/net/team
Daniel Borkmann e78c20f327 team: Fix feature exposure when no ports are present
Small follow-up to align this to an equivalent behavior as the bond driver.
The change in 3625920b62 ("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 3625920b62, 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: 3625920b62 ("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>
2024-12-16 18:23:12 -08:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile net: team: use policy generated by YAML spec 2024-04-02 18:24:32 -07:00
team_core.c team: Fix feature exposure when no ports are present 2024-12-16 18:23:12 -08:00
team_mode_activebackup.c team: change the getter function in the team_option structure to void 2023-08-08 15:04:05 -07:00
team_mode_broadcast.c team: remove unreferenced header in broadcast and roundrobin files 2023-08-08 15:04:04 -07:00
team_mode_loadbalance.c team: remove unused input parameters in lb_htpm_select_tx_port and lb_hash_select_tx_port 2023-08-08 15:04:05 -07:00
team_mode_random.c treewide: use get_random_u32_below() instead of deprecated function 2022-11-18 02:15:15 +01:00
team_mode_roundrobin.c team: remove unreferenced header in broadcast and roundrobin files 2023-08-08 15:04:04 -07:00
team_nl.c net: team: use policy generated by YAML spec 2024-04-02 18:24:32 -07:00
team_nl.h net: team: use policy generated by YAML spec 2024-04-02 18:24:32 -07:00