diff options
Diffstat (limited to 'include/uapi/linux/bpf.h')
| -rw-r--r-- | include/uapi/linux/bpf.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 866d53c33298..e4c5a1baa993 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h | |||
| @@ -386,6 +386,17 @@ enum bpf_func_id { | |||
| 386 | */ | 386 | */ |
| 387 | BPF_FUNC_current_task_under_cgroup, | 387 | BPF_FUNC_current_task_under_cgroup, |
| 388 | 388 | ||
| 389 | /** | ||
| 390 | * bpf_skb_change_tail(skb, len, flags) | ||
| 391 | * The helper will resize the skb to the given new size, | ||
| 392 | * to be used f.e. with control messages. | ||
| 393 | * @skb: pointer to skb | ||
| 394 | * @len: new skb length | ||
| 395 | * @flags: reserved | ||
| 396 | * Return: 0 on success or negative error | ||
| 397 | */ | ||
| 398 | BPF_FUNC_skb_change_tail, | ||
| 399 | |||
| 389 | __BPF_FUNC_MAX_ID, | 400 | __BPF_FUNC_MAX_ID, |
| 390 | }; | 401 | }; |
| 391 | 402 | ||
