net/virtio: add helper to get interrrupt handle
authorJan Blunck <jblunck@infradead.org>
Fri, 23 Dec 2016 15:58:01 +0000 (16:58 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 25 Dec 2016 22:11:22 +0000 (23:11 +0100)
commitf5880e1f29c2643a284043bcae7ec440f31a9d61
treeff8d81f097be255527e4d6c6c6b81a4e95c90583
parent4fe8b2eec848fc054ac2c45a585d74f6e8e392e7
net/virtio: add helper to get interrrupt handle

This adds a helper to get the rte_intr_handle from the virtio_hw. This is
safe to do since the usage of the helper is guarded by RTE_ETH_DEV_INTR_LSC
which is only set if we found a PCI device during initialization.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci.h