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
Unknown Object (File)
Fri, Aug 14, 4:41 AM
Unknown Object (File)
Tue, Aug 11, 4:53 PM
Unknown Object (File)
Mon, Aug 10, 1:58 AM
Unknown Object (File)
Sun, Aug 9, 2:07 PM
Unknown Object (File)
Sat, Aug 8, 7:15 PM
Unknown Object (File)
Sat, Aug 8, 3:08 PM
Unknown Object (File)
Sat, Aug 8, 10:00 AM
Unknown Object (File)
Fri, Aug 7, 4:49 PM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31491
Build 29098: arc lint + arc unit