From: Rusty Russell Date: Thu, 24 Sep 2009 15:59:20 +0000 (-0600) Subject: virtio_net: avoid (most) NETDEV_TX_BUSY by stopping queue early. X-Git-Tag: v2.6.32-rc1~21^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48925e372f04f5e35fec6269127c62b2c71ab794;p=pandora-kernel.git virtio_net: avoid (most) NETDEV_TX_BUSY by stopping queue early. Now we can tell the theoretical capacity remaining in the output queue, virtio_net can waste entries by stopping the queue early. It doesn't work in the case of indirect buffers and kmalloc failure, but that's rare (we could drop the packet in that case, but other drivers return TX_BUSY for similar reasons). For the record, I think this patch reflects poorly on the linux network API. Signed-off-by: Rusty Russell Cc: Dinesh Subhraveti --- Reading git-diff-tree failed