diff options
Diffstat (limited to 'tools/include/uapi/linux/bpf.h')
| -rw-r--r-- | tools/include/uapi/linux/bpf.h | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 43ab5c402f98..c174971afbe6 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -312,7 +312,7 @@ union bpf_attr {   *     jump into another BPF program   *     @ctx: context pointer passed to next program   *     @prog_array_map: pointer to map which type is BPF_MAP_TYPE_PROG_ARRAY - *     @index: index inside array that selects specific program to run + *     @index: 32-bit index inside array that selects specific program to run   *     Return: 0 on success or negative error   *   * int bpf_clone_redirect(skb, ifindex, flags) @@ -569,9 +569,10 @@ union bpf_attr {   *     @flags: reserved for future use   *     Return: 0 on success or negative error code   * - * int bpf_sk_redirect_map(map, key, flags) + * int bpf_sk_redirect_map(skb, map, key, flags)   *     Redirect skb to a sock in map using key as a lookup key for the   *     sock in map. + *     @skb: pointer to skb   *     @map: pointer to sockmap   *     @key: key to lookup sock in map   *     @flags: reserved for future use @@ -786,8 +787,8 @@ struct xdp_md {  };  enum sk_action { -	SK_ABORTED = 0, -	SK_DROP, +	SK_DROP = 0, +	SK_PASS,  	SK_REDIRECT,  };  | 
