Skip to content

Stage 5A: Implement VirtIO Ethernet NIC driver (Device ID 1) #164

Done

Description

@marcobuschini

Parent Epic: #157
Depends on: #159, #160

Summary

Implement a modular VirtIO Ethernet NIC driver for virtio-mmio devices with Device ID 1 using dedicated rx (queue 0) and tx (queue 1) virtqueues.

Scope

  • Negotiate VIRTIO_F_VERSION_1 and VIRTIO_F_MAC (or fallback MAC) and manage virtio_net_hdr + frame buffers across RX/TX rings
  • Expose a clean internal NIC send/receive/poll interface suitable for ARP/DHCP/stack integration
  • Add host tests with simulated RX/TX ring frame exchange and verify against QEMU user networking

Verification

  • make all && make quality && make test-host
  • Verify VirtIO-MMIO net device init and RX/TX frame handling in QEMU

Metadata

Metadata

Assignees

Labels

stage-5-network

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions