commit | 6f9bd3d731aac0d2ac21dd78a642af5df38fb5c5 | [log] [tgz] |
---|---|---|
author | Lawrence Brakmo <brakmo@fb.com> | Thu Jan 25 16:14:13 2018 -0800 |
committer | Alexei Starovoitov <ast@kernel.org> | Thu Jan 25 16:41:14 2018 -0800 |
tree | df671f4091e123537da0639e818023b109d6bc22 | |
parent | 44f0e43037d3a17b043843ba67610ac7c7e37db6 [diff] |
bpf: Add sock_ops R/W access to tclass Adds direct write access to sk_txhash and access to tclass for ipv6 flows through getsockopt and setsockopt. Sample usage for tclass: bpf_getsockopt(skops, SOL_IPV6, IPV6_TCLASS, &v, sizeof(v)) where skops is a pointer to the ctx (struct bpf_sock_ops). Signed-off-by: Lawrence Brakmo <brakmo@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>