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)
Thu, Apr 11, 5:51 AM
Unknown Object (File)
Dec 21 2023, 2:04 PM
Unknown Object (File)
Dec 20 2023, 9:37 AM
Unknown Object (File)
Dec 20 2023, 5:54 AM
Unknown Object (File)
Oct 14 2023, 4:40 PM
Unknown Object (File)
Aug 12 2023, 2:33 PM
Unknown Object (File)
Jun 3 2023, 8:16 AM
Unknown Object (File)
May 14 2023, 6:52 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

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