[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] net: netmap_poll must update both read/write poll s
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH] net: netmap_poll must update both read/write poll state |
Date: |
Tue, 25 Mar 2014 16:04:58 +0100 |
From: Prasad Joshi <address@hidden>
Signed-off-by: Prasad Joshi <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
net/netmap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/netmap.c b/net/netmap.c
index 8213304..0c1772b 100644
--- a/net/netmap.c
+++ b/net/netmap.c
@@ -177,8 +177,8 @@ static void netmap_poll(NetClientState *nc, bool enable)
NetmapState *s = DO_UPCAST(NetmapState, nc, nc);
if (s->read_poll != enable || s->write_poll != enable) {
- s->read_poll = enable;
- s->read_poll = enable;
+ s->write_poll = enable;
+ s->read_poll = enable;
netmap_update_fd_handler(s);
}
}
--
1.8.5.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] net: netmap_poll must update both read/write poll state,
Stefan Hajnoczi <=