* 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. */
| 2134 | * - On failure, a negative value. |
| 2135 | */ |
| 2136 | static int |
| 2137 | ngbe_dev_macsec_interrupt_setup(struct rte_eth_dev *dev) |
| 2138 | { |
| 2139 | struct ngbe_interrupt *intr = ngbe_dev_intr(dev); |
| 2140 | |
| 2141 | intr->mask_misc |= NGBE_ICRMISC_LNKSEC; |
| 2142 | |
| 2143 | return 0; |
| 2144 | } |
| 2145 | |
| 2146 | /* |
| 2147 | * It reads ICR and sets flag for the link_update. |
no test coverage detected