Commit 68ffdea
committed
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 <[email protected]>
Signed-off-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>1 parent 8aea3de commit 68ffdea
1 file changed
+72
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
420 | 425 | | |
421 | 426 | | |
422 | 427 | | |
423 | | - | |
424 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
425 | 491 | | |
426 | 492 | | |
427 | 493 | | |
| |||
686 | 752 | | |
687 | 753 | | |
688 | 754 | | |
689 | | - | |
690 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
691 | 759 | | |
692 | 760 | | |
693 | 761 | | |
| |||
0 commit comments