summary refs log tree commit diff
path: root/arch/src/lib.rs
diff options
context:
space:
mode:
authorStephen Barber <smbarber@chromium.org>2019-10-04 15:20:05 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-08 08:55:59 +0000
commit7595d80248541434a8f4d93b5032b701cfdf4c7f (patch)
tree45e76c5defdfe8e36090658b51c7e1551e079db1 /arch/src/lib.rs
parent04e9c03f03f4c5e479d13c5f318d3b89d784ad7f (diff)
downloadcrosvm-7595d80248541434a8f4d93b5032b701cfdf4c7f.tar
crosvm-7595d80248541434a8f4d93b5032b701cfdf4c7f.tar.gz
crosvm-7595d80248541434a8f4d93b5032b701cfdf4c7f.tar.bz2
crosvm-7595d80248541434a8f4d93b5032b701cfdf4c7f.tar.lz
crosvm-7595d80248541434a8f4d93b5032b701cfdf4c7f.tar.xz
crosvm-7595d80248541434a8f4d93b5032b701cfdf4c7f.tar.zst
crosvm-7595d80248541434a8f4d93b5032b701cfdf4c7f.zip
devices: virtio_net: handle errors in tapfd poll adding/removal
Add error handling for adding/removing the tapfd to epoll.

We only remove the tap fd from the poll context if the tap is
readable, i.e. it would busy loop, so don't assume it's removed
from the poll context when there's a deferred rx frame.

BUG=chromium:1010742
TEST=arcvm network works

Change-Id: I84aab2dbe7ea31d724f04d3b3fb0a6916f232300
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1842399
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Commit-Queue: Stephen Barber <smbarber@chromium.org>
Diffstat (limited to 'arch/src/lib.rs')
0 files changed, 0 insertions, 0 deletions