File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -345,14 +345,20 @@ union bpf_attr {
345
345
* int bpf_redirect(ifindex, flags)
346
346
* redirect to another netdev
347
347
* @ifindex: ifindex of the net device
348
- * @flags: bit 0 - if set, redirect to ingress instead of egress
349
- * other bits - reserved
350
- * Return: TC_ACT_REDIRECT
351
- * int bpf_redirect_map(key, map, flags)
348
+ * @flags:
349
+ * cls_bpf:
350
+ * bit 0 - if set, redirect to ingress instead of egress
351
+ * other bits - reserved
352
+ * xdp_bpf:
353
+ * all bits - reserved
354
+ * Return: cls_bpf: TC_ACT_REDIRECT on success or TC_ACT_SHOT on error
355
+ * xdp_bfp: XDP_REDIRECT on success or XDP_ABORT on error
356
+ * int bpf_redirect_map(map, key, flags)
352
357
* redirect to endpoint in map
358
+ * @map: pointer to dev map
353
359
* @key: index in map to lookup
354
- * @map: fd of map to do lookup in
355
360
* @flags: --
361
+ * Return: XDP_REDIRECT on success or XDP_ABORT on error
356
362
*
357
363
* u32 bpf_get_route_realm(skb)
358
364
* retrieve a dst's tclassid
You can’t perform that action at this time.
0 commit comments