diff options
author | David Ahern | 2017-09-01 00:05:44 +0200 |
---|---|---|
committer | David S. Miller | 2017-09-01 07:05:15 +0200 |
commit | 482dca939fb7ee35ba20b944b4c2476133dbf0df (patch) | |
tree | 3e69a2555e13e96570491d68b191be4abd5ef7da /include | |
parent | Merge branch 'mlxsw-Add-IPv6-host-dpipe-table' (diff) | |
download | kernel-qcow2-linux-482dca939fb7ee35ba20b944b4c2476133dbf0df.tar.gz kernel-qcow2-linux-482dca939fb7ee35ba20b944b4c2476133dbf0df.tar.xz kernel-qcow2-linux-482dca939fb7ee35ba20b944b4c2476133dbf0df.zip |
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')
-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 |