]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_pci.h
net/virtio: add helper to get interrrupt handle
[dpdk.git] / drivers / net / virtio / virtio_pci.h
index de271bfe194c08bfbe5c1bb23c51749b35f0a6d5..5373e390fcb39aa36a6b4ee3eee8b078ec8ba0e2 100644 (file)
@@ -317,4 +317,10 @@ uint8_t vtpci_isr(struct virtio_hw *);
 
 uint16_t vtpci_irq_config(struct virtio_hw *, uint16_t);
 
+static inline struct rte_intr_handle *
+vtpci_intr_handle(struct virtio_hw *hw)
+{
+       return hw->dev ? &hw->dev->intr_handle : NULL;
+}
+
 #endif /* _VIRTIO_PCI_H_ */