Lines Matching refs:bond
19 struct bonding *bond = m->private; in bond_debug_rlb_hash_show() local
20 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); in bond_debug_rlb_hash_show()
24 if (BOND_MODE(bond) != BOND_MODE_ALB) in bond_debug_rlb_hash_show()
30 spin_lock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show()
43 spin_unlock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show()
61 void bond_debug_register(struct bonding *bond) in bond_debug_register() argument
66 bond->debug_dir = in bond_debug_register()
67 debugfs_create_dir(bond->dev->name, bonding_debug_root); in bond_debug_register()
69 if (!bond->debug_dir) { in bond_debug_register()
70 netdev_warn(bond->dev, "failed to register to debugfs\n"); in bond_debug_register()
74 debugfs_create_file("rlb_hash_table", 0400, bond->debug_dir, in bond_debug_register()
75 bond, &bond_debug_rlb_hash_fops); in bond_debug_register()
78 void bond_debug_unregister(struct bonding *bond) in bond_debug_unregister() argument
83 debugfs_remove_recursive(bond->debug_dir); in bond_debug_unregister()
86 void bond_debug_reregister(struct bonding *bond) in bond_debug_reregister() argument
93 d = debugfs_rename(bonding_debug_root, bond->debug_dir, in bond_debug_reregister()
94 bonding_debug_root, bond->dev->name); in bond_debug_reregister()
96 bond->debug_dir = d; in bond_debug_reregister()
98 netdev_warn(bond->dev, "failed to reregister, so just unregister old one\n"); in bond_debug_reregister()
99 bond_debug_unregister(bond); in bond_debug_reregister()
121 void bond_debug_register(struct bonding *bond) in bond_debug_register() argument
125 void bond_debug_unregister(struct bonding *bond) in bond_debug_unregister() argument
129 void bond_debug_reregister(struct bonding *bond) in bond_debug_reregister() argument