Browse Source

Fix the size of receive buffer packing onto VirtIO ring.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
jvrao 14 năm trước cách đây
mục cha
commit
114e6f3a5e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      net/9p/trans_virtio.c

+ 1 - 1
net/9p/trans_virtio.c

@@ -367,7 +367,7 @@ req_retry_pinned:
 		in += inp;
 		in += inp;
 	} else {
 	} else {
 		in = pack_sg_list(chan->sg, out, VIRTQUEUE_NUM, rdata,
 		in = pack_sg_list(chan->sg, out, VIRTQUEUE_NUM, rdata,
-				client->msize);
+				req->rc->capacity);
 	}
 	}
 
 
 	err = virtqueue_add_buf(chan->vq, chan->sg, out, in, req->tc);
 	err = virtqueue_add_buf(chan->vq, chan->sg, out, in, req->tc);