Searched refs:tlpm_match (Results 1 – 1 of 1) sorted by relevance
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | lpm_trie_map_basic_ops.c | 54 static struct tlpm_node *tlpm_match(struct tlpm_node *list, 68 node = tlpm_match(list, key, n_bits); in tlpm_add() 98 static struct tlpm_node *tlpm_match(struct tlpm_node *list, in tlpm_match() function 131 struct tlpm_node *best = tlpm_match(list, key, n_bits); in tlpm_delete() 161 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 164 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 165 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic() 166 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic() 167 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8)); in test_lpm_basic() 168 assert(!tlpm_match(list, (uint8_t[]){ 0xfe }, 8)); in test_lpm_basic() [all …]
|