mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
net: netmap_poll must update both read/write poll state
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
839a554757
commit
131e744a15
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue