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

Function vhost_need_event

dpdk/lib/vhost/vhost.h:906–910  ·  view source on GitHub ↗

* The following is used with VIRTIO_RING_F_EVENT_IDX. * Assuming a given event_idx value from the other size, if we have * just incremented index from old to new_idx, should we trigger an * event? */

Source from the content-addressed store, hash-verified

904 * event?
905 */
906static __rte_always_inline int
907vhost_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old)
908{
909 return (uint16_t)(new_idx - event_idx - 1) < (uint16_t)(new_idx - old);
910}
911
912static __rte_always_inline void
913vhost_vring_inject_irq(struct virtio_net *dev, struct vhost_virtqueue *vq)

Callers 2

vhost_vring_call_splitFunction · 0.85
vhost_vring_call_packedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected