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

Function ixgbe_dev_lsc_interrupt_setup

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

* It clears the interrupt causes and enables the interrupt. * It will be called once only during nic initialized. * * @param dev * Pointer to struct rte_eth_dev. * @param on * Enable or Disable. * * @return * - On success, zero. * - On failure, a negative value. */

Source from the content-addressed store, hash-verified

4513 * - On failure, a negative value.
4514 */
4515static int
4516ixgbe_dev_lsc_interrupt_setup(struct rte_eth_dev *dev, uint8_t on)
4517{
4518 struct ixgbe_interrupt *intr =
4519 IXGBE_DEV_PRIVATE_TO_INTR(dev->data->dev_private);
4520
4521 ixgbe_dev_link_status_print(dev);
4522 if (on)
4523 intr->mask |= IXGBE_EICR_LSC;
4524 else
4525 intr->mask &= ~IXGBE_EICR_LSC;
4526
4527 return 0;
4528}
4529
4530/**
4531 * It clears the interrupt causes and enables the interrupt.

Callers 1

ixgbe_dev_startFunction · 0.85

Calls 1

Tested by

no test coverage detected