What the review read and ran
An appendix to the milestone.
The crate
partsfoundry/e1000e at 6f6d3f1cc29f63d8beaa3e646ad60c21a19ca6e7, version 0.1.0-pre.4,
edition 2024, rust-version 1.88, no dependencies and no features. Read: Cargo.toml,
README.md, CHANGELOG.md, examples/host_ring.rs, and every module under src/ for its public
items (lib, data_plane, descriptor, layout, registers, control_registers,
supported_devices, and under platform_controller_hub the modules hardware_access,
sequence, physical_layer_device, non_volatile_memory, flush, ultra_low_power, reset
and registers). The review read the simulator, the tests and the three Kani proof modules for
their types only, and listed docs/ and fuzz/ without reading them.
The commands
Each ran in a copy of the clone, with CARGO_TARGET_DIR outside it, on a Linux x86_64 host with
rustc 1.100.0.
cargo buildpasses.cargo test: 80 unit tests and 2 doctests pass.cargo +1.88 test, the declared minimum: the same 80 and 2 pass.cargo doc --no-deps, and again withRUSTDOCFLAGS="-D warnings": both pass.cargo clippy --all-targetspasses with no warning.cargo build --target x86_64-unknown-none,riscv64imac-unknown-none-elfandaarch64-unknown-none-softfloat: all pass.cargo run --example host_ringprintsreceived 60 bytesandsent 42 bytes.cargo package --list --allow-dirtylists 73 files, among them.github/,.githooks/,.cargo/mutants.toml,deny.toml,_typos.toml,CODEOWNERSandfalsifications/(P1-1);fuzz/andtests/qemu-smoke/are separate packages and are not listed.grep -rn '# Errors' srcprints nothing (P1-3).- The crate has no features, so there is no feature combination to build.
The comparators read
Each .crate from crates.io at the version in the prior-art table, unpacked into its own
directory and read. The measurement used the crates.io API with the User-Agent
release-review-lane, on 2026-11-26 (UTC).
ixgbe-driver0.1.1:IxgbeHal(src/hal.rs) is anunsafe traitwithdma_alloc,dma_dealloc,mmio_phys_to_virtand a wait.IxgbeDevice<H, const QS: usize>(src/ixgbe.rs) owns its queues and reads its registers withread_volatileatself.addr + reg(get_reg32(reg: u32)).NicDevice(src/lib.rs) hasreceive_packetswith a closure,send(queue_id, IxgbeNetBuf),get_mac_addr() -> [u8; 6]andget_link_speed.IxgbeErrorderives onlyDebug. Five dependencies,smoltcp0.12 among them.eth-intel0.2.4: an e1000 driver overdma-apiandmmio-api;Regs::read(offset: usize)over aNonNull<u8>(src/e1000/registers.rs);Error(src/err.rs) derivesthiserror::Errorand has anOther(&'static str)variant.e1000-driver0.1.0: the 8254x, with registers as&'static mut [Volatile<u32>], rings as borrowed slices, aVecof buffers and aKernelFunctrait for coherent allocation (src/e1000/e1000.rs).eth-igb0.1.1: the igb family overdma-api,tock-registersandmbarrier;DError(src/err.rs) withUnknown(&'static str).virtio-drivers0.13.0:Hal(src/hal.rs) is anunsafe traitwithdma_alloc,shareandunshare;VirtIONetRaw(src/device/net/dev_raw.rs) owns its transport and hasunsafe fn transmit_beginandreceive_beginover caller buffers;FakeTransportis#[cfg(test)](src/transport/mod.rs);Errorderivesthiserror::Error; featuresallocandembedded-io; depends onsafe-mmio.axdriver_net0.2.0:NetDriverOps(src/lib.rs) overixgbe-driverand anfxmacdriver, with its ownNetBufpool.smoltcp0.14.0:phy::Device(src/phy/mod.rs) withreceiveandtransmitreturning tokens, andRxToken::consumeandTxToken::consume(len, f)lending the frame to a closure.embassy-net-driver0.2.0:Driver(src/lib.rs) withreceive,transmit,link_state,capabilitiesandhardware_address, and the same token shape.
The systems outside Rust
- Linux v6.12,
drivers/net/ethernet/intel/e1000e/(netdev.c,e1000.h,hw.h,regs.h):struct e1000_ringholds the descriptor memory, its bus address and thetailregister together.e1000_alloc_rx_bufferswrites the receive tail once perE1000_RX_BUFFER_WRITE(16) buffers after awmb.e1000_clean_rx_irqreads the status with adma_rmbbefore the descriptor and copies frames shorter thancopybreak.er32andew32read and write an offset fromhw_addr, andhw.hdeclares function tables for the MAC, the PHY and the NVM. GPL; read for its interface shape only.
The benchmark
A scratch crate depending on the crate's copy by path, built with cargo build --release and run
three times. The region is a Vec<u8> of layout::DIRECT_MEMORY_ACCESS_REGION_BYTES; the tails
store two integers through black_box, and the barrier is compiler_fence(SeqCst). Inputs: a
60-byte and a 1514-byte frame, out of 2048 bytes. Each column starts at 64 repeats and doubles
until a pass lasts 50 ms, then runs seven passes and reports the lowest divided by the repeats, with
black_box on the frame, out and each result.
- Transmit and completion:
DataPlane::transmit, then the fake device's read and write of the status word that setsDD. - Device write and receive: the fake device's copy of the frame into the slot at
receive_cursorand its status word, thenDataPlane::receive, asserted to return the length. - Device write alone: the fake device's part of the second column, timed by itself.
What was not run
- No comparator benchmark:
virtio-drivers'FakeTransportis behind#[cfg(test)], andixgbe-driverneeds a mapped BAR and a device that answers its bring-up. - No device: the benchmark measures the data plane's own work against memory, not a bus.
- Kani, mutation testing and the fuzz targets were not run.
- FreeBSD's
sys/dev/e1000was not read beyond the function names the crate cites.