Displaying 2 results from an estimated 2 matches for "e828ef1".
Did you mean:
e828e5d
2010 Sep 14
1
[PATCH] vhost: max s/g to match qemu
...at.com>
---
drivers/vhost/net.c | 2 +-
drivers/vhost/vhost.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
drivers/vhost/vhost.h | 18 ++++++++----------
3 files changed, 57 insertions(+), 12 deletions(-)
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 29e850a..e828ef1 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -243,7 +243,7 @@ static int get_rx_bufs(struct vhost_virtqueue *vq,
int r, nlogs = 0;
while (datalen > 0) {
- if (unlikely(headcount >= VHOST_NET_MAX_SG)) {
+ if (unlikely(headcount >= UIO_MAXIOV)) {
r = -ENOBUFS;...
2010 Sep 14
1
[PATCH] vhost: max s/g to match qemu
...at.com>
---
drivers/vhost/net.c | 2 +-
drivers/vhost/vhost.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
drivers/vhost/vhost.h | 18 ++++++++----------
3 files changed, 57 insertions(+), 12 deletions(-)
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 29e850a..e828ef1 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -243,7 +243,7 @@ static int get_rx_bufs(struct vhost_virtqueue *vq,
int r, nlogs = 0;
while (datalen > 0) {
- if (unlikely(headcount >= VHOST_NET_MAX_SG)) {
+ if (unlikely(headcount >= UIO_MAXIOV)) {
r = -ENOBUFS;...