Lines Matching refs:bond

13 	struct bonding *bond = PDE_DATA(file_inode(seq->file));  in bond_info_seq_start()  local
23 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start()
32 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_seq_next() local
39 return bond_first_slave_rcu(bond); in bond_info_seq_next()
41 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
59 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_show_master() local
64 curr = rcu_dereference(bond->curr_active_slave); in bond_info_show_master()
67 bond_mode_name(BOND_MODE(bond))); in bond_info_show_master()
69 if (BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP && in bond_info_show_master()
70 bond->params.fail_over_mac) { in bond_info_show_master()
72 bond->params.fail_over_mac); in bond_info_show_master()
78 if (bond_mode_uses_xmit_hash(bond)) { in bond_info_show_master()
80 bond->params.xmit_policy); in bond_info_show_master()
82 optval->string, bond->params.xmit_policy); in bond_info_show_master()
85 if (bond_uses_primary(bond)) { in bond_info_show_master()
86 primary = rcu_dereference(bond->primary_slave); in bond_info_show_master()
91 bond->params.primary_reselect); in bond_info_show_master()
100 seq_printf(seq, "MII Status: %s\n", netif_carrier_ok(bond->dev) ? in bond_info_show_master()
102 seq_printf(seq, "MII Polling Interval (ms): %d\n", bond->params.miimon); in bond_info_show_master()
104 bond->params.updelay * bond->params.miimon); in bond_info_show_master()
106 bond->params.downdelay * bond->params.miimon); in bond_info_show_master()
108 bond->params.peer_notif_delay * bond->params.miimon); in bond_info_show_master()
112 if (bond->params.arp_interval > 0) { in bond_info_show_master()
115 bond->params.arp_interval); in bond_info_show_master()
120 if (!bond->params.arp_targets[i]) in bond_info_show_master()
124 seq_printf(seq, " %pI4", &bond->params.arp_targets[i]); in bond_info_show_master()
130 if (BOND_MODE(bond) == BOND_MODE_8023AD) { in bond_info_show_master()
135 (bond->params.lacp_fast) ? "fast" : "slow"); in bond_info_show_master()
136 seq_printf(seq, "Min links: %d\n", bond->params.min_links); in bond_info_show_master()
138 bond->params.ad_select); in bond_info_show_master()
143 BOND_AD_INFO(bond).system.sys_priority); in bond_info_show_master()
145 &BOND_AD_INFO(bond).system.sys_mac_addr); in bond_info_show_master()
147 if (__bond_3ad_get_active_agg_info(bond, &ad_info)) { in bond_info_show_master()
150 bond->dev->name); in bond_info_show_master()
172 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_show_slave() local
193 if (BOND_MODE(bond) == BOND_MODE_8023AD) { in bond_info_show_slave()
262 void bond_create_proc_entry(struct bonding *bond) in bond_create_proc_entry() argument
264 struct net_device *bond_dev = bond->dev; in bond_create_proc_entry()
268 bond->proc_entry = proc_create_seq_data(bond_dev->name, 0444, in bond_create_proc_entry()
269 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry()
270 if (bond->proc_entry == NULL) in bond_create_proc_entry()
274 memcpy(bond->proc_file_name, bond_dev->name, IFNAMSIZ); in bond_create_proc_entry()
278 void bond_remove_proc_entry(struct bonding *bond) in bond_remove_proc_entry() argument
280 struct net_device *bond_dev = bond->dev; in bond_remove_proc_entry()
283 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry()
284 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry()
285 memset(bond->proc_file_name, 0, IFNAMSIZ); in bond_remove_proc_entry()
286 bond->proc_entry = NULL; in bond_remove_proc_entry()