From: Saket Kumar Bhaskar <skb99@linux.ibm.com>
To: "D. Wythe" <alibuda@linux.alibaba.com>
Cc: kgraul@linux.ibm.com, wenjia@linux.ibm.com, jaka@linux.ibm.com,
ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
martin.lau@linux.dev, pabeni@redhat.com, song@kernel.org,
sdf@google.com, haoluo@google.com, yhs@fb.com,
edumazet@google.com, john.fastabend@gmail.com,
kpsingh@kernel.org, jolsa@kernel.org, guwen@linux.alibaba.com,
kuba@kernel.org, davem@davemloft.net, netdev@vger.kernel.org,
linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org,
bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next v6 5/5] bpf/selftests: add selftest for bpf_smc_ops
Date: Wed, 22 Jan 2025 10:09:00 +0530 [thread overview]
Message-ID: <Z5B2ZFRWsuBviC/Q@linux.ibm.com> (raw)
In-Reply-To: <20250122024651.GB81479@j66a10360.sqa.eu95>
On Wed, Jan 22, 2025 at 10:46:51AM +0800, D. Wythe wrote:
> On Tue, Jan 21, 2025 at 12:12:07PM +0530, Saket Kumar Bhaskar wrote:
> > On Thu, Jan 16, 2025 at 03:44:42PM +0800, D. Wythe wrote:
> > > This tests introduces a tiny smc_ops for filtering SMC connections based on
> > > IP pairs, and also adds a realistic topology model to verify this ops.
> > >
> > > Also, we can only use SMC loopback under CI test, so an
> > > additional configuration needs to be enabled.
> > >
> > > Follow the steps below to run this test.
> > >
> > > make -C tools/testing/selftests/bpf
> > > cd tools/testing/selftests/bpf
> > > sudo ./test_progs -t smc
> > >
> > > Results shows:
> > > Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED
> > >
> > > Signed-off-by: D. Wythe <alibuda@linux.alibaba.com>
> > > ---
> > > tools/testing/selftests/bpf/config | 4 +
> > > .../selftests/bpf/prog_tests/test_bpf_smc.c | 397 ++++++++++++++++++
> > > tools/testing/selftests/bpf/progs/bpf_smc.c | 117 ++++++
> > > 3 files changed, 518 insertions(+)
> > > create mode 100644 tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
> > > create mode 100644 tools/testing/selftests/bpf/progs/bpf_smc.c
> > >
> > > diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
> > > index c378d5d07e02..fac2f2a9d02f 100644
> > > --- a/tools/testing/selftests/bpf/config
> > > +++ b/tools/testing/selftests/bpf/config
> > > @@ -113,3 +113,7 @@ CONFIG_XDP_SOCKETS=y
> > > +};
> > Tested this selftest with patches applied on powerpc.
> >
> > #./test_progs -t bpf_smc
> >
> > net.smc.ops = linkcheck
> > #27/1 bpf_smc/topo:OK
> > #27 bpf_smc:OK
> > Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED
> >
> > Tested-by: Saket Kumar Bhaskar <skb99@linux.ibm.com>
> >
> > Thanks,
> > Saket
>
> Hi Saket,
>
> Thanks for your testing. I hope you don't mind if I add your test-by in
> the next version.
>
> Best wishes,
> D. Wythe
>
Fine for me Wythe.
Thanks,
Saket
> > > --
> > > 2.45.0
> > >
prev parent reply other threads:[~2025-01-22 4:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-16 7:44 [PATCH bpf-next v6 0/5] net/smc: Introduce smc_ops D. Wythe
2025-01-16 7:44 ` [PATCH bpf-next v6 1/5] bpf: export necessary sympols for modules with struct_ops D. Wythe
2025-01-16 7:44 ` [PATCH bpf-next v6 2/5] net/smc: Introduce generic hook smc_ops D. Wythe
2025-01-16 12:22 ` Dust Li
2025-01-17 23:50 ` Martin KaFai Lau
2025-01-22 4:35 ` D. Wythe
2025-01-16 7:44 ` [PATCH bpf-next v6 3/5] net/smc: bpf: register smc_ops info struct_ops D. Wythe
2025-01-16 7:44 ` [PATCH bpf-next v6 4/5] libbpf: fix error when st-prefix_ops and ops from differ btf D. Wythe
2025-01-17 18:36 ` Andrii Nakryiko
2025-01-22 2:43 ` D. Wythe
2025-01-22 17:16 ` Andrii Nakryiko
2025-01-16 7:44 ` [PATCH bpf-next v6 5/5] bpf/selftests: add selftest for bpf_smc_ops D. Wythe
2025-01-18 0:37 ` Martin KaFai Lau
2025-01-22 1:51 ` D. Wythe
2025-01-21 6:42 ` Saket Kumar Bhaskar
2025-01-22 2:46 ` D. Wythe
2025-01-22 4:39 ` Saket Kumar Bhaskar [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=Z5B2ZFRWsuBviC/Q@linux.ibm.com \
--to=skb99@linux.ibm.com \
--cc=alibuda@linux.alibaba.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=guwen@linux.alibaba.com \
--cc=haoluo@google.com \
--cc=jaka@linux.ibm.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kgraul@linux.ibm.com \
--cc=kpsingh@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sdf@google.com \
--cc=song@kernel.org \
--cc=wenjia@linux.ibm.com \
--cc=yhs@fb.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).