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

Function pktmbuf_mtod_offset

dpdk/app/test/test_cryptodev.h:153–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static inline uint8_t *
154pktmbuf_mtod_offset(struct rte_mbuf *mbuf, int offset) {
155 struct rte_mbuf *m;
156
157 for (m = mbuf; (m != NULL) && (offset > m->data_len); m = m->next)
158 offset -= m->data_len;
159
160 if (m == NULL) {
161 printf("pktmbuf_mtod_offset: offset out of buffer\n");
162 return NULL;
163 }
164 return rte_pktmbuf_mtod_offset(m, uint8_t *, offset);
165}
166
167static inline rte_iova_t
168pktmbuf_iova_offset(struct rte_mbuf *mbuf, int offset) {

Callers 1

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected