Commit 108d50a9 authored by Stanislav Fomichev's avatar Stanislav Fomichev Committed by Alexei Starovoitov

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: default avatarStanislav Fomichev <sdf@google.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 0157edc8
...@@ -116,7 +116,7 @@ static __always_inline int parse_eth_proto(struct __sk_buff *skb, __be16 proto) ...@@ -116,7 +116,7 @@ static __always_inline int parse_eth_proto(struct __sk_buff *skb, __be16 proto)
return BPF_DROP; return BPF_DROP;
} }
SEC("dissect") SEC("flow_dissector")
int _dissect(struct __sk_buff *skb) int _dissect(struct __sk_buff *skb)
{ {
if (!skb->vlan_present) if (!skb->vlan_present)
......
...@@ -59,7 +59,7 @@ else ...@@ -59,7 +59,7 @@ else
fi fi
# Attach BPF program # Attach BPF program
./flow_dissector_load -p bpf_flow.o -s dissect ./flow_dissector_load -p bpf_flow.o -s flow_dissector
# Setup # Setup
tc qdisc add dev lo ingress tc qdisc add dev lo ingress
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment