diff options
author | Prasad Joshi <prasadjoshi.linux@gmail.com> | 2014-03-23 14:58:43 +0530 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-03-25 13:31:38 +0100 |
commit | 131e744a15c54f0bad3d3925eeca1acf47996e06 (patch) | |
tree | cb6b8319d66b56530b7a7aa24f9aee16001dbfe2 /net/netmap.c | |
parent | 839a5547574e57cce62f49bfc50fe1f04b00589a (diff) | |
download | qemu-131e744a15c54f0bad3d3925eeca1acf47996e06.zip qemu-131e744a15c54f0bad3d3925eeca1acf47996e06.tar.gz qemu-131e744a15c54f0bad3d3925eeca1acf47996e06.tar.bz2 |
net: netmap_poll must update both read/write poll state
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net/netmap.c')
-rw-r--r-- | net/netmap.c | 4 |
1 files 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); } } |