Thread (1 message) 1 message, 1 author, 2015-01-27

Re: [PATCH v2 02/24] virtio: Use weaker barriers

From: Xie, Huawei <hidden>
Date: 2015-01-27 07:56:36

-------if (likely(nb_enqueued)) {
------->-------virtio_wmb();
------->-------if (unlikely(virtqueue_kick_prepare(rxvq))) {
------->------->-------virtqueue_notify(rxvq);
------->------->-------PMD_RX_LOG(DEBUG, "Notified\n");
------->-------}
-------}
-------vq_update_avail_idx(rxvq);

Two confuses for the modification here:

1.
why notify host without updating avail idx?
Will this cause potential deadlock?

2.
Why update avail index even no packets are enqueued?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help