File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
tools/bpf/bpftool/Documentation Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ NET COMMANDS
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,6 +69,8 @@ bpftool net attach *ATTACH_TYPE* *PROG* dev *NAME* [ overwrite ]
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
@@ -178,3 +180,21 @@ EXAMPLES
178
180
::
179
181
180
182
xdp:
183
+
184
+ |
185
+ | **# bpftool net attach tcx_ingress name tc_prog dev lo**
186
+ | **# bpftool net**
187
+ |
188
+
189
+ ::
190
+ tc:
191
+ lo(1) tcx/ingress tc_prog prog_id 29
192
+
193
+ |
194
+ | **# bpftool net attach tcx_ingress name tc_prog dev lo**
195
+ | **# bpftool net detach tcx_ingress dev lo**
196
+ | **# bpftool net**
197
+ |
198
+
199
+ ::
200
+ tc:
You can’t perform that action at this time.
0 commit comments