[RFC PATCH 2/2] sg_ring instead of scatterlist chaining in virtio

2007-11-04 Thread Rusty Russell
Example using virtio. The interface actually improves because we don't need to hand two lengths to add_buf (it needs an input and output sg[], so we used to hand one pointer and a counter of how many were in and how many out, now we can neatly hand two separate sgs). diff --git

[RFC PATCH 2/2] sg_ring instead of scatterlist chaining in virtio

2007-11-04 Thread Rusty Russell
Example using virtio. The interface actually improves because we don't need to hand two lengths to add_buf (it needs an input and output sg[], so we used to hand one pointer and a counter of how many were in and how many out, now we can neatly hand two separate sgs). diff --git