| 805 | } |
| 806 | |
| 807 | static uint32_t |
| 808 | calc_tuple_hash(const uint8_t tuple[TUPLE_SZ], const uint8_t *key) |
| 809 | { |
| 810 | uint32_t i, hash; |
| 811 | uint32_t tmp[TUPLE_SZ / sizeof(uint32_t)]; |
| 812 | |
| 813 | for (i = 0; i < RTE_DIM(tmp); i++) |
| 814 | tmp[i] = rte_be_to_cpu_32( |
| 815 | *(const uint32_t *)&tuple[i * sizeof(uint32_t)]); |
| 816 | |
| 817 | hash = rte_softrss(tmp, RTE_DIM(tmp), key); |
| 818 | return hash; |
| 819 | } |
| 820 | |
| 821 | static int |
| 822 | check_adj_tuple(const uint8_t tuple[TUPLE_SZ], const uint8_t *key, |
no test coverage detected