summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2014-03-25 18:49:45 +0100
committerPeter Maydell2014-03-25 18:49:46 +0100
commit169e4878ee96b7d6dec929e0cd400a0395865a85 (patch)
tree305698cc0f5b698a5f66e1a28a7dbf8064a94b94
parentMerge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into ... (diff)
parentnet: netmap_poll must update both read/write poll state (diff)
downloadqemu-169e4878ee96b7d6dec929e0cd400a0395865a85.tar.gz
qemu-169e4878ee96b7d6dec929e0cd400a0395865a85.tar.xz
qemu-169e4878ee96b7d6dec929e0cd400a0395865a85.zip
Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging
Net patches # gpg: Signature made Tue 25 Mar 2014 15:02:48 GMT using RSA key ID 81AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * remotes/stefanha/tags/net-pull-request: net: netmap_poll must update both read/write poll state Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-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);
}
}