| 564 | } |
| 565 | |
| 566 | static int |
| 567 | cdx_unplug(struct rte_device *dev) |
| 568 | { |
| 569 | struct rte_cdx_device *cdx_dev; |
| 570 | int ret; |
| 571 | |
| 572 | cdx_dev = RTE_DEV_TO_CDX_DEV(dev); |
| 573 | ret = cdx_detach_dev(cdx_dev); |
| 574 | if (ret == 0) { |
| 575 | cdx_remove_device(cdx_dev); |
| 576 | rte_devargs_remove(dev->devargs); |
| 577 | free(cdx_dev); |
| 578 | } |
| 579 | return ret; |
| 580 | } |
| 581 | |
| 582 | static int |
| 583 | cdx_dma_map(struct rte_device *dev, void *addr, uint64_t iova, size_t len) |
nothing calls this directly
no test coverage detected