Re: [PATCH v2 15/15] net: invoke qemu_can_send_packet only before net queue sending function

Paolo Bonzini
2012-05-24T12:02:34Z

Il 24/05/2012 13:58, Zhi Yong Wu ha scritto:
>> > But you will copy packets uselessly. The code before the patch simply
>> > left them on the tap file descriptor. This is better because it
>> > involves the kernel in flow control. You are introducing "bufferbloat".
> You are correct, but can_send_packet will be invoked twice for one
> packet delivery.

Doesn't matter, it's cheap.

Paolo