]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/virtio_net.c
vhost: fix dirty page logging missing
[dpdk.git] / lib / librte_vhost / virtio_net.c
index cde7498c7699c5f438fe8229192126f8748f5e7d..cb54ebe18cb2cab2519520b4cc193fcae9eae018 100644 (file)
@@ -1108,6 +1108,10 @@ virtio_dev_rx_batch_packed(struct virtio_net *dev,
                           pkts[i]->pkt_len);
        }
 
+       vhost_for_each_try_unroll(i, 0, PACKED_BATCH_SIZE)
+               vhost_log_cache_write_iova(dev, vq, descs[avail_idx + i].addr,
+                                          lens[i]);
+
        vhost_for_each_try_unroll(i, 0, PACKED_BATCH_SIZE)
                ids[i] = descs[avail_idx + i].id;