commit | 7ae4b866f86f9ab7b99484b56dd303a860ad1cc9 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Thu Nov 04 14:24:24 2010 +0200 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Wed Nov 24 15:21:11 2010 +1030 |
tree | 247cd281bdf2e892180ff3407377d0a212c30016 | |
parent | dfd62d1d84d83f9421792c78bcf72de9bc2bb603 [diff] |
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 <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reported-By: Krishna Kumar2 <krkumar2@in.ibm.com>