Thread (20 messages) 20 messages, 4 authors, 2010-02-02

Re: [PATCH 2/2] virtio_net: Defer skb allocation in receive path

From: Shirley Ma <hidden>
Date: 2010-01-04 21:11:30
Also in: kvm

Hello Amit,

Sorry for late response. I am just back from vacation.

On Thu, 2009-12-24 at 19:07 +0530, Amit Shah wrote:
quoted
+static void free_unused_bufs(struct virtnet_info *vi)
+{
+     void *buf;
+     while (vi->num) {
+             buf = vi->rvq->vq_ops->detach_unused_buf(vi->rvq);
+             if (!buf)
+                     continue;
Do you mean 'break' here?
Nope, it means break since the buffer usage is not sorted by descriptors
from my understanding. It breaks when vi->num reaches 0.

Thanks
Shirley
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help