net: netmap_poll must update both read/write poll state
PATCH 1/1 net: netmap_poll must update both read/write poll state
From: Prasad Joshi <[email protected]>
Signed-off-by Prasad Joshi <[email protected]>
Signed-off-by Stefan Hajnoczi <[email protected]>
--- net/netmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/netmap.c +2 -2
@@ -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); } }
Signature · 1 line
1.8.5.3