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

Function buffers_compare

dpdk/app/test/test_cryptodev_crosscheck.c:803–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803static int
804buffers_compare(const uint8_t *expected, uint16_t expected_len,
805 const uint8_t *received, uint16_t received_len)
806{
807 TEST_ASSERT_EQUAL(expected_len, received_len, "Length mismatch %d != %d !\n",
808 expected_len, received_len);
809
810 if (memcmp(expected, received, expected_len)) {
811 rte_hexdump(rte_log_get_stream(), "expected", expected, expected_len);
812 rte_hexdump(rte_log_get_stream(), "received", received, expected_len);
813 return TEST_FAILED;
814 }
815
816 return TEST_SUCCESS;
817}
818
819static int
820crosscheck_all_devices(const struct crosscheck_test_profile *profile, enum crypto_op_type op_type,

Callers 1

crosscheck_all_devicesFunction · 0.85

Calls 2

rte_hexdumpFunction · 0.85
rte_log_get_streamFunction · 0.85

Tested by

no test coverage detected