BPF List
 help / color / mirror / Atom feed
From: Daniel Xu <dlxu@meta.com>
To: "D. Wythe" <alibuda@linux.alibaba.com>,
	Daniel Borkmann <daniel@iogearbox.net>
Cc: "bot+bpf-ci@kernel.org" <bot+bpf-ci@kernel.org>,
	kernel-ci <kernel-ci@meta.com>,
	"andrii@kernel.org" <andrii@kernel.org>,
	"martin.lau@linux.dev" <martin.lau@linux.dev>,
	bpf <bpf@vger.kernel.org>
Subject: Re: [PATCH bpf-next v3 0/5] net/smc: Introduce smc_ops
Date: Thu, 19 Dec 2024 05:23:40 +0000	[thread overview]
Message-ID: <0a75d230-9cd4-4f16-afc5-f33aef715808@meta.com> (raw)
In-Reply-To: <20241219040409.GA107394@j66a10360.sqa.eu95>

On 12/18/24 22:04, D. Wythe wrote:
> On Wed, Dec 18, 2024 at 05:51:40PM +0100, Daniel Borkmann wrote:
>> On 12/18/24 5:32 AM, D. Wythe wrote:
>>> On Wed, Dec 18, 2024 at 03:23:01AM +0000, bot+bpf-ci@kernel.org wrote:
>>>> Dear patch submitter,
>>>>
>>>> CI has tested the following submission:
>>>> Status:     FAILURE
>>>> Name:       [bpf-next,v3,0/5] net/smc: Introduce smc_ops
>>>> Patchwork:  https://patchwork.kernel.org/project/netdevbpf/list/?series=918946&state=*
>>>> Matrix:     https://github.com/kernel-patches/bpf/actions/runs/12385547644
>>>>
>>>> Failed jobs:
>>>> test_progs-aarch64-gcc: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572137789
>>>> test_progs_no_alu32-aarch64-gcc: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572137985
>>>> test_progs-s390x-gcc: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572116351
>>>> test_progs_no_alu32-s390x-gcc: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572116670
>>>> test_progs-x86_64-gcc: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572147114
>>>> test_progs_no_alu32-x86_64-gcc: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572147579
>>>> test_progs-x86_64-llvm-17: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572152627
>>>> test_progs_no_alu32-x86_64-llvm-17: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572152400
>>>> test_progs-x86_64-llvm-18: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572134514
>>>> test_progs_cpuv4-x86_64-llvm-18: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572134779
>>>> test_progs_no_alu32-x86_64-llvm-18: https://github.com/kernel-patches/bpf/actions/runs/12385547644/job/34572135179
>>>>
>>>> First test_progs failure (test_progs-aarch64-gcc):
>>>> #27 bpf_smc
>>>> load_smc_module:FAIL:create ipproto_smc unexpected create ipproto_smc: actual -1 < expected 0
>>>> setup for smc test failed, test SKIP:
>>> A bit weird. How can I reproduce this test on my own? Also, it seems
>>> that I shouldn't use the ASSERT_XX macros in the setup phase, so that it
>>> can properly skip.
>> In the BPF selftest dir, you could try to repro with vmtest.sh script :
>>
>>    ./vmtest.sh -- ./test_progs -t smc
>>
>> Potentially tools/testing/selftests/bpf/config* needs to be extended as first step.
> Hi Daniel,
>
> Thanks very much for your prompt. I think I have identified the issue.
>
> I reproduced this issue by vmtest, and I suspect it may have been
> caused by not execute "make modules_install" before executing vmtest
> since CONFIG_SMC=m in tools/testing/selftests/bpf/config*;
>
> [root@localhost linux]$ vmtest -k arch/x86_64/boot/bzImage "modprobe smc;"
> => bzImage
> ===> Booting
> ===> Setting up VM
> ===> Running command
> modprobe: FATAL: Module smc not found in directory
> /lib/modules/6.13.0-rc3-00116-gafe40385f116
> Command failed with exit code: 1
>
> When I first run make modules_install and then vmtest, the issue is
> resolved!
>
> [root@localhost linux]$ vmtest -k arch/x86_64/boot/bzImage "cd ./tools/testing/selftests/bpf/; ./test_progs -t smc"
> => bzImage
> ===> Booting
> ===> Setting up VM
> ===> Running command
> [    1.829268] bpf_testmod: loading out-of-tree module taints kernel.
> [    1.906274] NET: Registered PF_SMC protocol family
> [    1.906603] smc: adding smcd device loopback-ism
> net.smc.ops = linkcheck
> #27/1    bpf_smc/topo:OK
> #27      bpf_smc:OK
> Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED
>
> Of course, I don't think it's necessarily appropriate to have the CI
> modify this, so I decided to change CONFIG_SMC=m to CONFIG_SMC=y in the
> config, which also solves the problem.
>
> What do you think?

[cc bpf list]

CONFIG_SMC=y makes sense to me.

Thanks,
(Other) Daniel


      parent reply	other threads:[~2024-12-19  5:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-18  2:44 [PATCH bpf-next v3 0/5] net/smc: Introduce smc_ops D. Wythe
2024-12-18  2:44 ` [PATCH bpf-next v3 1/5] bpf: export necessary sympols for modules with struct_ops D. Wythe
2024-12-18  2:44 ` [PATCH bpf-next v3 2/5] net/smc: Introduce generic hook smc_ops D. Wythe
2024-12-18  2:44 ` [PATCH bpf-next v3 3/5] net/smc: bpf: register smc_ops info struct_ops D. Wythe
2024-12-19 22:48   ` Martin KaFai Lau
2024-12-23  2:00     ` D. Wythe
2024-12-26 19:44   ` Zhu Yanjun
2025-01-03  6:54     ` D. Wythe
2024-12-18  2:44 ` [PATCH bpf-next v3 4/5] libbpf: fix error when st-prefix_ops and ops from differ btf D. Wythe
2024-12-19 22:43   ` Martin KaFai Lau
2024-12-23  2:10     ` D. Wythe
2025-01-07 23:24       ` Martin KaFai Lau
2025-01-08 13:45         ` D. Wythe
2025-01-10 23:38   ` Andrii Nakryiko
2025-01-14  7:11     ` D. Wythe
2024-12-18  2:44 ` [PATCH bpf-next v3 5/5] bpf/selftests: add selftest for bpf_smc_ops D. Wythe
2024-12-19 22:59   ` Martin KaFai Lau
2024-12-23  2:03     ` D. Wythe
     [not found] ` <bf1eef2ada1330c92b6326e90e23482e53a759fd40cd6c25832ae7f72207930a@mail.kernel.org>
     [not found]   ` <20241218043231.GA9245@j66a10360.sqa.eu95>
     [not found]     ` <1425b222-b5a5-4f18-a65b-af37226d099e@iogearbox.net>
     [not found]       ` <20241219040409.GA107394@j66a10360.sqa.eu95>
2024-12-19  5:23         ` Daniel Xu [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=0a75d230-9cd4-4f16-afc5-f33aef715808@meta.com \
    --to=dlxu@meta.com \
    --cc=alibuda@linux.alibaba.com \
    --cc=andrii@kernel.org \
    --cc=bot+bpf-ci@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=kernel-ci@meta.com \
    --cc=martin.lau@linux.dev \
    /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