projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/sched: taprio: Fix init procedure
[linux-2.6-microblaze.git]
/
net
/
bpf
/
test_run.c
diff --git
a/net/bpf/test_run.c
b/net/bpf/test_run.c
index
aa47af3
..
1cc75c8
100644
(file)
--- a/
net/bpf/test_run.c
+++ b/
net/bpf/test_run.c
@@
-701,6
+701,9
@@
int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
void *data;
int ret;
+ if (prog->expected_attach_type == BPF_XDP_DEVMAP ||
+ prog->expected_attach_type == BPF_XDP_CPUMAP)
+ return -EINVAL;
if (kattr->test.ctx_in || kattr->test.ctx_out)
return -EINVAL;