diff options
| author | Michael S. Tsirkin <[email protected]> | 2010-11-04 12:24:24 +0000 |
|---|---|---|
| committer | Rusty Russell <[email protected]> | 2010-11-24 04:51:11 +0000 |
| commit | 7ae4b866f86f9ab7b99484b56dd303a860ad1cc9 (patch) | |
| tree | 247cd281bdf2e892180ff3407377d0a212c30016 /lib/dynamic_debug.c | |
| parent | module: Update prototype for ref_module (formerly use_module) (diff) | |
| download | kernel-7ae4b866f86f9ab7b99484b56dd303a860ad1cc9.tar.gz kernel-7ae4b866f86f9ab7b99484b56dd303a860ad1cc9.zip | |
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 <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
Reported-By: Krishna Kumar2 <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
