From patchwork Tue Mar 25 16:34:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 333526 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7EEEA1400A3 for ; Wed, 26 Mar 2014 03:45:00 +1100 (EST) Received: from localhost ([::1]:42872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSUTC-0007td-KJ for incoming@patchwork.ozlabs.org; Tue, 25 Mar 2014 12:44:58 -0400 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 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2PGYlUK003157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 25 Mar 2014 12:34:49 -0400 Received: from localhost (ovpn-112-45.ams2.redhat.com [10.36.112.45]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s2PGYkmS027833; Tue, 25 Mar 2014 12:34:47 -0400 From: Stefan Hajnoczi To: 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> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Maydell , Prasad Joshi , Stefan Hajnoczi , Anthony Liguori Subject: [Qemu-devel] [PULL for-2.0 1/1] net: netmap_poll must update both read/write poll state X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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); } }