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

Function ixgbevf_intr_enable

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:5407–5426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5405}
5406
5407static void
5408ixgbevf_intr_enable(struct rte_eth_dev *dev)
5409{
5410 struct ixgbe_interrupt *intr =
5411 IXGBE_DEV_PRIVATE_TO_INTR(dev->data->dev_private);
5412 struct ixgbe_hw *hw =
5413 IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
5414
5415 PMD_INIT_FUNC_TRACE();
5416
5417 /* VF enable interrupt autoclean */
5418 IXGBE_WRITE_REG(hw, IXGBE_VTEIAM, IXGBE_VF_IRQ_ENABLE_MASK);
5419 IXGBE_WRITE_REG(hw, IXGBE_VTEIAC, IXGBE_VF_IRQ_ENABLE_MASK);
5420 IXGBE_WRITE_REG(hw, IXGBE_VTEIMS, IXGBE_VF_IRQ_ENABLE_MASK);
5421
5422 IXGBE_WRITE_FLUSH(hw);
5423
5424 /* Save IXGBE_VTEIMS value to mask. */
5425 intr->mask = IXGBE_VF_IRQ_ENABLE_MASK;
5426}
5427
5428static int
5429ixgbevf_dev_configure(struct rte_eth_dev *dev)

Callers 3

eth_ixgbevf_dev_initFunction · 0.85
ixgbevf_dev_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected