* 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? */
| 904 | * event? |
| 905 | */ |
| 906 | static __rte_always_inline int |
| 907 | vhost_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 | |
| 912 | static __rte_always_inline void |
| 913 | vhost_vring_inject_irq(struct virtio_net *dev, struct vhost_virtqueue *vq) |
no outgoing calls
no test coverage detected