From d67e8fd81d2058a6f9e67cc94c55a7dd9ceb6780 Mon Sep 17 00:00:00 2001 From: Ryan Goodfellow Date: Fri, 2 Dec 2022 23:09:49 -0800 Subject: 15225 Want bigger virtio 9P buffers Reviewed by: Andrew Stormont Reviewed by: Patrick Mooney Reviewed by: Toomas Soome Approved by: Dan McDonald --- usr/src/uts/common/io/vio9p/vio9p_impl.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/usr/src/uts/common/io/vio9p/vio9p_impl.h b/usr/src/uts/common/io/vio9p/vio9p_impl.h index f8718c1ed2..74cb5bef15 100644 --- a/usr/src/uts/common/io/vio9p/vio9p_impl.h +++ b/usr/src/uts/common/io/vio9p/vio9p_impl.h @@ -62,8 +62,18 @@ extern "C" { /* * DRIVER PARAMETERS */ -#define VIRTIO_9P_MAX_REQS 16 -#define VIRTIO_9P_REQ_SIZE 8192 + +/* + * A limit on the number of requests that can be allocated for a vio9p device. + */ +#define VIRTIO_9P_MAX_REQS 8 + +/* + * This parameter defines an upper bound on 9P protocol message size (msize). 9P + * servers may negotiate an msize up to this value. An attempt to transfer a + * message larger than this will result in a EMSGISZE error. + */ +#define VIRTIO_9P_REQ_SIZE 65536 /* * It is not clear that there is a well-defined number of cookies for this @@ -72,7 +82,7 @@ extern "C" { * number that's large enough to ensure we'll be able to allocate without * requiring contiguous pages. */ -#define VIRTIO_9P_MAX_SGL 8 +#define VIRTIO_9P_MAX_SGL 64 /* * TYPE DEFINITIONS -- cgit v1.2.3