From: Jonathan Toppins <jtoppins@redhat.com>
To: Hangbin Liu <liuhangbin@gmail.com>, netdev@vger.kernel.org
Cc: Jay Vosburgh <j.vosburgh@gmail.com>,
Veaceslav Falico <vfalico@gmail.com>,
Andy Gospodarek <andy@greyhouse.net>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Eric Dumazet <eric.dumazet@gmail.com>,
Paolo Abeni <pabeni@redhat.com>, Li Liang <liali@redhat.com>
Subject: Re: [PATCH net] bonding: show NS IPv6 targets in proc master info
Date: Fri, 27 May 2022 10:13:08 -0400 [thread overview]
Message-ID: <e09cd8cf-4779-273e-a354-c1cfba120305@redhat.com> (raw)
In-Reply-To: <20220527064419.1837522-1-liuhangbin@gmail.com>
On 5/27/22 02:44, Hangbin Liu wrote:
> When adding bond new parameter ns_targets. I forgot to print this
> in bond master proc info. After updating, the bond master info will looks
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: 4e24be018eb9 ("bonding: add new parameter ns_targets")
> Reported-by: Li Liang <liali@redhat.com>
> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
> ---
> drivers/net/bonding/bond_procfs.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/net/bonding/bond_procfs.c b/drivers/net/bonding/bond_procfs.c
> index cfe37be42be4..b6c012270e2e 100644
> --- a/drivers/net/bonding/bond_procfs.c
> +++ b/drivers/net/bonding/bond_procfs.c
> @@ -129,6 +129,19 @@ static void bond_info_show_master(struct seq_file *seq)
> printed = 1;
> }
> seq_printf(seq, "\n");
Does this need to be guarded by "#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");
> }
>
> if (BOND_MODE(bond) == BOND_MODE_8023AD) {
next prev parent reply other threads:[~2022-05-27 14:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-27 6:44 [PATCH net] bonding: show NS IPv6 targets in proc master info Hangbin Liu
2022-05-27 14:13 ` Jonathan Toppins [this message]
2022-05-27 23:21 ` Jay Vosburgh
2022-05-30 3:01 ` Hangbin Liu
2022-05-30 3:35 ` Jonathan Toppins
2022-05-30 5:41 ` Hangbin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e09cd8cf-4779-273e-a354-c1cfba120305@redhat.com \
--to=jtoppins@redhat.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=j.vosburgh@gmail.com \
--cc=kuba@kernel.org \
--cc=liali@redhat.com \
--cc=liuhangbin@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vfalico@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).