From: Michael S. Tsirkin Date: Thu, 4 Nov 2010 12:24:24 +0000 (+0200) Subject: virtio: return correct capacity to users X-Git-Tag: v2.6.37-rc4~35^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ae4b866f86f9ab7b99484b56dd303a860ad1cc9;p=pandora-kernel.git virtio: return correct capacity to users We can't rely on indirect buffers for capacity calculations because they need a memory allocation which might fail. In particular, virtio_net can get into this situation under stress, and it drops packets and performs badly. So return the number of buffers we can guarantee users. Signed-off-by: Michael S. Tsirkin Signed-off-by: Rusty Russell Reported-By: Krishna Kumar2 --- Reading git-diff-tree failed