From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WReic-0001zl-Ds for qemu-devel@nongnu.org; Sun, 23 Mar 2014 05:29:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WReiQ-0003nL-NP for qemu-devel@nongnu.org; Sun, 23 Mar 2014 05:29:26 -0400 From: Prasad Joshi Date: Sun, 23 Mar 2014 14:58:43 +0530 Message-Id: <1395566923-5074-6-git-send-email-prasadjoshi.linux@gmail.com> In-Reply-To: <1395566923-5074-1-git-send-email-prasadjoshi.linux@gmail.com> References: <1395566923-5074-1-git-send-email-prasadjoshi.linux@gmail.com> Subject: [Qemu-devel] [PATCH 6/6] net: netmap_poll must update both read/write poll state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: prasadjoshi.linux@gmail.com Cc: peter.maydell@linaro.org, stefanha@redhat.com, v.maffione@gmail.com, aik@ozlabs.ru, jan.kiszka@siemens.com, riku.voipio@iki.fi, agraf@suse.de, chouteau@adacore.com, qemu-devel@nongnu.org, qemu-trivial@nongnu.org, av1474@comtv.ru, kraxel@redhat.com, aliguori@amazon.com, pbonzini@redhat.com, g.lettieri@iet.unipi.it, alex@alex.org.uk, rizzo@iet.unipi.it, afaerber@suse.de Signed-off-by: Prasad Joshi --- 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.1.2