aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPrasad Joshi <prasadjoshi.linux@gmail.com>2014-03-23 14:58:43 +0530
committerStefan Hajnoczi <stefanha@redhat.com>2014-03-25 13:31:38 +0100
commit131e744a15c54f0bad3d3925eeca1acf47996e06 (patch)
treecb6b8319d66b56530b7a7aa24f9aee16001dbfe2 /net
parent839a5547574e57cce62f49bfc50fe1f04b00589a (diff)
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')
-rw-r--r--net/netmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netmap.c b/net/netmap.c
index 8213304a5b..0c1772b03f 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);
}
}