* Register or unregister the Rx interrupts. * * @param dev * Pointer to the tap rte_eth_dev device structure. * @param set * should the operation be register or unregister the interrupts. * * @return * 0 on success, negative errno value otherwise and rte_errno is set. */
| 104 | * 0 on success, negative errno value otherwise and rte_errno is set. |
| 105 | */ |
| 106 | int |
| 107 | tap_rx_intr_vec_set(struct rte_eth_dev *dev, int set) |
| 108 | { |
| 109 | tap_rx_intr_vec_uninstall(dev); |
| 110 | if (set) |
| 111 | return tap_rx_intr_vec_install(dev); |
| 112 | return 0; |
| 113 | } |
no test coverage detected