We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 071dc80 + 2431bb5 commit e99de6dCopy full SHA for e99de6d
tools/lkl/lib/virtio.c
@@ -111,7 +111,7 @@ void virtio_req_complete(struct virtio_req *req, uint32_t len)
111
* q->last_avail_idx is incremented after calling virtio_req_complete(),
112
* so here we need to add avail_used to it.
113
*/
114
- if (q->last_avail_idx + avail_used == q->avail->idx)
+ if (q->last_avail_idx + avail_used == le16toh(q->avail->idx))
115
send_irq = 1;
116
117
/* There are two rings: q->avail and q->used for each of the rx and tx
0 commit comments