* 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. * * @return * - On success, zero. * - On failure, a negative value. */
| 2110 | * - On failure, a negative value. |
| 2111 | */ |
| 2112 | static int |
| 2113 | ngbe_dev_rxq_interrupt_setup(struct rte_eth_dev *dev) |
| 2114 | { |
| 2115 | struct ngbe_interrupt *intr = ngbe_dev_intr(dev); |
| 2116 | u64 mask; |
| 2117 | |
| 2118 | mask = NGBE_ICR_MASK; |
| 2119 | mask &= ~((1ULL << NGBE_RX_VEC_START) - 1); |
| 2120 | intr->mask |= mask; |
| 2121 | |
| 2122 | return 0; |
| 2123 | } |
| 2124 | |
| 2125 | /** |
| 2126 | * It clears the interrupt causes and enables the interrupt. |
no test coverage detected