Bump the size of the blockif scatter-gather list to 67.

The Windows virtio driver ignores the advertized seg_max
field and assumes the host can accept up to 67 segments
in indirect descriptors, triggering an assert in the bhyve
process.

No objection from:	mav
Reviewed by:	neel
Reported and tested by:	Leon Dang (ldang@nahannisys.com)
MFC after:	2 weeks
This commit is contained in:
Peter Grehan 2015-05-14 21:08:48 +00:00
parent 6e3471bd0b
commit 253396a378
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282922

View File

@ -39,7 +39,7 @@
#include <sys/uio.h>
#include <sys/unistd.h>
#define BLOCKIF_IOV_MAX 33 /* not practical to be IOV_MAX */
#define BLOCKIF_IOV_MAX 67 /* not practical to be IOV_MAX */
struct blockif_req {
struct iovec br_iov[BLOCKIF_IOV_MAX];