Commit 131e744a authored by Prasad Joshi's avatar Prasad Joshi Committed by Stefan Hajnoczi
Browse files

net: netmap_poll must update both read/write poll state

parent 839a5547
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ 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->write_poll = enable;
        s->read_poll  = enable;
        netmap_update_fd_handler(s);
    }