[virtio] Fix queue size calculations The queue size calculations currently do not take into account the fact that each packet requires a pair of descriptors. If the device happens to present an extremely small queue (16 descriptors for Q0, 32 descriptors for Q1) then this will result in the driver submitting descriptors beyond the queue's descriptor count. This does not result in any invalid memory accesses (since the descriptor ring length is rounded up to a 4kB boundary), but does result in an unusable network device. Fix by scaling the packet count and descriptor count values as required. Signed-off-by: Michael Brown <mcb30@ipxe.org>
iPXE is the leading open source network boot firmware. It provides a full PXE implementation enhanced with additional features such as:
boot from a web server via HTTP or HTTPS,
boot from an iSCSI, FCoE, or AoE SAN,
control the boot process with a script,
You can use iPXE to replace the existing PXE ROM on your network card, or you can chainload into iPXE to obtain the features of iPXE without the hassle of reflashing.
iPXE is free, open-source software licensed under the GNU GPL (with some portions under GPL-compatible licences).
You can download the rolling release binaries (built from the latest commit), or use the most recent stable release.
For full documentation, visit the iPXE website.