On 19/05/2015 17:02, Stefan Hajnoczi wrote:
> 1. Convert everything like you converted qemu-nbd.c.  This is a 
> conservative approach and we can be confident that behavior is 
> unchanged.

So, that means whenever you change receive_disabled you call a new
callback on the peer?  In addition, whenever the count of
receive-disabled ports switches from zero to non-zero or vice versa,
hubs need to inform all its ports.

There are just two places that set/clear receive_disabled,
qemu_deliver_packet and qemu_flush_or_purge_queued_packets, but I
think a new API is needed to implement the callback for hubs
(qemu_send_enable/qemu_send_disable).

Paolo

Reply via email to