From: Hangbin Liu <liuhangbin@gmail.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org, Jay Vosburgh <jv@jvosburgh.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>,
Shuah Khan <shuah@kernel.org>, Petr Machata <petrm@nvidia.com>,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCHv2 net 2/2] selftests: bonding: add ipsec offload test
Date: Tue, 23 Sep 2025 09:12:53 +0000 [thread overview]
Message-ID: <aNJklbSInqqIkfK9@fedora> (raw)
In-Reply-To: <ae9f772b-d1fb-4688-a809-b4507060d205@redhat.com>
On Tue, Sep 23, 2025 at 10:32:22AM +0200, Paolo Abeni wrote:
> > +lib_dir=$(dirname "$0")
> > +source "$lib_dir"/../../../net/lib.sh
> > +algo="aead rfc4106(gcm(aes)) 0x3132333435363738393031323334353664636261 128"
> > +srcip=192.0.2.1
> > +dstip=192.0.2.2
> > +ipsec0=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/ipsec
> > +ipsec1=/sys/kernel/debug/netdevsim/netdevsim0/ports/1/ipsec
> > +active_slave=""
> > +
> > +active_slave_changed()
> > +{
> > + local old_active_slave=$1
> > + local new_active_slave=$(ip -n ${ns} -d -j link show bond0 | \
> > + jq -r ".[].linkinfo.info_data.active_slave")
>
> shell check is not super happy about the lack of double quotes around
> the variables (above and many places below) and about declaring the
> variable and assigning it to a subshell in the same statement.
>
> I think it's better to address such warnings for consistency.
Ah, this is a patch I wrote some times ago. I forgot to re-format it with
shellcheck. I will fix the warnings.
Thanks
hangbin
prev parent reply other threads:[~2025-09-23 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-18 2:02 [PATCHv2 net 1/2] bonding: fix xfrm offload feature setup on active-backup mode Hangbin Liu
2025-09-18 2:02 ` [PATCHv2 net 2/2] selftests: bonding: add ipsec offload test Hangbin Liu
2025-09-23 8:32 ` Paolo Abeni
2025-09-23 9:12 ` Hangbin Liu [this message]
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=aNJklbSInqqIkfK9@fedora \
--to=liuhangbin@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jv@jvosburgh.net \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=petrm@nvidia.com \
--cc=shuah@kernel.org \
/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