| 426 | } |
| 427 | |
| 428 | static inline void |
| 429 | verify_data(struct rte_mbuf **mbufs, uint16_t num_pkts) |
| 430 | { |
| 431 | uint16_t i; |
| 432 | for (i = 0; i < num_pkts; ++i) { |
| 433 | struct rte_mbuf *out = mbufs[i]; |
| 434 | struct rte_mbuf *in = *mbuf_input(out); |
| 435 | |
| 436 | if (memcmp(rte_pktmbuf_mtod_offset(in, uint8_t *, |
| 437 | sizeof(struct rte_ether_hdr)), |
| 438 | rte_pktmbuf_mtod_offset(out, uint8_t *, |
| 439 | sizeof(struct rte_ether_hdr)), |
| 440 | K / 8 - CRC_24B_LEN)) |
| 441 | printf("Input and output buffers are not equal!\n"); |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | static int |
| 446 | initialize_ports(struct app_config_params *app_params, |
no test coverage detected