Apparently through one of my revisions of the initial patches series I lost the devmap test. We can add more testing later but for now lets fix the simple one we have.
Unified · Split
| @@ -104,6 +104,7 @@ enum bpf_map_type { · 103 unmodified lines | ||
| 104 | 104 | BPF_MAP_TYPE_LPM_TRIE, |
| 105 | 105 | BPF_MAP_TYPE_ARRAY_OF_MAPS, |
| 106 | 106 | BPF_MAP_TYPE_HASH_OF_MAPS, |
| 107 | + BPF_MAP_TYPE_DEVMAP, | |
| 107 | 108 | }; |
| 108 | 109 | |
| 109 | 110 | enum bpf_prog_type { |
| @@ -440,7 +440,7 @@ static void test_arraymap_percpu_many_keys(void) · 439 unmodified lines | ||
| 440 | 440 | |
| 441 | 441 | static void test_devmap(int task, void *data) |
| 442 | 442 | { |
| 443 | − int next_key, fd; | |
| 443 | + int fd; | |
| 444 | 444 | __u32 key, value; |
| 445 | 445 | |
| 446 | 446 | fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), |
| @@ -620,6 +620,8 @@ static void run_all_tests(void) · 173 unmodified lines | ||
| 620 | 620 | |
| 621 | 621 | test_arraymap_percpu_many_keys(); |
| 622 | 622 | |
| 623 | + test_devmap(0, NULL); | |
| 624 | + | |
| 623 | 625 | test_map_large(); |
| 624 | 626 | test_map_parallel(); |
| 625 | 627 | test_map_stress(); |