bpftool: Add 'prepend' option for tcx attach to insert at chain start#10683
bpftool: Add 'prepend' option for tcx attach to insert at chain start#10683kernel-patches-daemon-bpf[bot] wants to merge 2 commits intobpf-next_basefrom
Conversation
|
Upstream branch: 5714ca8 |
1a6c4b2 to
695292f
Compare
|
Upstream branch: 9c1a352 |
29d44f9 to
867788f
Compare
695292f to
020dffd
Compare
|
Upstream branch: 9c1a352 |
867788f to
d6ab7bb
Compare
020dffd to
71b3aa7
Compare
|
Upstream branch: 7af3339 |
d6ab7bb to
74569e6
Compare
71b3aa7 to
9a92374
Compare
|
Upstream branch: da4ab5d |
74569e6 to
f57fd90
Compare
9a92374 to
f7c018a
Compare
|
Upstream branch: c9c9f6b |
f57fd90 to
640a0aa
Compare
f7c018a to
393bcc0
Compare
|
Upstream branch: b9da173 |
640a0aa to
13a70a2
Compare
393bcc0 to
0b35e5a
Compare
|
Upstream branch: bbdbed1 |
13a70a2 to
670d05c
Compare
0b35e5a to
f0ad505
Compare
|
Upstream branch: 46c7676 |
670d05c to
cf18539
Compare
|
Upstream branch: e3d0dbb |
cbc1cf4 to
61d8736
Compare
5fad8c5 to
f61cb76
Compare
|
Upstream branch: 9a403a4 |
61d8736 to
4e4a588
Compare
f61cb76 to
91752c7
Compare
|
Upstream branch: 934d974 |
4e4a588 to
d877ed0
Compare
91752c7 to
8958bae
Compare
|
Upstream branch: 2acbd05 |
d877ed0 to
d11ce72
Compare
8958bae to
66b50de
Compare
Add support for the 'prepend' option when attaching tcx_ingress and tcx_egress programs. This option allows inserting a BPF program at the beginning of the TCX chain instead of appending it at the end. The implementation uses BPF_F_BEFORE flag which automatically inserts the program at the beginning of the chain when no relative reference is specified. This change includes: - Modify do_attach_tcx() to support prepend insertion using BPF_F_BEFORE - Update documentation to describe the new 'prepend' option - Add bash completion support for the 'prepend' option on tcx attach types - Add example usage in the documentation - Add validation to reject 'overwrite' for non-XDP attach types The 'prepend' option is only valid for tcx_ingress and tcx_egress attach types. For XDP attach types, the existing 'overwrite' option remains available. Example usage: # bpftool net attach tcx_ingress name tc_prog dev lo prepend This feature is useful when the order of program execution in the TCX chain matters and users need to ensure certain programs run first. Co-developed-by: Siwan Kim <siwan.kim@navercorp.com> Signed-off-by: Siwan Kim <siwan.kim@navercorp.com> Signed-off-by: Gyutae Bae <gyutae.bae@navercorp.com> Reviewed-by: Quentin Monnet <qmo@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net>
|
Upstream branch: 1700147 |
d11ce72 to
b8f7490
Compare
66b50de to
be3c2bf
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1040988 irrelevant now. Closing PR. |
Pull request for series with
subject: bpftool: Add 'prepend' option for tcx attach to insert at chain start
version: 4
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1040988