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

Function virtqueue_kick_prepare_packed

dpdk/drivers/net/virtio/virtqueue.h:504–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504static inline int
505virtqueue_kick_prepare_packed(struct virtqueue *vq)
506{
507 uint16_t flags;
508
509 /*
510 * Ensure updated data is visible to vhost before reading the flags.
511 */
512 virtio_mb(vq->hw->weak_barriers);
513 flags = vq->vq_packed.ring.device->desc_event_flags;
514
515 return flags != RING_EVENT_FLAGS_DISABLE;
516}
517
518/*
519 * virtqueue_kick_prepare*() or the virtio_wmb() should be called

Callers 5

virtio_recv_pkts_packedFunction · 0.85
virtio_xmit_pkts_packedFunction · 0.85

Calls 1

virtio_mbFunction · 0.85

Tested by

no test coverage detected