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

Function i40e_vsi_disable_queues_intr

dpdk/drivers/net/i40e/i40e_ethdev.c:2156–2177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2154}
2155
2156void
2157i40e_vsi_disable_queues_intr(struct i40e_vsi *vsi)
2158{
2159 struct rte_eth_dev *dev = I40E_VSI_TO_ETH_DEV(vsi);
2160 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(dev);
2161 struct rte_intr_handle *intr_handle = pci_dev->intr_handle;
2162 struct i40e_hw *hw = I40E_VSI_TO_HW(vsi);
2163 struct i40e_pf *pf = I40E_VSI_TO_PF(vsi);
2164 uint16_t msix_intr, i;
2165
2166 if (rte_intr_allow_others(intr_handle) && !pf->support_multi_driver)
2167 for (i = 0; i < vsi->nb_msix; i++) {
2168 msix_intr = vsi->msix_intr + i;
2169 I40E_WRITE_REG(hw, I40E_PFINT_DYN_CTLN(msix_intr - 1),
2170 I40E_PFINT_DYN_CTLN_ITR_INDX_MASK);
2171 }
2172 else
2173 I40E_WRITE_REG(hw, I40E_PFINT_DYN_CTL0,
2174 I40E_PFINT_DYN_CTL0_ITR_INDX_MASK);
2175
2176 I40E_WRITE_FLUSH(hw);
2177}
2178
2179static inline uint8_t
2180i40e_parse_link_speeds(uint16_t link_speeds)

Callers 2

i40e_fdir_teardownFunction · 0.85
i40e_dev_stopFunction · 0.85

Calls 1

rte_intr_allow_othersFunction · 0.50

Tested by

no test coverage detected