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

Function pktmbuf_read_into

dpdk/app/test/test_pdcp.c:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258static int
259pktmbuf_read_into(const struct rte_mbuf *m, void *buf, size_t buf_len)
260{
261 if (m->pkt_len > buf_len)
262 return -ENOMEM;
263
264 const void *read = rte_pktmbuf_read(m, 0, m->pkt_len, buf);
265 if (read != NULL && read != buf)
266 memcpy(buf, read, m->pkt_len);
267
268 return 0;
269}
270
271static int
272cryptodev_init(int dev_id)

Callers 2

test_attempt_singleFunction · 0.85

Calls 2

rte_pktmbuf_readFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected