diff options
author | David Ahern <dsahern@gmail.com> | 2017-08-31 15:05:44 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-01 06:05:15 +0100 |
commit | 482dca939fb7ee35ba20b944b4c2476133dbf0df (patch) | |
tree | 3e69a2555e13e96570491d68b191be4abd5ef7da /include/uapi/linux | |
parent | e12f1a5952c9ac27888846f267ed19cb478618e6 (diff) |
bpf: Add mark and priority to sock options that can be set
Add socket mark and priority to fields that can be set by
ebpf program when a socket is created.
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/bpf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 08c206a863e1..ba848b761cfb 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -758,6 +758,8 @@ struct bpf_sock { __u32 family; __u32 type; __u32 protocol; + __u32 mark; + __u32 priority; }; #define XDP_PACKET_HEADROOM 256 |