aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@fb.com>2016-03-08 00:57:20 -0500
committerDavid S. Miller <davem@davemloft.net>2016-03-08 15:28:32 -0500
commit89b976070190eb9dd14943c0d6ca4b7209f61405 (patch)
tree36762c9aedfdf442e89148c0079e6cc1cbebbd57 /samples/bpf/bpf_helpers.h
parent3622e7e4935105991dc648bca650c858576aecda (diff)
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 <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/bpf_helpers.h')
-rw-r--r--samples/bpf/bpf_helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h
index 811bcca0f29d..9363500131a7 100644
--- a/samples/bpf/bpf_helpers.h
+++ b/samples/bpf/bpf_helpers.h
@@ -61,6 +61,7 @@ struct bpf_map_def {
61 unsigned int key_size; 61 unsigned int key_size;
62 unsigned int value_size; 62 unsigned int value_size;
63 unsigned int max_entries; 63 unsigned int max_entries;
64 unsigned int map_flags;
64}; 65};
65 66
66static int (*bpf_skb_store_bytes)(void *ctx, int off, void *from, int len, int flags) = 67static int (*bpf_skb_store_bytes)(void *ctx, int off, void *from, int len, int flags) =