diff options
| author | Alexei Starovoitov <[email protected]> | 2016-03-08 05:57:20 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-03-08 20:28:32 +0000 |
| commit | 89b976070190eb9dd14943c0d6ca4b7209f61405 (patch) | |
| tree | 36762c9aedfdf442e89148c0079e6cc1cbebbd57 /samples/bpf/fds_example.c | |
| parent | samples/bpf: move ksym_search() into library (diff) | |
| download | kernel-89b976070190eb9dd14943c0d6ca4b7209f61405.tar.gz kernel-89b976070190eb9dd14943c0d6ca4b7209f61405.zip | |
samples/bpf: add map_flags to bpf loader
note old loader is compatible with new kernel.
map_flags are optional
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'samples/bpf/fds_example.c')
| -rw-r--r-- | samples/bpf/fds_example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/fds_example.c b/samples/bpf/fds_example.c index e2fd16c3d0f0..625e797be6ef 100644 --- a/samples/bpf/fds_example.c +++ b/samples/bpf/fds_example.c @@ -44,7 +44,7 @@ static void usage(void) static int bpf_map_create(void) { return bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(uint32_t), - sizeof(uint32_t), 1024); + sizeof(uint32_t), 1024, 0); } static int bpf_prog_create(const char *object) |
