diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-24 09:59:20 -0600 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-24 09:59:20 +0930 |
commit | 48925e372f04f5e35fec6269127c62b2c71ab794 (patch) | |
tree | 451e84e09afc37ed6f8dc262b40bd88106883410 /scripts/gfp-translate | |
parent | b3f24698a7faa6e9d8a14124cfdc25353fc8ca19 (diff) |
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 <rusty@rustcorp.com.au>
Cc: Dinesh Subhraveti <dineshs@us.ibm.com>
Diffstat (limited to 'scripts/gfp-translate')
0 files changed, 0 insertions, 0 deletions