Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpftool: Add document for net attach/detach on tcx subcommand

This commit adds sample output for net attach/detach on
tcx subcommand.

Signed-off-by: Tao Chen <chen.dylane@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/bpf/20240721144252.96264-1-chen.dylane@gmail.com
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>

authored by

Tao Chen and committed by
Andrii Nakryiko
0d7c0612 4f88dde0

+21 -1
+21 -1
tools/bpf/bpftool/Documentation/bpftool-net.rst
··· 29 29 | **bpftool** **net help** 30 30 | 31 31 | *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* | **name** *PROG_NAME* } 32 - | *ATTACH_TYPE* := { **xdp** | **xdpgeneric** | **xdpdrv** | **xdpoffload** } 32 + | *ATTACH_TYPE* := { **xdp** | **xdpgeneric** | **xdpdrv** | **xdpoffload** | **tcx_ingress** | **tcx_egress** } 33 33 34 34 DESCRIPTION 35 35 =========== ··· 69 69 **xdpgeneric** - Generic XDP. runs at generic XDP hook when packet already enters receive path as skb; 70 70 **xdpdrv** - Native XDP. runs earliest point in driver's receive path; 71 71 **xdpoffload** - Offload XDP. runs directly on NIC on each packet reception; 72 + **tcx_ingress** - Ingress TCX. runs on ingress net traffic; 73 + **tcx_egress** - Egress TCX. runs on egress net traffic; 72 74 73 75 bpftool net detach *ATTACH_TYPE* dev *NAME* 74 76 Detach bpf program attached to network interface *NAME* with type specified ··· 180 178 :: 181 179 182 180 xdp: 181 + 182 + | 183 + | **# bpftool net attach tcx_ingress name tc_prog dev lo** 184 + | **# bpftool net** 185 + | 186 + 187 + :: 188 + tc: 189 + lo(1) tcx/ingress tc_prog prog_id 29 190 + 191 + | 192 + | **# bpftool net attach tcx_ingress name tc_prog dev lo** 193 + | **# bpftool net detach tcx_ingress dev lo** 194 + | **# bpftool net** 195 + | 196 + 197 + :: 198 + tc: