Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpftool: Add support for tc fd-based attach types
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, link ID when applicable as well as the attach priority. Example with tc BPF link: # ./bpftool net xdp: tc: lo(1) bpf/ingress tc_handler_in id 189 link 40 prio 1 lo(1) bpf/egress tc_handler_eg id 190 link 39 prio 1 flow_dissector: Example with tc BPF attach ops and also one instance of old-style cls_bpf: # ./bpftool net xdp: tc: lo(1) bpf/ingress tc_handler_in id 201 prio 1 lo(1) clsact/ingress tc_handler_old:[203] id 203 flow_dissector: Co-developed-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org> Co-developed-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
- Loading branch information