opnsense-src/sys/dev/virtio/block
Andrew Turner cbc2e34613 virtio_blk: Limit use of indirect descriptors
Pass 0 as the number of indirect descriptors when they are not
supported.

This fixes an issue on the Arm FVP model where we don't negotiate
them, however pass a number of segments greater than
VIRTIO_MAX_INDIRECT. This leads to virtqueue_alloc failing and
virtio_blk failing to attach.

Reviewed by:	Harry Moulton <harry.moulton@arm.com>
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D50909
2025-06-23 13:55:24 +01:00
..
virtio_blk.c virtio_blk: Limit use of indirect descriptors 2025-06-23 13:55:24 +01:00
virtio_blk.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00