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

Function modern_set_queue_irq

dpdk/drivers/net/virtio/virtio_pci.c:403–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403static uint16_t
404modern_set_queue_irq(struct virtio_hw *hw, struct virtqueue *vq, uint16_t vec)
405{
406 struct virtio_pci_dev *dev = virtio_pci_get_dev(hw);
407
408 rte_write16(vq->vq_queue_index, &dev->common_cfg->queue_select);
409 rte_write16(vec, &dev->common_cfg->queue_msix_vector);
410 return rte_read16(&dev->common_cfg->queue_msix_vector);
411}
412
413static uint16_t
414modern_get_queue_num(struct virtio_hw *hw, uint16_t queue_id)

Callers

nothing calls this directly

Calls 2

rte_write16Function · 0.50
rte_read16Function · 0.50

Tested by

no test coverage detected