diff options
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index b656e53f4624..d5415ba9bdb0 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -3259,6 +3259,8 @@ static void bond_info_show_master(struct seq_file *seq) | |||
3259 | { | 3259 | { |
3260 | struct bonding *bond = seq->private; | 3260 | struct bonding *bond = seq->private; |
3261 | struct slave *curr; | 3261 | struct slave *curr; |
3262 | int i; | ||
3263 | u32 target; | ||
3262 | 3264 | ||
3263 | read_lock(&bond->curr_slave_lock); | 3265 | read_lock(&bond->curr_slave_lock); |
3264 | curr = bond->curr_active_slave; | 3266 | curr = bond->curr_active_slave; |
@@ -3290,6 +3292,27 @@ static void bond_info_show_master(struct seq_file *seq) | |||
3290 | seq_printf(seq, "Down Delay (ms): %d\n", | 3292 | seq_printf(seq, "Down Delay (ms): %d\n", |
3291 | bond->params.downdelay * bond->params.miimon); | 3293 | bond->params.downdelay * bond->params.miimon); |
3292 | 3294 | ||
3295 | |||
3296 | /* ARP information */ | ||
3297 | if(bond->params.arp_interval > 0) { | ||
3298 | int printed=0; | ||
3299 | seq_printf(seq, "ARP Polling Interval (ms): %d\n", | ||
3300 | bond->params.arp_interval); | ||
3301 | |||
3302 | seq_printf(seq, "ARP IP target/s (n.n.n.n form):"); | ||
3303 | |||
3304 | for(i = 0; (i < BOND_MAX_ARP_TARGETS) ;i++) { | ||
3305 | if (!bond->params.arp_targets[i]) | ||
3306 | continue; | ||
3307 | if (printed) | ||
3308 | seq_printf(seq, ","); | ||
3309 | target = ntohl(bond->params.arp_targets[i]); | ||
3310 | seq_printf(seq, " %d.%d.%d.%d", HIPQUAD(target)); | ||
3311 | printed = 1; | ||
3312 | } | ||
3313 | seq_printf(seq, "\n"); | ||
3314 | } | ||
3315 | |||
3293 | if (bond->params.mode == BOND_MODE_8023AD) { | 3316 | if (bond->params.mode == BOND_MODE_8023AD) { |
3294 | struct ad_info ad_info; | 3317 | struct ad_info ad_info; |
3295 | 3318 | ||