bond_change_active_slave(9)
β¨ bond_change_active_slave(9) β¨
Okay bestie, welcome to the Kernel API Manual β todayβs main character is bond_change_active_slave(9), and she is literally here to swap in a new active slave. π«Άπ
πΈ NAME πΈ
bond_change_active_slave β change the active slave into the specified one. Periodt. π
π¦ SYNOPSIS π¦
void bond_change_active_slave (struct bonding *bond , struct slave
*new_active );
π ARGUMENTS π
bondβ our bonding struct. The whole vibe container, ngl. β¨new_activeβ the new slave to make the active one. Sheβs getting the crown. π
π DESCRIPTION π
So hereβs the tea: set the new slave to the bondβs settings, and unset them on the old curr_active_slave. Setting include flags, mc-list, promiscuity, allmulti, etc. β sheβs doing the whole settings glow-up. π§Ήβ¨
And if newβs link state is BOND_LINK_BACK, weβll set it to BOND_LINK_UP, because it is apparently the best available slave we have β even though its updelay hasnβt timed out yet. No cap, sheβs getting promoted anyway. π
π₯
β οΈ Caller must holdRTNL. This is not a drill, bestie β holdRTNL. ππ
π SEE ALSO π
Kernel file ./drivers/net/bonding/bond_main.c, plus these absolute legends:
bond_dev_queue_xmit(9)bond_vlan_rx_add_vid(9)bond_vlan_rx_kill_vid(9)bond_ipsec_dev(9)bond_ipsec_add_sa(9)bond_ipsec_del_sa(9)bond_ipsec_offload_ok(9)bond_advance_esn_state(9)bond_xfrm_update_stats(9)bond_set_dev_addr(9)bond_choose_primary_or_current(9)bond_find_best_slave(9)bond_select_active_slave(9)bond_xmit_hash(9)bond_xmit_hash_xdp(9)bond_get_slave_by_id(9)bond_rr_gen_slave_id(9)bond_sk_hash_l34(9)
Mwah π β this pageβs source/version home is ./drivers/net/bonding, and itβs dated October 2026. Stay bonded, bestie. π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms