Thread (3 messages) 3 messages, 3 authors, 2017-03-29

Re: [PATCH net-next 7/8] vhost_net: try batch dequing from skb array

From: Jason Wang <jasowang@redhat.com>
Date: 2017-03-29 10:54:11
Also in: kvm, lkml, netdev

Possibly related (same subject, not in this thread)


On 2017年03月29日 18:46, Pankaj Gupta wrote:
Hi Jason,
quoted
On 2017年03月23日 13:34, Jason Wang wrote:
quoted
quoted
quoted
+{
+    if (rvq->rh != rvq->rt)
+        goto out;
+
+    rvq->rh = rvq->rt = 0;
+    rvq->rt = skb_array_consume_batched_bh(rvq->rx_array, rvq->rxq,
+                        VHOST_RX_BATCH);
A comment explaining why is is -bh would be helpful.
Ok.

Thanks
Rethink about this. It looks like -bh is not needed in this case since
no consumer run in bh.
In that case do we need other variants of "ptr_ring_consume_batched_*()" functions.
Are we planning to use them in future?
I think we'd better keep them, since it serves as helpers. You can see 
that not all the helpers in ptr_ring has real users, but they were 
prepared for the future use.

Thanks
quoted
Thanks
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help