Re: [RFC PATCH] Subject: virtio: Add unused buffers detach from vring
- From: Shirley Ma <mashirle@xxxxxxxxxx>
- Date: Tue, 15 Dec 2009 11:14:07 -0800
Hello Michael,
On Tue, 2009-12-15 at 20:47 +0200, Michael S. Tsirkin wrote:
+ detach_buf(vq, i);
+ END_USE(vq);
+ return vq->data[i];
In fact, this will return NULL always, won't it?
Nope, I changed the destroy to detach and return the buffers without
destroying them within the call. I thought it might be useful in some
other case.
Maybe I should put destroy call back?
Thanks
Shirley
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC PATCH] Subject: virtio: Add unused buffers detach from vring
- From: Michael S. Tsirkin
- Re: [RFC PATCH] Subject: virtio: Add unused buffers detach from vring
- References:
- Re: [PATCH 0/1] Defer skb allocation for both mergeable buffers and big packets in virtio_net
- From: Michael S. Tsirkin
- [PATCH v2 0/4] Defer skb allocation for both mergeable buffers and big packets in virtio_net
- From: Shirley Ma
- PATCH v2 3/4] Defer skb allocation -- new recvbuf alloc & receive calls
- From: Shirley Ma
- Re: PATCH v2 3/4] Defer skb allocation -- new recvbuf alloc & receive calls
- From: Michael S. Tsirkin
- Re: PATCH v2 3/4] Defer skb allocation -- new recvbuf alloc & receive calls
- From: Shirley Ma
- Re: PATCH v2 3/4] Defer skb allocation -- new recvbuf alloc & receive calls
- From: Michael S. Tsirkin
- Re: PATCH v2 3/4] Defer skb allocation -- new recvbuf alloc & receive calls
- From: Shirley Ma
- Re: PATCH v2 3/4] Defer skb allocation -- new recvbuf alloc & receive calls
- From: Michael S. Tsirkin
- [RFC PATCH] Subject: virtio: Add unused buffers detach from vring
- From: Shirley Ma
- Re: [RFC PATCH] Subject: virtio: Add unused buffers detach from vring
- From: Michael S. Tsirkin
- Re: [PATCH 0/1] Defer skb allocation for both mergeable buffers and big packets in virtio_net
- Prev by Date: Re: [PATCH] x86, mce: rework output of MCE banks ownership information
- Next by Date: Re: [PATCH 1/2] perf_event: Fix incorrect range check on cpu number
- Previous by thread: Re: [RFC PATCH] Subject: virtio: Add unused buffers detach from vring
- Next by thread: Re: [RFC PATCH] Subject: virtio: Add unused buffers detach from vring
- Index(es):
Relevant Pages
|