bond_choose_...y_or_current(9)
β¨ bond_choose_primary_or_current β Kernel API Manual β¨
okay bestie, the page header up top is the truncated icon bond_choose_...y_or_current(9), and the manual is the Kernel API Manual. Yes, the dots are part of the headerβs whole vibe. This page is about bond_choose_primary_or_current, and its job is literally right there in the name: select the primary or high priority slave. periodt. π
πΈ NAME πΈ
bond_choose_primary_or_current β select the primary or high priority slave. Thatβs the assignment, no cap. π
β¨ SYNOPSIS β¨
struct slave * bond_choose_primary_or_current (struct bonding *bond );
π ARGUMENTS π
bondβ our bonding struct. Thatβs it, thatβs the arg, and yes it is iconic for being so simple. π«Ά
π DESCRIPTION π
okay so hereβs the tea, in two little steps:
- Check if there is a primary link. If the primary link was set and is up, go on and do link reselection.
- If primary link is not set or down, find the highest priority link. If the highest priority link is not current slave, set it as primary link and do link reselection.
Thatβs the whole flow. Itβs giving βprimary link check, then priority link check, then reselection when needed,β and the page does not add any extra side quests. π
π₯ SEE ALSO π₯
Kernel file: ./drivers/net/bonding/bond_main.c. The SEE ALSO besties are all here, no skips:
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_find_best_slave(9)bond_change_active_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)
source/version: ./drivers/net/bonding Β· date: October 2026 Β· mwah, bye 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