]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add sock_ops R/W access to tclass
authorLawrence Brakmo <brakmo@fb.com>
Fri, 26 Jan 2018 00:14:13 +0000 (16:14 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Jan 2018 00:41:14 +0000 (16:41 -0800)
commit1d74548ee3660c75d1298bbd383971e65ba678c9
treedf671f4091e123537da0639e818023b109d6bc22
parent2509acdaa6c554695e0c033dbf6784f4f0750106
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>
net/core/filter.c