forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
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
[ commit msg tbd ] 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> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
- Loading branch information
Showing
1 changed file
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters