MCPcopy Create free account
hub / github.com/F-Stack/f-stack / complete_async_pkts

Function complete_async_pkts

dpdk/examples/vhost/main.c:1028–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028static __rte_always_inline void
1029complete_async_pkts(struct vhost_dev *vdev)
1030{
1031 struct rte_mbuf *p_cpl[MAX_PKT_BURST];
1032 uint16_t complete_count;
1033 int16_t dma_id = dma_bind[vid2socketid[vdev->vid]].dmas[VIRTIO_RXQ].dev_id;
1034
1035 complete_count = rte_vhost_poll_enqueue_completed(vdev->vid,
1036 VIRTIO_RXQ, p_cpl, MAX_PKT_BURST, dma_id, 0);
1037 if (complete_count)
1038 free_pkts(p_cpl, complete_count);
1039
1040}
1041
1042static __rte_always_inline void
1043sync_virtio_xmit(struct vhost_dev *dst_vdev, struct vhost_dev *src_vdev,

Callers 1

async_enqueue_pktsFunction · 0.85

Calls 2

free_pktsFunction · 0.70

Tested by

no test coverage detected