diff options
Diffstat (limited to 'include/uapi/linux/bpf.h')
| -rw-r--r-- | include/uapi/linux/bpf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index f90860d1f897..30f2ce76b517 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 1 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com | 2 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com |
| 2 | * | 3 | * |
| 3 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
| @@ -575,7 +576,7 @@ union bpf_attr { | |||
| 575 | * @map: pointer to sockmap | 576 | * @map: pointer to sockmap |
| 576 | * @key: key to lookup sock in map | 577 | * @key: key to lookup sock in map |
| 577 | * @flags: reserved for future use | 578 | * @flags: reserved for future use |
| 578 | * Return: SK_REDIRECT | 579 | * Return: SK_PASS |
| 579 | * | 580 | * |
| 580 | * int bpf_sock_map_update(skops, map, key, flags) | 581 | * int bpf_sock_map_update(skops, map, key, flags) |
| 581 | * @skops: pointer to bpf_sock_ops | 582 | * @skops: pointer to bpf_sock_ops |
| @@ -786,9 +787,8 @@ struct xdp_md { | |||
| 786 | }; | 787 | }; |
| 787 | 788 | ||
| 788 | enum sk_action { | 789 | enum sk_action { |
| 789 | SK_ABORTED = 0, | 790 | SK_DROP = 0, |
| 790 | SK_DROP, | 791 | SK_PASS, |
| 791 | SK_REDIRECT, | ||
| 792 | }; | 792 | }; |
| 793 | 793 | ||
| 794 | #define BPF_TAG_SIZE 8 | 794 | #define BPF_TAG_SIZE 8 |
