| 522 | } |
| 523 | |
| 524 | static int |
| 525 | pdcp_known_vec_verify(struct rte_mbuf *m, const uint8_t *expected, uint32_t expected_pkt_len) |
| 526 | { |
| 527 | uint8_t *actual = rte_pktmbuf_mtod(m, uint8_t *); |
| 528 | uint32_t actual_pkt_len = rte_pktmbuf_pkt_len(m); |
| 529 | |
| 530 | if (!silent) { |
| 531 | debug_hexdump(stdout, "Received:", actual, actual_pkt_len); |
| 532 | debug_hexdump(stdout, "Expected:", expected, expected_pkt_len); |
| 533 | } |
| 534 | |
| 535 | TEST_ASSERT_EQUAL(actual_pkt_len, expected_pkt_len, |
| 536 | "Mismatch in packet lengths [expected: %d, received: %d]", |
| 537 | expected_pkt_len, actual_pkt_len); |
| 538 | |
| 539 | TEST_ASSERT_BUFFERS_ARE_EQUAL(actual, expected, expected_pkt_len, |
| 540 | "Generated packet not as expected"); |
| 541 | |
| 542 | return 0; |
| 543 | } |
| 544 | |
| 545 | static struct rte_crypto_op * |
| 546 | process_crypto_request(uint8_t dev_id, struct rte_crypto_op *op) |
no test coverage detected