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: Mon, 29 Jan 2024 20:34:01 +0000 [thread overview]
Message-ID: <20240129203401.GR401354@kernel.org> (raw)
In-Reply-To: <20240127040354.944744-4-dw@davidwei.uk>
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.
...
next prev parent reply other threads:[~2024-01-29 20:34 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 [this message]
2024-01-30 18:57 ` David Wei
2024-02-02 10:22 ` Simon Horman
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=20240129203401.GR401354@kernel.org \
--to=horms@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=dw@davidwei$(echo .)uk \
--cc=edumazet@google$(echo .)com \
--cc=jiri@resnulli$(echo .)us \
--cc=kuba@kernel$(echo .)org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=sd@queasysnail$(echo .)net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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