Lines Matching refs:seq

11 static void *bond_info_seq_start(struct seq_file *seq, loff_t *pos)  in bond_info_seq_start()  argument
14 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_seq_start()
31 static void *bond_info_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bond_info_seq_next() argument
33 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_seq_next()
52 static void bond_info_seq_stop(struct seq_file *seq, void *v) in bond_info_seq_stop() argument
58 static void bond_info_show_master(struct seq_file *seq) in bond_info_show_master() argument
60 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_show_master()
67 seq_printf(seq, "Bonding Mode: %s", in bond_info_show_master()
74 seq_printf(seq, " (fail_over_mac %s)", optval->string); in bond_info_show_master()
77 seq_printf(seq, "\n"); in bond_info_show_master()
82 seq_printf(seq, "Transmit Hash Policy: %s (%d)\n", in bond_info_show_master()
88 seq_printf(seq, "Primary Slave: %s", in bond_info_show_master()
93 seq_printf(seq, " (primary_reselect %s)", in bond_info_show_master()
97 seq_printf(seq, "\nCurrently Active Slave: %s\n", in bond_info_show_master()
101 seq_printf(seq, "MII Status: %s\n", netif_carrier_ok(bond->dev) ? in bond_info_show_master()
103 seq_printf(seq, "MII Polling Interval (ms): %d\n", bond->params.miimon); in bond_info_show_master()
104 seq_printf(seq, "Up Delay (ms): %d\n", in bond_info_show_master()
106 seq_printf(seq, "Down Delay (ms): %d\n", in bond_info_show_master()
108 seq_printf(seq, "Peer Notification Delay (ms): %d\n", in bond_info_show_master()
116 seq_printf(seq, "ARP Polling Interval (ms): %d\n", in bond_info_show_master()
118 seq_printf(seq, "ARP Missed Max: %u\n", in bond_info_show_master()
121 seq_printf(seq, "ARP IP target/s (n.n.n.n form):"); in bond_info_show_master()
127 seq_printf(seq, ","); in bond_info_show_master()
128 seq_printf(seq, " %pI4", &bond->params.arp_targets[i]); in bond_info_show_master()
131 seq_printf(seq, "\n"); in bond_info_show_master()
135 seq_printf(seq, "NS IPv6 target/s (xx::xx form):"); in bond_info_show_master()
141 seq_printf(seq, ","); in bond_info_show_master()
142 seq_printf(seq, " %pI6c", &bond->params.ns_targets[i]); in bond_info_show_master()
145 seq_printf(seq, "\n"); in bond_info_show_master()
152 seq_puts(seq, "\n802.3ad info\n"); in bond_info_show_master()
153 seq_printf(seq, "LACP active: %s\n", in bond_info_show_master()
155 seq_printf(seq, "LACP rate: %s\n", in bond_info_show_master()
157 seq_printf(seq, "Min links: %d\n", bond->params.min_links); in bond_info_show_master()
160 seq_printf(seq, "Aggregator selection policy (ad_select): %s\n", in bond_info_show_master()
163 seq_printf(seq, "System priority: %d\n", in bond_info_show_master()
165 seq_printf(seq, "System MAC address: %pM\n", in bond_info_show_master()
169 seq_printf(seq, in bond_info_show_master()
173 seq_printf(seq, "Active Aggregator Info:\n"); in bond_info_show_master()
175 seq_printf(seq, "\tAggregator ID: %d\n", in bond_info_show_master()
177 seq_printf(seq, "\tNumber of ports: %d\n", in bond_info_show_master()
179 seq_printf(seq, "\tActor Key: %d\n", in bond_info_show_master()
181 seq_printf(seq, "\tPartner Key: %d\n", in bond_info_show_master()
183 seq_printf(seq, "\tPartner Mac Address: %pM\n", in bond_info_show_master()
190 static void bond_info_show_slave(struct seq_file *seq, in bond_info_show_slave() argument
193 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_show_slave()
195 seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); in bond_info_show_slave()
196 seq_printf(seq, "MII Status: %s\n", bond_slave_link_status(slave->link)); in bond_info_show_slave()
198 seq_printf(seq, "Speed: %s\n", "Unknown"); in bond_info_show_slave()
200 seq_printf(seq, "Speed: %d Mbps\n", slave->speed); in bond_info_show_slave()
203 seq_printf(seq, "Duplex: %s\n", "Unknown"); in bond_info_show_slave()
205 seq_printf(seq, "Duplex: %s\n", slave->duplex ? "full" : "half"); in bond_info_show_slave()
207 seq_printf(seq, "Link Failure Count: %u\n", in bond_info_show_slave()
210 seq_printf(seq, "Permanent HW addr: %*phC\n", in bond_info_show_slave()
212 seq_printf(seq, "Slave queue ID: %d\n", slave->queue_id); in bond_info_show_slave()
219 seq_printf(seq, "Aggregator ID: %d\n", in bond_info_show_slave()
221 seq_printf(seq, "Actor Churn State: %s\n", in bond_info_show_slave()
223 seq_printf(seq, "Partner Churn State: %s\n", in bond_info_show_slave()
225 seq_printf(seq, "Actor Churned Count: %d\n", in bond_info_show_slave()
227 seq_printf(seq, "Partner Churned Count: %d\n", in bond_info_show_slave()
231 seq_puts(seq, "details actor lacp pdu:\n"); in bond_info_show_slave()
232 seq_printf(seq, " system priority: %d\n", in bond_info_show_slave()
234 seq_printf(seq, " system mac address: %pM\n", in bond_info_show_slave()
236 seq_printf(seq, " port key: %d\n", in bond_info_show_slave()
238 seq_printf(seq, " port priority: %d\n", in bond_info_show_slave()
240 seq_printf(seq, " port number: %d\n", in bond_info_show_slave()
242 seq_printf(seq, " port state: %d\n", in bond_info_show_slave()
245 seq_puts(seq, "details partner lacp pdu:\n"); in bond_info_show_slave()
246 seq_printf(seq, " system priority: %d\n", in bond_info_show_slave()
248 seq_printf(seq, " system mac address: %pM\n", in bond_info_show_slave()
250 seq_printf(seq, " oper key: %d\n", in bond_info_show_slave()
252 seq_printf(seq, " port priority: %d\n", in bond_info_show_slave()
254 seq_printf(seq, " port number: %d\n", in bond_info_show_slave()
256 seq_printf(seq, " port state: %d\n", in bond_info_show_slave()
260 seq_puts(seq, "Aggregator ID: N/A\n"); in bond_info_show_slave()
265 static int bond_info_seq_show(struct seq_file *seq, void *v) in bond_info_seq_show() argument
268 seq_printf(seq, "%s\n", bond_version); in bond_info_seq_show()
269 bond_info_show_master(seq); in bond_info_seq_show()
271 bond_info_show_slave(seq, v); in bond_info_seq_show()