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

Function avp_dev_setup_interrupts

dpdk/drivers/net/avp/avp_ethdev.c:772–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772static int
773avp_dev_setup_interrupts(struct rte_eth_dev *eth_dev)
774{
775 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev);
776 int ret;
777
778 /* register a callback handler with UIO for interrupt notifications */
779 ret = rte_intr_callback_register(pci_dev->intr_handle,
780 avp_dev_interrupt_handler,
781 (void *)eth_dev);
782 if (ret < 0) {
783 PMD_DRV_LOG(ERR, "Failed to register UIO interrupt callback, ret=%d\n",
784 ret);
785 return ret;
786 }
787
788 /* enable interrupt processing */
789 return avp_dev_enable_interrupts(eth_dev);
790}
791
792static int
793avp_dev_migration_pending(struct rte_eth_dev *eth_dev)

Callers 1

eth_avp_dev_initFunction · 0.85

Calls 2

Tested by

no test coverage detected