* Print out result of unit test efd operation. */
| 47 | * Print out result of unit test efd operation. |
| 48 | */ |
| 49 | static void print_key_info(const char *msg, const struct flow_key *key, |
| 50 | efd_value_t val) |
| 51 | { |
| 52 | const uint8_t *p = (const uint8_t *) key; |
| 53 | unsigned int i; |
| 54 | |
| 55 | rte_log(RTE_LOG_DEBUG, efd_logtype_test, "%s key:0x", msg); |
| 56 | for (i = 0; i < sizeof(struct flow_key); i++) |
| 57 | rte_log(RTE_LOG_DEBUG, efd_logtype_test, "%02X", p[i]); |
| 58 | |
| 59 | rte_log(RTE_LOG_DEBUG, efd_logtype_test, " @ val %d\n", val); |
| 60 | } |
| 61 | |
| 62 | /* Keys used by unit test functions */ |
| 63 | static struct flow_key keys[5] = { |
no test coverage detected