vhost: fix statistics update in async dequeue
This patch adds missing per-virtqueue statistics in async dequeue path.
Fixes: 84d5204310
("vhost: support async dequeue for split ring")
Signed-off-by: Xuan Ding <xuan.ding@intel.com>
Tested-by: Wei Ling <weix.ling@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
f4284e2dda
commit
b7c2ecbacb
@ -3796,6 +3796,7 @@ rte_vhost_async_try_dequeue_burst(int vid, uint16_t queue_id,
|
||||
* learning table will get updated first.
|
||||
*/
|
||||
pkts[0] = rarp_mbuf;
|
||||
vhost_queue_stats_update(dev, vq, pkts, 1);
|
||||
pkts++;
|
||||
count -= 1;
|
||||
}
|
||||
@ -3817,6 +3818,7 @@ rte_vhost_async_try_dequeue_burst(int vid, uint16_t queue_id,
|
||||
}
|
||||
|
||||
*nr_inflight = vq->async->pkts_inflight_n;
|
||||
vhost_queue_stats_update(dev, vq, pkts, count);
|
||||
|
||||
out:
|
||||
if (dev->features & (1ULL << VIRTIO_F_IOMMU_PLATFORM))
|
||||
|
Loading…
Reference in New Issue
Block a user