]> git.proxmox.com Git - mirror_iproute2.git/commit
bpf: add btf func and func_proto kind support
authorYonghong Song <yhs@fb.com>
Fri, 25 Jan 2019 00:41:07 +0000 (16:41 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 5 Feb 2019 23:29:20 +0000 (15:29 -0800)
commit3da6d055d93fefe40bf88a9bc37b4ce3433696ee
treed9d42be27788b05a99e09acd1d95492fc4c4df9a
parent264be1d887102d47d725b299a1b74393259015dc
bpf: add btf func and func_proto kind support

The issue is discovered for bpf selftest test_skb_cgroup.sh.
Currently we have,
  $ ./test_skb_cgroup_id.sh
  Wait for testing link-local IP to become available ... OK
  Object has unknown BTF type: 13!
  [PASS]

In the above the BTF type 13 refers to BTF kind
BTF_KIND_FUNC_PROTO.
This patch added support of BTF_KIND_FUNC_PROTO and
BTF_KIND_FUNC during type parsing.
With this patch, I got
  $ ./test_skb_cgroup_id.sh
  Wait for testing link-local IP to become available ... OK
  [PASS]

Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/bpf.c