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

Function verify_data

dpdk/examples/bbdev_app/main.c:428–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428static inline void
429verify_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
445static int
446initialize_ports(struct app_config_params *app_params,

Callers 1

run_decodingFunction · 0.85

Calls 2

mbuf_inputFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected