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

Function virtio_dev_tx_single_packed

dpdk/lib/vhost/virtio_net.c:3460–3488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3458}
3459
3460static __rte_always_inline int
3461virtio_dev_tx_single_packed(struct virtio_net *dev,
3462 struct vhost_virtqueue *vq,
3463 struct rte_mempool *mbuf_pool,
3464 struct rte_mbuf *pkts,
3465 bool legacy_ol_flags)
3466 __rte_shared_locks_required(&vq->access_lock)
3467 __rte_shared_locks_required(&vq->iotlb_lock)
3468{
3469
3470 uint16_t buf_id, desc_count = 0;
3471 int ret;
3472
3473 ret = vhost_dequeue_single_packed(dev, vq, mbuf_pool, pkts, &buf_id,
3474 &desc_count, legacy_ol_flags);
3475
3476 if (likely(desc_count > 0)) {
3477 if (virtio_net_is_inorder(dev))
3478 vhost_shadow_dequeue_single_packed_inorder(vq, buf_id,
3479 desc_count);
3480 else
3481 vhost_shadow_dequeue_single_packed(vq, buf_id,
3482 desc_count);
3483
3484 vq_inc_last_avail_packed(vq, desc_count);
3485 }
3486
3487 return ret;
3488}
3489
3490__rte_always_inline
3491static uint16_t

Callers 1

virtio_dev_tx_packedFunction · 0.85

Tested by

no test coverage detected