mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
libbpf: use map_flags when creating maps
This is required to use BPF_MAP_TYPE_LPM_TRIE or any other map type which requires flags. Signed-off-by: Craig Gallek <kraig@google.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b13c5c14db
commit
fe9b5f774b
2 changed files with 2 additions and 1 deletions
|
@ -942,7 +942,7 @@ bpf_object__create_maps(struct bpf_object *obj)
|
|||
def->key_size,
|
||||
def->value_size,
|
||||
def->max_entries,
|
||||
0);
|
||||
def->map_flags);
|
||||
if (*pfd < 0) {
|
||||
size_t j;
|
||||
int err = *pfd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue