netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [TEST] virtio tests need veth?
@ 2024-06-17 14:26 Jakub Kicinski
  2024-06-18  6:36 ` Jiri Pirko
  2024-06-18  7:27 ` Jiri Pirko
  0 siblings, 2 replies; 8+ messages in thread
From: Jakub Kicinski @ 2024-06-17 14:26 UTC (permalink / raw)
  To: Jiri Pirko, netdev@vger.kernel.org

Hi Jiri!

I finally hooked up the virtio tests to NIPA.
Looks like they are missing CONFIG options?

https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [TEST] virtio tests need veth?
  2024-06-17 14:26 [TEST] virtio tests need veth? Jakub Kicinski
@ 2024-06-18  6:36 ` Jiri Pirko
  2024-06-18  7:15   ` Jiri Pirko
  2024-06-18  7:27 ` Jiri Pirko
  1 sibling, 1 reply; 8+ messages in thread
From: Jiri Pirko @ 2024-06-18  6:36 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev@vger.kernel.org

Mon, Jun 17, 2024 at 04:26:14PM CEST, kuba@kernel.org wrote:
>Hi Jiri!
>
>I finally hooked up the virtio tests to NIPA.
>Looks like they are missing CONFIG options?
>
>https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout

Checking that out. Apparently sole config is really missing.
Also, looks like for some reason veth is used instead of virtio_net.
Where do you run this command? Do you have 2 virtio_net interfaces
looped back together on the system?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [TEST] virtio tests need veth?
  2024-06-18  6:36 ` Jiri Pirko
@ 2024-06-18  7:15   ` Jiri Pirko
  2024-06-18  8:21     ` Matthieu Baerts
  0 siblings, 1 reply; 8+ messages in thread
From: Jiri Pirko @ 2024-06-18  7:15 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev@vger.kernel.org

Tue, Jun 18, 2024 at 08:36:13AM CEST, jiri@resnulli.us wrote:
>Mon, Jun 17, 2024 at 04:26:14PM CEST, kuba@kernel.org wrote:
>>Hi Jiri!
>>
>>I finally hooked up the virtio tests to NIPA.
>>Looks like they are missing CONFIG options?
>>
>>https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout
>
>Checking that out. Apparently sole config is really missing.
>Also, looks like for some reason veth is used instead of virtio_net.
>Where do you run this command? Do you have 2 virtio_net interfaces
>looped back together on the system?

I guess you have custom
tools/testing/selftests/net/forwarding/forwarding.config.
Can you send it here?

>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [TEST] virtio tests need veth?
  2024-06-17 14:26 [TEST] virtio tests need veth? Jakub Kicinski
  2024-06-18  6:36 ` Jiri Pirko
@ 2024-06-18  7:27 ` Jiri Pirko
  1 sibling, 0 replies; 8+ messages in thread
From: Jiri Pirko @ 2024-06-18  7:27 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev@vger.kernel.org

Mon, Jun 17, 2024 at 04:26:14PM CEST, kuba@kernel.org wrote:
>Hi Jiri!
>
>I finally hooked up the virtio tests to NIPA.
>Looks like they are missing CONFIG options?

Could you add:
CONFIG_NET_L3_MASTER_DEV=y
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_NET_VRF=m
CONFIG_BPF_SYSCALL=y
CONFIG_CGROUP_BPF=y
CONFIG_IPV6=y
?

They are in tools/testing/selftests/net/forwarding/config and I assumed
since virtio tests depend on net/forwarding/lib.sh, it is not needed to
repeat the config options in tools/testing/selftests/drivers/net/virtio_net/config
Apparently that was false assumption.

Will send patch adding it once you confirm it helped if that is okay
with you .

Thanks!


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [TEST] virtio tests need veth?
  2024-06-18  7:15   ` Jiri Pirko
@ 2024-06-18  8:21     ` Matthieu Baerts
  2024-06-18 11:46       ` Jiri Pirko
  0 siblings, 1 reply; 8+ messages in thread
From: Matthieu Baerts @ 2024-06-18  8:21 UTC (permalink / raw)
  To: Jiri Pirko, Jakub Kicinski; +Cc: netdev@vger.kernel.org

Hi Jiri,

On 18/06/2024 09:15, Jiri Pirko wrote:
> Tue, Jun 18, 2024 at 08:36:13AM CEST, jiri@resnulli.us wrote:
>> Mon, Jun 17, 2024 at 04:26:14PM CEST, kuba@kernel.org wrote:
>>> Hi Jiri!
>>>
>>> I finally hooked up the virtio tests to NIPA.
>>> Looks like they are missing CONFIG options?
>>>
>>> https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout
>>
>> Checking that out. Apparently sole config is really missing.
>> Also, looks like for some reason veth is used instead of virtio_net.
>> Where do you run this command? Do you have 2 virtio_net interfaces
>> looped back together on the system?
> 
> I guess you have custom
> tools/testing/selftests/net/forwarding/forwarding.config.
> Can you send it here?

According to the logs from the parent directory [1], the "build/stdout"
file shows that only this config file has been used:

  tools/testing/selftests/drivers/net/virtio_net/config

(see the 'vng -b' command)

> CONFIG_NET_L3_MASTER_DEV=y
> CONFIG_IPV6_MULTIPLE_TABLES=y
> CONFIG_NET_VRF=m
> CONFIG_BPF_SYSCALL=y
> CONFIG_CGROUP_BPF=y
> CONFIG_IPV6=y

The "config" file from [1] seems to indicate that all these kconfig are
missing, except the BPF ones.

Note that if you want to check locally, virtme-ng helps to reproduce the
issues reported by the CI, see [2].

[1] https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/
[2]
https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [TEST] virtio tests need veth?
  2024-06-18  8:21     ` Matthieu Baerts
@ 2024-06-18 11:46       ` Jiri Pirko
  2024-06-18 12:57         ` Matthieu Baerts
  0 siblings, 1 reply; 8+ messages in thread
From: Jiri Pirko @ 2024-06-18 11:46 UTC (permalink / raw)
  To: Matthieu Baerts; +Cc: Jakub Kicinski, netdev@vger.kernel.org

Tue, Jun 18, 2024 at 10:21:54AM CEST, matttbe@kernel.org wrote:
>Hi Jiri,
>
>On 18/06/2024 09:15, Jiri Pirko wrote:
>> Tue, Jun 18, 2024 at 08:36:13AM CEST, jiri@resnulli.us wrote:
>>> Mon, Jun 17, 2024 at 04:26:14PM CEST, kuba@kernel.org wrote:
>>>> Hi Jiri!
>>>>
>>>> I finally hooked up the virtio tests to NIPA.
>>>> Looks like they are missing CONFIG options?
>>>>
>>>> https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout
>>>
>>> Checking that out. Apparently sole config is really missing.
>>> Also, looks like for some reason veth is used instead of virtio_net.
>>> Where do you run this command? Do you have 2 virtio_net interfaces
>>> looped back together on the system?
>> 
>> I guess you have custom
>> tools/testing/selftests/net/forwarding/forwarding.config.
>> Can you send it here?
>
>According to the logs from the parent directory [1], the "build/stdout"
>file shows that only this config file has been used:
>
>  tools/testing/selftests/drivers/net/virtio_net/config
>
>(see the 'vng -b' command)
>
>> CONFIG_NET_L3_MASTER_DEV=y
>> CONFIG_IPV6_MULTIPLE_TABLES=y
>> CONFIG_NET_VRF=m
>> CONFIG_BPF_SYSCALL=y
>> CONFIG_CGROUP_BPF=y
>> CONFIG_IPV6=y
>
>The "config" file from [1] seems to indicate that all these kconfig are
>missing, except the BPF ones.
>
>Note that if you want to check locally, virtme-ng helps to reproduce the
>issues reported by the CI, see [2].
>
>[1] https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/

Hmm, looking here, I see only command outputs. Would be actually good to
see what commands were run to produce those outputs.


>[2]
>https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style
>
>Cheers,
>Matt
>-- 
>Sponsored by the NGI0 Core fund.
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [TEST] virtio tests need veth?
  2024-06-18 11:46       ` Jiri Pirko
@ 2024-06-18 12:57         ` Matthieu Baerts
  2024-06-19  5:58           ` Jiri Pirko
  0 siblings, 1 reply; 8+ messages in thread
From: Matthieu Baerts @ 2024-06-18 12:57 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: Jakub Kicinski, netdev@vger.kernel.org

On 18/06/2024 13:46, Jiri Pirko wrote:
> Tue, Jun 18, 2024 at 10:21:54AM CEST, matttbe@kernel.org wrote:
>> Hi Jiri,
>>
>> On 18/06/2024 09:15, Jiri Pirko wrote:
>>> Tue, Jun 18, 2024 at 08:36:13AM CEST, jiri@resnulli.us wrote:
>>>> Mon, Jun 17, 2024 at 04:26:14PM CEST, kuba@kernel.org wrote:
>>>>> Hi Jiri!
>>>>>
>>>>> I finally hooked up the virtio tests to NIPA.
>>>>> Looks like they are missing CONFIG options?
>>>>>
>>>>> https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout
>>>>
>>>> Checking that out. Apparently sole config is really missing.
>>>> Also, looks like for some reason veth is used instead of virtio_net.
>>>> Where do you run this command? Do you have 2 virtio_net interfaces
>>>> looped back together on the system?
>>>
>>> I guess you have custom
>>> tools/testing/selftests/net/forwarding/forwarding.config.
>>> Can you send it here?
>>
>> According to the logs from the parent directory [1], the "build/stdout"
>> file shows that only this config file has been used:
>>
>>  tools/testing/selftests/drivers/net/virtio_net/config
>>
>> (see the 'vng -b' command)
>>
>>> CONFIG_NET_L3_MASTER_DEV=y
>>> CONFIG_IPV6_MULTIPLE_TABLES=y
>>> CONFIG_NET_VRF=m
>>> CONFIG_BPF_SYSCALL=y
>>> CONFIG_CGROUP_BPF=y
>>> CONFIG_IPV6=y
>>
>> The "config" file from [1] seems to indicate that all these kconfig are
>> missing, except the BPF ones.
>>
>> Note that if you want to check locally, virtme-ng helps to reproduce the
>> issues reported by the CI, see [2].
>>
>> [1] https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/
> 
> Hmm, looking here, I see only command outputs. Would be actually good to
> see what commands were run to produce those outputs.

I think only the command to launch the VM is missing.

 - In the build logs [1], where we can see 4 commands:
   > TREE CMD: make mrproper
   > TREE CMD: vng -v -b -f
tools/testing/selftests/drivers/net/virtio_net/config
   > TREE CMD: make headers
   > TREE CMD: make -C tools/testing/selftests/drivers/net/virtio_net/

 - In the VM logs [2], we don't see the command to start it. I guess it
is supposed to be closed to what is described in the wiki [3]. At the
end, we see the env vars that are set in the VM.

 - In the test logs [4], we can see the 'make' command at the first line.

I can look at adding the command to start the VM. Do you see anything
else missing?

[1]
https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/build/stdout
[2]
https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/vm-start-thr0-0/stdout
[3]
https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style#how-to-run
[4]
https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [TEST] virtio tests need veth?
  2024-06-18 12:57         ` Matthieu Baerts
@ 2024-06-19  5:58           ` Jiri Pirko
  0 siblings, 0 replies; 8+ messages in thread
From: Jiri Pirko @ 2024-06-19  5:58 UTC (permalink / raw)
  To: Matthieu Baerts; +Cc: Jakub Kicinski, netdev@vger.kernel.org

Tue, Jun 18, 2024 at 02:57:28PM CEST, matttbe@kernel.org wrote:
>On 18/06/2024 13:46, Jiri Pirko wrote:
>> Tue, Jun 18, 2024 at 10:21:54AM CEST, matttbe@kernel.org wrote:
>>> Hi Jiri,
>>>
>>> On 18/06/2024 09:15, Jiri Pirko wrote:
>>>> Tue, Jun 18, 2024 at 08:36:13AM CEST, jiri@resnulli.us wrote:
>>>>> Mon, Jun 17, 2024 at 04:26:14PM CEST, kuba@kernel.org wrote:
>>>>>> Hi Jiri!
>>>>>>
>>>>>> I finally hooked up the virtio tests to NIPA.
>>>>>> Looks like they are missing CONFIG options?
>>>>>>
>>>>>> https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout
>>>>>
>>>>> Checking that out. Apparently sole config is really missing.
>>>>> Also, looks like for some reason veth is used instead of virtio_net.
>>>>> Where do you run this command? Do you have 2 virtio_net interfaces
>>>>> looped back together on the system?
>>>>
>>>> I guess you have custom
>>>> tools/testing/selftests/net/forwarding/forwarding.config.
>>>> Can you send it here?
>>>
>>> According to the logs from the parent directory [1], the "build/stdout"
>>> file shows that only this config file has been used:
>>>
>>>  tools/testing/selftests/drivers/net/virtio_net/config
>>>
>>> (see the 'vng -b' command)
>>>
>>>> CONFIG_NET_L3_MASTER_DEV=y
>>>> CONFIG_IPV6_MULTIPLE_TABLES=y
>>>> CONFIG_NET_VRF=m
>>>> CONFIG_BPF_SYSCALL=y
>>>> CONFIG_CGROUP_BPF=y
>>>> CONFIG_IPV6=y
>>>
>>> The "config" file from [1] seems to indicate that all these kconfig are
>>> missing, except the BPF ones.
>>>
>>> Note that if you want to check locally, virtme-ng helps to reproduce the
>>> issues reported by the CI, see [2].
>>>
>>> [1] https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/
>> 
>> Hmm, looking here, I see only command outputs. Would be actually good to
>> see what commands were run to produce those outputs.
>
>I think only the command to launch the VM is missing.
>
> - In the build logs [1], where we can see 4 commands:
>   > TREE CMD: make mrproper
>   > TREE CMD: vng -v -b -f
>tools/testing/selftests/drivers/net/virtio_net/config
>   > TREE CMD: make headers
>   > TREE CMD: make -C tools/testing/selftests/drivers/net/virtio_net/
>
> - In the VM logs [2], we don't see the command to start it. I guess it
>is supposed to be closed to what is described in the wiki [3]. At the
>end, we see the env vars that are set in the VM.
>
> - In the test logs [4], we can see the 'make' command at the first line.
>
>I can look at adding the command to start the VM. Do you see anything
>else missing?

After your patch to add vm run command into stdout, I see all.

I tested the missing config options added locally, the test runs clearly
after that.

I will send patch to fix this in a minute.

Thanks!


>
>[1]
>https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/build/stdout
>[2]
>https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/vm-start-thr0-0/stdout
>[3]
>https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style#how-to-run
>[4]
>https://netdev-3.bots.linux.dev/vmksft-virtio/results/643761/1-basic-features-sh/stdout
>
>Cheers,
>Matt
>-- 
>Sponsored by the NGI0 Core fund.
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-06-19  5:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-17 14:26 [TEST] virtio tests need veth? Jakub Kicinski
2024-06-18  6:36 ` Jiri Pirko
2024-06-18  7:15   ` Jiri Pirko
2024-06-18  8:21     ` Matthieu Baerts
2024-06-18 11:46       ` Jiri Pirko
2024-06-18 12:57         ` Matthieu Baerts
2024-06-19  5:58           ` Jiri Pirko
2024-06-18  7:27 ` Jiri Pirko

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).