MCPcopy Create free account
hub / github.com/F-Stack/f-stack / create_sgcomp

Function create_sgcomp

dpdk/drivers/crypto/nitrox/nitrox_sym_reqmgr.c:316–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316static void
317create_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
333static int
334create_cipher_inbuf(struct nitrox_softreq *sr)

Callers 4

create_cipher_inbufFunction · 0.85
create_cipher_outbufFunction · 0.85
create_aead_inbufFunction · 0.85
create_aead_outbufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected