| 527 | } |
| 528 | |
| 529 | static void |
| 530 | igb_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 | |
| 546 | static inline void |
| 547 | igbvf_intr_enable(struct rte_eth_dev *dev) |
no test coverage detected