* 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. */
| 4513 | * - On failure, a negative value. |
| 4514 | */ |
| 4515 | static int |
| 4516 | ixgbe_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. |
no test coverage detected