mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
Split out functions that work just on the TAP device and queues. Whilst doing so also improve the error handling to return Results rather than drop errors. This change also addresses a bug where the TAP event suppression could ineffectual because it was being enabled immediately after it may have been disabled: resume_rx -> rx_single_frame -> unregister_listener -> resume_rx -> register_listener. Signed-off-by: Rob Bradford <robert.bradford@intel.com>