Page MenuHomeFreeBSD

virtio: Support non-legacy network device and queue
ClosedPublic

Authored by jrtc27 on Jun 4 2020, 7:02 PM.
Tags
None
Referenced Files
F132015369: D25132.diff
Sun, Oct 12, 11:26 PM
Unknown Object (File)
Sat, Oct 11, 8:21 AM
Unknown Object (File)
Thu, Oct 2, 11:37 PM
Unknown Object (File)
Thu, Sep 25, 1:17 AM
Unknown Object (File)
Sun, Sep 14, 5:42 AM
Unknown Object (File)
Sep 10 2025, 11:17 PM
Unknown Object (File)
Sep 10 2025, 5:24 PM
Unknown Object (File)
Sep 8 2025, 9:11 AM
Subscribers

Details

Summary

The non-legacy interface always defines num_buffers in the header,
regardless of whether VIRTIO_NET_F_MRG_RXBUF, just leaving it unused. We
also need to ensure our virtqueue doesn't filter out VIRTIO_F_VERSION_1
during negotiation, as it supports non-legacy transports just fine. This
fixes network packet transmission on TinyEMU.

Test Plan

Network interface still works in QEMU (which provides a legacy device by
default), but now also works on a TinyEMU-based system.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable