| 1067 | } |
| 1068 | |
| 1069 | static int |
| 1070 | virtio_intr_enable(struct rte_eth_dev *dev) |
| 1071 | { |
| 1072 | struct virtio_hw *hw = dev->data->dev_private; |
| 1073 | |
| 1074 | if (rte_intr_enable(dev->intr_handle) < 0) |
| 1075 | return -1; |
| 1076 | |
| 1077 | if (VIRTIO_OPS(hw)->intr_detect) |
| 1078 | VIRTIO_OPS(hw)->intr_detect(hw); |
| 1079 | |
| 1080 | return 0; |
| 1081 | } |
| 1082 | |
| 1083 | static int |
| 1084 | virtio_intr_disable(struct rte_eth_dev *dev) |
no test coverage detected