From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSUO9-0002ZP-Km for qemu-devel@nongnu.org; Tue, 25 Mar 2014 12:44:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSUJR-00044i-Ty for qemu-devel@nongnu.org; Tue, 25 Mar 2014 12:39:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSUJR-00044c-LW for qemu-devel@nongnu.org; Tue, 25 Mar 2014 12:34:53 -0400 From: Stefan Hajnoczi Date: Tue, 25 Mar 2014 17:34:42 +0100 Message-Id: <1395765282-15838-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1395765282-15838-1-git-send-email-stefanha@redhat.com> References: <1395765282-15838-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PULL for-2.0 1/1] net: netmap_poll must update both read/write poll state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Prasad Joshi , Stefan Hajnoczi , Anthony Liguori From: Prasad Joshi Signed-off-by: Prasad Joshi Signed-off-by: Stefan Hajnoczi --- 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