OpenCloudOS-Kernel/tools/bpf/bpftool/Documentation
Daniel Borkmann 57c61da8bf bpftool: Extend net dump with tcx progs
Add support to dump fd-based attach types via bpftool. This includes both
the tc BPF link and attach ops programs. Dumped information contain the
attach location, function entry name, program ID and link ID when applicable.

Example with tc BPF link:

  # ./bpftool net
  xdp:

  tc:
  bond0(4) tcx/ingress cil_from_netdev prog_id 784 link_id 10
  bond0(4) tcx/egress cil_to_netdev prog_id 804 link_id 11

  flow_dissector:

  netfilter:

Example with tc BPF attach ops:

  # ./bpftool net
  xdp:

  tc:
  bond0(4) tcx/ingress cil_from_netdev prog_id 654
  bond0(4) tcx/egress cil_to_netdev prog_id 672

  flow_dissector:

  netfilter:

Currently, permanent flags are not yet supported, so 'unknown' ones are dumped
via NET_DUMP_UINT_ONLY() and once we do have permanent ones, we dump them as
human readable string.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/r/20230719140858.13224-7-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2023-07-19 10:07:28 -07:00
..
Makefile bpftool: Add SPDX tags to RST documentation files 2021-11-16 13:56:22 +01:00
bpftool-btf.rst bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
bpftool-cgroup.rst bpftool: Use libbpf_bpf_attach_type_str 2022-06-02 16:26:30 -07:00
bpftool-feature.rst bpftool: Rename "bpftool feature list" into "... feature list_builtins" 2022-07-05 11:53:54 +02:00
bpftool-gen.rst bpf: Replace deprecated -target with --target= for Clang 2023-06-29 15:46:17 +02:00
bpftool-iter.rst bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
bpftool-link.rst bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
bpftool-map.rst bpftool: Specify XDP Hints ifname when loading program 2023-05-23 16:55:06 +02:00
bpftool-net.rst bpftool: Extend net dump with tcx progs 2023-07-19 10:07:28 -07:00
bpftool-perf.rst bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
bpftool-prog.rst bpftool: Specify XDP Hints ifname when loading program 2023-05-23 16:55:06 +02:00
bpftool-struct_ops.rst bpftool: Update doc to explain struct_ops register subcommand. 2023-04-21 11:10:10 -07:00
bpftool.rst bpftool: man: Add missing top level docs 2022-03-15 15:51:41 -07:00
common_options.rst bpftool: remove support of --legacy option for bpftool 2022-11-20 16:17:46 -08:00
substitutions.rst bpftool: remove support of --legacy option for bpftool 2022-11-20 16:17:46 -08:00