Re: [Qemu-devel] [PATCH v5 07/11] iov: add iov_discard() to remove data

2012-12-06 Thread Stefan Hajnoczi
On Thu, Dec 06, 2012 at 01:36:42PM +0200, Michael S. Tsirkin wrote: > On Wed, Dec 05, 2012 at 09:47:06PM +0100, Stefan Hajnoczi wrote: > > The iov_discard() function removes data from the front or back of the > > vector. This is useful when peeling off header/footer structs. > > > > Signed-off-by

Re: [Qemu-devel] [PATCH v5 07/11] iov: add iov_discard() to remove data

2012-12-06 Thread Michael S. Tsirkin
On Wed, Dec 05, 2012 at 09:47:06PM +0100, Stefan Hajnoczi wrote: > The iov_discard() function removes data from the front or back of the > vector. This is useful when peeling off header/footer structs. > > Signed-off-by: Stefan Hajnoczi > --- > iov.c | 41 +++

[Qemu-devel] [PATCH v5 07/11] iov: add iov_discard() to remove data

2012-12-05 Thread Stefan Hajnoczi
The iov_discard() function removes data from the front or back of the vector. This is useful when peeling off header/footer structs. Signed-off-by: Stefan Hajnoczi --- iov.c | 41 + iov.h | 13 + 2 files changed, 54 insertions(+) diff --git a