mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
bonding: show NS IPv6 targets in proc master info
[ Upstream commit4a1f14df55
] When adding bond new parameter ns_targets. I forgot to print this in bond master proc info. After updating, the bond master info will look like: ARP IP target/s (n.n.n.n form): 192.168.1.254 NS IPv6 target/s (XX::XX form): 2022::1, 2022::2 Fixes:4e24be018e
("bonding: add new parameter ns_targets") Reported-by: Li Liang <liali@redhat.com> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Link: https://lore.kernel.org/r/20220530062639.37179-1-liuhangbin@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
08a4fc1350
commit
86ee0a5910
1 changed files with 15 additions and 0 deletions
|
@ -129,6 +129,21 @@ static void bond_info_show_master(struct seq_file *seq)
|
|||
printed = 1;
|
||||
}
|
||||
seq_printf(seq, "\n");
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
printed = 0;
|
||||
seq_printf(seq, "NS IPv6 target/s (xx::xx form):");
|
||||
|
||||
for (i = 0; (i < BOND_MAX_NS_TARGETS); i++) {
|
||||
if (ipv6_addr_any(&bond->params.ns_targets[i]))
|
||||
break;
|
||||
if (printed)
|
||||
seq_printf(seq, ",");
|
||||
seq_printf(seq, " %pI6c", &bond->params.ns_targets[i]);
|
||||
printed = 1;
|
||||
}
|
||||
seq_printf(seq, "\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
if (BOND_MODE(bond) == BOND_MODE_8023AD) {
|
||||
|
|
Loading…
Reference in a new issue