projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test_bpf: assign type to native eBPF test cases
[firefly-linux-kernel-4.4.55.git]
/
lib
/
test_bpf.c
diff --git
a/lib/test_bpf.c
b/lib/test_bpf.c
index 8b5e66f008b0d6e2b5a872d21ab35bbbbb9cead3..3afddf2026c983d279fe822a0c42b7f1a65f193a 100644
(file)
--- a/
lib/test_bpf.c
+++ b/
lib/test_bpf.c
@@
-4613,6
+4613,8
@@
static struct bpf_prog *generate_filter(int which, int *err)
}
fp->len = flen;
+ /* Type doesn't really matter here as long as it's not unspec. */
+ fp->type = BPF_PROG_TYPE_SOCKET_FILTER;
memcpy(fp->insnsi, fptr, fp->len * sizeof(struct bpf_insn));
bpf_prog_select_runtime(fp);