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

Function mbuf_to_buf_copy

dpdk/app/test/test_cryptodev_crosscheck.c:741–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741static void
742mbuf_to_buf_copy(const struct rte_mbuf *m, uint8_t *res_buf, uint16_t *len)
743{
744 const uint8_t *out;
745
746 *len = m->pkt_len;
747 out = rte_pktmbuf_read(m, 0, *len, res_buf);
748 /* Single segment buffer */
749 if (out != res_buf)
750 memcpy(res_buf, out, *len);
751}
752
753static int
754single_dev_process(const struct crosscheck_test_profile *profile, uint16_t dev_id, enum

Callers 1

single_dev_processFunction · 0.85

Calls 2

rte_pktmbuf_readFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected