| 602 | } |
| 603 | |
| 604 | static int rte_dpaa_setup_intr(struct rte_intr_handle *intr_handle) |
| 605 | { |
| 606 | int fd; |
| 607 | |
| 608 | fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); |
| 609 | if (fd < 0) { |
| 610 | DPAA_BUS_ERR("Cannot set up eventfd, error %i (%s)", |
| 611 | errno, strerror(errno)); |
| 612 | return errno; |
| 613 | } |
| 614 | |
| 615 | if (rte_intr_fd_set(intr_handle, fd)) |
| 616 | return rte_errno; |
| 617 | |
| 618 | if (rte_intr_type_set(intr_handle, RTE_INTR_HANDLE_EXT)) |
| 619 | return rte_errno; |
| 620 | |
| 621 | return 0; |
| 622 | } |
| 623 | |
| 624 | static int |
| 625 | rte_dpaa_bus_probe(void) |
no test coverage detected