cloud-hypervisor/net_util/src
Rob Bradford b9aeaf6634 net_util: Remove unnecessary return value from CtrlQueue::process()
Since the code has been adapted to support VIRTIO_F_EVENT_IDX we use
Queue::needs_notification() to determine whether to signal the guest so
it is no longer necessary to check if there are any used descriptors. If
the feature is not negotiated then Queue::needs_notification() will
return true triggering an interrupt of the guest. Theoretically this
could be a spurious interrupt of the guest if there were no used used
descriptors but this is unlikely as we only generate used descriptors
for the control queue as a result of an interrupt of the VMM by the
guest.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2022-03-15 16:08:29 +00:00
..
ctrl_queue.rs net_util: Remove unnecessary return value from CtrlQueue::process() 2022-03-15 16:08:29 +00:00
lib.rs net_util: split create_socket() into AF_UNIX and AF_INET varieties 2022-03-02 17:07:29 +01:00
mac.rs clippy: Remove useless code 2021-11-10 10:23:43 +01:00
open_tap.rs misc: Remove unused errors from public interface 2021-05-11 13:37:19 +02:00
queue_pair.rs net_util: Use value returned from Queue::enable_notification() 2022-03-15 16:08:29 +00:00
tap.rs net_util: split create_socket() into AF_UNIX and AF_INET varieties 2022-03-02 17:07:29 +01:00