src/dpdk/drivers/net/nfp/nfp_net.c
static void
nfp_net_irq_unmask(struct rte_eth_dev *dev)
{
	struct nfp_net_hw *hw;
	struct rte_pci_device *pci_dev;

	hw = NFP_NET_DEV_PRIVATE_TO_HW(dev->data->dev_private);
	pci_dev = RTE_ETH_DEV_TO_PCI(dev);

	if (hw->ctrl & NFP_NET_CFG_CTRL_MSIXAUTO) {
		/* If MSI-X auto-masking is used, clear the entry */
		rte_wmb();
		rte_intr_ack(&pci_dev->intr_handle);
	} else {
		/* Make sure all updates are written before un-masking */
		rte_wmb();
		nn_cfg_writeb(hw, NFP_NET_CFG_ICR(NFP_NET_IRQ_LSC_IDX),
			      NFP_NET_CFG_ICR_UNMASKED);
	}
}
/*
 * nfp_net_irq_unmask - Unmask an interrupt
 *
 * If MSI-X auto-masking is enabled clear the mask bit, otherwise
 * clear the ICR for the entry.
 */
Unmask an interrupt
If MSI-X auto-masking is enabled clear the mask bit, otherwise
clear the ICR for the entry.
Unmask an interrupt If MSI - X auto - masking is enabled clear the mask bit otherwise clear the ICR for the entry .
static void
nfp_net_irq_unmask(struct rte_eth_dev *dev)
{
	struct nfp_net_hw *hw;
	struct rte_pci_device *pci_dev;
	hw = NFP_NET_DEV_PRIVATE_TO_HW(dev->data->dev_private);
	pci_dev = RTE_ETH_DEV_TO_PCI(dev);
	if (hw->ctrl & NFP_NET_CFG_CTRL_MSIXAUTO) {
		rte_wmb();
		rte_intr_ack(&pci_dev->intr_handle);
	} else {
		rte_wmb();
		nn_cfg_writeb(hw, NFP_NET_CFG_ICR(NFP_NET_IRQ_LSC_IDX),
			      NFP_NET_CFG_ICR_UNMASKED);
	}
}
static void nfp_net_irq_unmask ( struct rte_eth_dev * dev ) { struct nfp_net_hw * hw ; struct rte_pci_device * pci_dev ; hw = NFP_NET_DEV_PRIVATE_TO_HW ( dev -> data -> dev_private ) ; pci_dev = RTE_ETH_DEV_TO_PCI ( dev ) ; if ( hw -> ctrl & NFP_NET_CFG_CTRL_MSIXAUTO ) { rte_wmb ( ) ; rte_intr_ack ( & pci_dev -> intr_handle ) ; } else { rte_wmb ( ) ; nn_cfg_writeb ( hw , NFP_NET_CFG_ICR ( NFP_NET_IRQ_LSC_IDX ) , NFP_NET_CFG_ICR_UNMASKED ) ; } }
nfp_net_irq_unmask - Unmask an interrupt
 If MSI-X auto-masking is enabled clear the mask bit, otherwise
 clear the ICR for the entry.
nfp_net_irq_unmask - Unmask an interrupt If MSI - X auto - masking is enabled clear the mask bit otherwise clear the ICR for the entry .
/* If MSI-X auto-masking is used, clear the entry */ /* Make sure all updates are written before un-masking */