| 739 | } |
| 740 | |
| 741 | static void |
| 742 | mbuf_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 | |
| 753 | static int |
| 754 | single_dev_process(const struct crosscheck_test_profile *profile, uint16_t dev_id, enum |
no test coverage detected