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

Function igb_intr_disable

dpdk/drivers/net/e1000/igb_ethdev.c:529–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529static void
530igb_intr_disable(struct rte_eth_dev *dev)
531{
532 struct e1000_hw *hw =
533 E1000_DEV_PRIVATE_TO_HW(dev->data->dev_private);
534 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(dev);
535 struct rte_intr_handle *intr_handle = pci_dev->intr_handle;
536
537 if (rte_intr_allow_others(intr_handle) &&
538 dev->data->dev_conf.intr_conf.lsc != 0) {
539 E1000_WRITE_REG(hw, E1000_EIMC, 1 << IGB_MSIX_OTHER_INTR_VEC);
540 }
541
542 E1000_WRITE_REG(hw, E1000_IMC, ~0);
543 E1000_WRITE_FLUSH(hw);
544}
545
546static inline void
547igbvf_intr_enable(struct rte_eth_dev *dev)

Callers 2

eth_igb_stopFunction · 0.85

Calls 1

rte_intr_allow_othersFunction · 0.50

Tested by

no test coverage detected