Skip to content

snp network test fixes #1618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 10, 2025
Merged

snp network test fixes #1618

merged 5 commits into from
Apr 10, 2025

Conversation

kraxel
Copy link
Contributor

@kraxel kraxel commented Apr 10, 2025

  • test/snp: NOT_STARTED error is not a test failure
  • test/snp: UNSUPPORTED for statistics is not a test failure
  • test/snp: drop multicast from packet filter.
  • xtask/qemu: switch to virtio-net nic.

@kraxel
Copy link
Contributor Author

kraxel commented Apr 10, 2025

opened as draft as this series breaks aarch64 tests due to #1617

@phip1611
Copy link
Member

Switching from e1000 to virtio-net makes perfectly sense. Thanks!

@kraxel kraxel marked this pull request as ready for review April 10, 2025 14:59
kraxel added 5 commits April 10, 2025 22:16
In case the network has not been started before (say by pxe test) the
shutdown and stop functions may return NOT_STARTED.  This is normal
behavior and not a test failure.

Signed-off-by: Gerd Hoffmann <[email protected]>
The edk2 virtio-net driver does not support statistics and returns
UNSUPPORTED.   This is correct behavior.

Signed-off-by: Gerd Hoffmann <[email protected]>
The test case does not use multicast.  The edk2 virtio-net driver
does not support multicast.  Drop it from packet filter.

Signed-off-by: Gerd Hoffmann <[email protected]>
Use virtio-net instead of e1000.  This gets network going on non-x86
platforms (aarch64, riscv64).

While being at it switch qemu network configuration to modern netdev
method.

Signed-off-by: Gerd Hoffmann <[email protected]>
With the switch to virtio-net we have networking on all platforms.
Turn on the pxe test everywhere.

Also serves as workaround for
rust-osdev#1617

Signed-off-by: Gerd Hoffmann <[email protected]>
@phip1611 phip1611 enabled auto-merge April 10, 2025 20:16
@phip1611 phip1611 added this pull request to the merge queue Apr 10, 2025
Merged via the queue into rust-osdev:main with commit 5440cc2 Apr 10, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants