| 314 | } |
| 315 | |
| 316 | static void |
| 317 | create_sgcomp(struct nitrox_sgtable *sgtbl) |
| 318 | { |
| 319 | int i, j, nr_sgcomp; |
| 320 | struct nitrox_sgcomp *sgcomp = sgtbl->sgcomp; |
| 321 | struct nitrox_sglist *sglist = sgtbl->sglist; |
| 322 | |
| 323 | nr_sgcomp = RTE_ALIGN_MUL_CEIL(sgtbl->map_bufs_cnt, 4) / 4; |
| 324 | sgtbl->nr_sgcomp = nr_sgcomp; |
| 325 | for (i = 0; i < nr_sgcomp; i++, sgcomp++) { |
| 326 | for (j = 0; j < 4; j++, sglist++) { |
| 327 | sgcomp->len[j] = rte_cpu_to_be_16(sglist->len); |
| 328 | sgcomp->iova[j] = rte_cpu_to_be_64(sglist->iova); |
| 329 | } |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | static int |
| 334 | create_cipher_inbuf(struct nitrox_softreq *sr) |
no outgoing calls
no test coverage detected