| 126 | } |
| 127 | |
| 128 | __use_avx2 |
| 129 | int |
| 130 | idxd_enqueue_copy(void *dev_private, uint16_t qid __rte_unused, rte_iova_t src, |
| 131 | rte_iova_t dst, unsigned int length, uint64_t flags) |
| 132 | { |
| 133 | /* we can take advantage of the fact that the fence flag in dmadev and DSA are the same, |
| 134 | * but check it at compile time to be sure. |
| 135 | */ |
| 136 | RTE_BUILD_BUG_ON(RTE_DMA_OP_FLAG_FENCE != IDXD_FLAG_FENCE); |
| 137 | uint32_t memmove = (idxd_op_memmove << IDXD_CMD_OP_SHIFT) | |
| 138 | IDXD_FLAG_CACHE_CONTROL | (flags & IDXD_FLAG_FENCE); |
| 139 | return __idxd_write_desc(dev_private, memmove, src, dst, length, |
| 140 | flags); |
| 141 | } |
| 142 | |
| 143 | __use_avx2 |
| 144 | int |
nothing calls this directly
no test coverage detected