Searched refs:tlpm_match (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_lpm_map.c | 37 static struct tlpm_node *tlpm_match(struct tlpm_node *list, 51 node = tlpm_match(list, key, n_bits); in tlpm_add() 81 static struct tlpm_node *tlpm_match(struct tlpm_node *list, in tlpm_match() function 114 struct tlpm_node *best = tlpm_match(list, key, n_bits); in tlpm_delete() 144 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic() 149 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic() 150 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8)); in test_lpm_basic() 151 assert(!tlpm_match(lis in test_lpm_basic() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_lpm_map.c | 36 static struct tlpm_node *tlpm_match(struct tlpm_node *list, 50 node = tlpm_match(list, key, n_bits); in tlpm_add() 80 static struct tlpm_node *tlpm_match(struct tlpm_node *list, in tlpm_match() function 113 struct tlpm_node *best = tlpm_match(list, key, n_bits); in tlpm_delete() 143 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 146 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic() 148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic() 149 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8)); in test_lpm_basic() 150 assert(!tlpm_match(lis in test_lpm_basic() [all...] |
Completed in 2 milliseconds