diff options
| author | Mickaël Salaün <[email protected]> | 2017-02-09 23:21:39 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-02-10 20:56:07 +0000 |
| commit | 10ecc728fe12dbd206e2d4d8b6e96082632b969c (patch) | |
| tree | 1bf0ee12402d6dcd7667e799d7518d565e683743 /tools/lib/bpf/bpf.c | |
| parent | bpf: Use bpf_load_program() from the library (diff) | |
| download | kernel-10ecc728fe12dbd206e2d4d8b6e96082632b969c.tar.gz kernel-10ecc728fe12dbd206e2d4d8b6e96082632b969c.zip | |
bpf: Use bpf_map_update_elem() from the library
Replace bpf_map_update() with bpf_map_update_elem() calls.
Signed-off-by: Mickaël Salaün <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf.c')
| -rw-r--r-- | tools/lib/bpf/bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c index 58ce252073fa..1de762677a2f 100644 --- a/tools/lib/bpf/bpf.c +++ b/tools/lib/bpf/bpf.c @@ -98,7 +98,7 @@ int bpf_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, return sys_bpf(BPF_PROG_LOAD, &attr, sizeof(attr)); } -int bpf_map_update_elem(int fd, void *key, void *value, +int bpf_map_update_elem(int fd, const void *key, const void *value, __u64 flags) { union bpf_attr attr; |
