diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2012-10-16 23:56:14 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-12-18 15:20:32 +1030 |
commit | 6ee57bcc1e61d39c0579438055bc84087210f9b6 (patch) | |
tree | 2cae790fe378aa4be4419e40ae13f2a4e4b4d8c5 /Documentation/dell_rbu.txt | |
parent | 06ca287dbac9cc19d04ac2901b8c4882c03795ff (diff) |
virtio-net: correct capacity math on ring full
Capacity math on ring full is wrong: we are
looking at num_sg but that might be optimistic
because of indirect buffer use.
The implementation also penalizes fast path
with extra memory accesses for the benefit of
ring full condition handling which is slow path.
It's easy to query ring capacity so let's do just that.
This change also makes it easier to move vnet header
for tx around as follow-up patch does.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'Documentation/dell_rbu.txt')
0 files changed, 0 insertions, 0 deletions