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

Function write_back_data

dpdk/lib/vhost/vhost_crypto.c:615–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615static void
616write_back_data(struct vhost_crypto_data_req *vc_req)
617{
618 struct vhost_crypto_writeback_data *wb_data = vc_req->wb, *wb_last;
619
620 while (wb_data) {
621 rte_memcpy(wb_data->dst, wb_data->src, wb_data->len);
622 memset(wb_data->src, 0, wb_data->len);
623 wb_last = wb_data;
624 wb_data = wb_data->next;
625 rte_mempool_put(vc_req->wb_pool, wb_last);
626 }
627}
628
629static void
630free_wb_data(struct vhost_crypto_writeback_data *wb_data,

Callers 1

Calls 3

memsetFunction · 0.85
rte_mempool_putFunction · 0.85
rte_memcpyFunction · 0.50

Tested by

no test coverage detected