| 47 | } |
| 48 | |
| 49 | static bool |
| 50 | is_valid_virt_queue_idx(uint32_t idx, int is_tx, uint32_t nr_vring) |
| 51 | { |
| 52 | return (is_tx ^ (idx & 1)) == 0 && idx < nr_vring; |
| 53 | } |
| 54 | |
| 55 | static inline void |
| 56 | vhost_queue_stats_update(struct virtio_net *dev, struct vhost_virtqueue *vq, |
no outgoing calls
no test coverage detected