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)
Mon, Jan 20, 8:44 AM
Unknown Object (File)
Wed, Jan 1, 3:58 AM
Unknown Object (File)
Tue, Dec 31, 3:56 AM
Unknown Object (File)
Mon, Dec 30, 3:58 AM
Unknown Object (File)
Sun, Dec 29, 4:06 AM
Unknown Object (File)
Sat, Dec 28, 4:27 AM
Unknown Object (File)
Fri, Dec 27, 11:15 AM
Unknown Object (File)
Nov 18 2024, 11:04 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