diff options
author | Stanislav Fomichev <sdf@google.com> | 2018-11-09 19:21:40 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-11-11 02:56:10 +0300 |
commit | 108d50a976db70c59e6f2fc58d3252fd38ef3fc4 (patch) | |
tree | 12f727d781ece5cbaf3dd94ebec6ab2bb7c35d88 /tools/testing/selftests/bpf | |
parent | 0157edc859afa96af5eefb306dde3b5fa6eddcf0 (diff) | |
download | linux-108d50a976db70c59e6f2fc58d3252fd38ef3fc4.tar.xz |
selftests/bpf: rename flow dissector section to flow_dissector
Makes it compatible with the logic that derives program type
from section name in libbpf_prog_type_by_name.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf')
-rw-r--r-- | tools/testing/selftests/bpf/bpf_flow.c | 2 | ||||
-rwxr-xr-x | tools/testing/selftests/bpf/test_flow_dissector.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/bpf_flow.c b/tools/testing/selftests/bpf/bpf_flow.c index 107350a7821d..b9798f558ca7 100644 --- a/tools/testing/selftests/bpf/bpf_flow.c +++ b/tools/testing/selftests/bpf/bpf_flow.c @@ -116,7 +116,7 @@ static __always_inline int parse_eth_proto(struct __sk_buff *skb, __be16 proto) return BPF_DROP; } -SEC("dissect") +SEC("flow_dissector") int _dissect(struct __sk_buff *skb) { if (!skb->vlan_present) diff --git a/tools/testing/selftests/bpf/test_flow_dissector.sh b/tools/testing/selftests/bpf/test_flow_dissector.sh index c0fb073b5eab..d23d4da66b83 100755 --- a/tools/testing/selftests/bpf/test_flow_dissector.sh +++ b/tools/testing/selftests/bpf/test_flow_dissector.sh @@ -59,7 +59,7 @@ else fi # Attach BPF program -./flow_dissector_load -p bpf_flow.o -s dissect +./flow_dissector_load -p bpf_flow.o -s flow_dissector # Setup tc qdisc add dev lo ingress |