Lines Matching full:bond
20 struct bonding *bond = m->private; in bond_debug_rlb_hash_show() local
21 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); in bond_debug_rlb_hash_show()
25 if (BOND_MODE(bond) != BOND_MODE_ALB) in bond_debug_rlb_hash_show()
31 spin_lock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show()
44 spin_unlock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show()
50 void bond_debug_register(struct bonding *bond) in bond_debug_register() argument
52 bond->debug_dir = in bond_debug_register()
53 debugfs_create_dir(bond->dev->name, bonding_debug_root); in bond_debug_register()
55 debugfs_create_file("rlb_hash_table", 0400, bond->debug_dir, in bond_debug_register()
56 bond, &bond_debug_rlb_hash_fops); in bond_debug_register()
59 void bond_debug_unregister(struct bonding *bond) in bond_debug_unregister() argument
61 debugfs_remove_recursive(bond->debug_dir); in bond_debug_unregister()
64 void bond_debug_reregister(struct bonding *bond) in bond_debug_reregister() argument
68 d = debugfs_rename(bonding_debug_root, bond->debug_dir, in bond_debug_reregister()
69 bonding_debug_root, bond->dev->name); in bond_debug_reregister()
71 bond->debug_dir = d; in bond_debug_reregister()
73 netdev_warn(bond->dev, "failed to reregister, so just unregister old one\n"); in bond_debug_reregister()
74 bond_debug_unregister(bond); in bond_debug_reregister()
95 void bond_debug_register(struct bonding *bond) in bond_debug_register() argument
99 void bond_debug_unregister(struct bonding *bond) in bond_debug_unregister() argument
103 void bond_debug_reregister(struct bonding *bond) in bond_debug_reregister() argument