Re: [PATCH 1/2] virtio: Add detach unused buffer from vring

2009-12-24 Thread Amit Shah
On (Thu) Dec 17 2009 [23:43:50], Shirley Ma wrote: There's currently no way for a virtio driver to ask for unused buffers, so it has to keep a list itself to reclaim them at shutdown. This is redundant, since virtio_ring stores that information. So add a new hook to do this: virtio_net will

Re: [PATCH 1/2] virtio: Add detach unused buffer from vring

2009-12-20 Thread Michael S. Tsirkin
On Thu, Dec 17, 2009 at 11:43:50PM -0800, Shirley Ma wrote: There's currently no way for a virtio driver to ask for unused buffers, so it has to keep a list itself to reclaim them at shutdown. This is redundant, since virtio_ring stores that information. So add a new hook to do this:

[PATCH 1/2] virtio: Add detach unused buffer from vring

2009-12-17 Thread Shirley Ma
There's currently no way for a virtio driver to ask for unused buffers, so it has to keep a list itself to reclaim them at shutdown. This is redundant, since virtio_ring stores that information. So add a new hook to do this: virtio_net will be the first user. Signed-off-by: Shirley Ma