From: Simon Horman <horms@kernel.org>
To: David Wei <dw@davidwei.uk>
Cc: Jakub Kicinski <kuba@kernel.org>, Jiri Pirko <jiri@resnulli.us>,
Sabrina Dubroca <sd@queasysnail.net>,
netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>
Subject: Re: [PATCH net-next v7 3/4] netdevsim: add selftest for forwarding skb between connected ports
Date: Fri, 2 Feb 2024 11:22:31 +0100 [thread overview]
Message-ID: <20240202102231.GK530335@kernel.org> (raw)
In-Reply-To: <9bba3a59-9281-4029-958f-71b17c5670a7@davidwei.uk>
On Tue, Jan 30, 2024 at 10:57:45AM -0800, David Wei wrote:
> On 2024-01-29 12:34, Simon Horman wrote:
> > On Fri, Jan 26, 2024 at 08:03:53PM -0800, David Wei wrote:
> >> Connect two netdevsim ports in different namespaces together, then send
> >> packets between them using socat.
> >>
> >> Signed-off-by: David Wei <dw@davidwei.uk>
> >> ---
> >> .../selftests/drivers/net/netdevsim/peer.sh | 127 ++++++++++++++++++
> >> 1 file changed, 127 insertions(+)
> >> create mode 100755 tools/testing/selftests/drivers/net/netdevsim/peer.sh
> >>
> >> diff --git a/tools/testing/selftests/drivers/net/netdevsim/peer.sh b/tools/testing/selftests/drivers/net/netdevsim/peer.sh
> >> new file mode 100755
> >> index 000000000000..05f3cefa53f3
> >> --- /dev/null
> >> +++ b/tools/testing/selftests/drivers/net/netdevsim/peer.sh
> >> @@ -0,0 +1,127 @@
> >> +#!/bin/bash
> >> +# SPDX-License-Identifier: GPL-2.0-only
> >> +
> >> +NSIM_DEV_1_ID=$((RANDOM % 1024))
> >> +NSIM_DEV_1_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_DEV_1_ID
> >> +NSIM_DEV_1_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_DEV_1_ID
> >> +NSIM_DEV_2_ID=$((RANDOM % 1024))
> >> +NSIM_DEV_2_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_DEV_2_ID
> >> +NSIM_DEV_2_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_DEV_2_ID
> >
> > nit: NSIM_DEV_1_DFS and SIM_DEV_2_DFS appear to be unused.
> >
> > Flagged by shellcheck.
> >
> > ...
>
> Hi Simon, thanks for flagging this, these were leftover from previous
> changes. I'll remove them in the next version.
Thanks David,
much appreciated.
next prev parent reply other threads:[~2024-02-02 10:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-27 4:03 [PATCH net-next v7 0/4] netdevsim: link and forward skbs between ports David Wei
2024-01-27 4:03 ` [PATCH net-next v7 1/4] netdevsim: allow two netdevsim ports to be connected David Wei
2024-01-27 22:48 ` kernel test robot
2024-01-27 4:03 ` [PATCH net-next v7 2/4] netdevsim: forward skbs from one connected port to another David Wei
2024-01-27 4:03 ` [PATCH net-next v7 3/4] netdevsim: add selftest for forwarding skb between connected ports David Wei
2024-01-29 20:34 ` Simon Horman
2024-01-30 18:57 ` David Wei
2024-02-02 10:22 ` Simon Horman [this message]
2024-01-27 4:03 ` [PATCH net-next v7 4/4] netdevsim: add Makefile for selftests David Wei
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=20240202102231.GK530335@kernel.org \
--to=horms@kernel.org \
--cc=davem@davemloft.net \
--cc=dw@davidwei.uk \
--cc=edumazet@google.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
/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).