selftests/bpf: rename flow dissector section to flow_dissector
authorStanislav Fomichev <sdf@google.com>
Fri, 9 Nov 2018 16:21:40 +0000 (08:21 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 10 Nov 2018 23:56:10 +0000 (15:56 -0800)
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>
tools/testing/selftests/bpf/bpf_flow.c
tools/testing/selftests/bpf/test_flow_dissector.sh

index 107350a7821d09afe1e78721ae2aef06479b5fad..b9798f558ca7f47619e3e6c5ebcfeeb9d85b6581 100644 (file)
@@ -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)
index c0fb073b5eab26bdb89e6d75b214dfdad2de8ac8..d23d4da66b834858a2307517b65529aba0622e86 100755 (executable)
@@ -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